0

CategoryBar

asked 2009-05-18 10:58:59 +0800

nhack gravatar image nhack
63 1

Could someone help me with creating a CategoryBar like component by using ComponentRenderer not dsp.

Thanks

Marius

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2009-07-24 09:21:01 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi Angus,

You can download the source of ZKDEMO and dig in the index.zul file.

/Jumper

link publish delete flag offensive edit

answered 2009-07-24 02:51:11 +0800

anguslipsey gravatar image anguslipsey
6

hi,

I am also working on creating a CategoryBar like component and didn't get any idea how to implement on it ...
It would be most appreciate if anyone can share more infomation or sample code on it.
Thanks a lot!

/Angus

link publish delete flag offensive edit

answered 2009-05-20 01:22:23 +0800

hideokidd gravatar image hideokidd
750 1 2

updated 2009-05-20 01:23:17 +0800

Hi,

It seems you need to create a new component,
component developer's guide may help,
http://www.zkoss.org/doc/compdevguide/

To make things simple,
you could customize it as a macro component if possible,
http://www.zkoss.org/zkdemo/userguide/#m1

link publish delete flag offensive edit

answered 2009-05-19 09:50:03 +0800

nhack gravatar image nhack
63 1

Ok,

Then what i need is to create a new mold for the Toolbarbutton and to set this this mold for the component, how can i do that?

link publish delete flag offensive edit

answered 2009-05-19 08:54:10 +0800

hideokidd gravatar image hideokidd
750 1 2

updated 2009-05-19 08:54:37 +0800

Hi,

The parameter of setMold method for component is not corrent,
please refer to the page,
http://docs.zkoss.org/wiki/Style_Guide
Toolbarbutton has only one mold "default"

link publish delete flag offensive edit

answered 2009-05-19 08:03:27 +0800

nhack gravatar image nhack
63 1

updated 2009-05-19 08:03:54 +0800

I have implemented the ComponentRender interface, and i've done something like this:

Toolbarbutton but = new Toolbarbutton("cartman", "/img/cartman.jpg");
but.setMold("class:org.zktest.ToolbarbuttonFancy");

Where

org.zktest.ToolbarbuttonFancy implements ComponentRender

But i'm receiving an exception. I know that my approach is wrong, but i don't know how to modify the look of the Toolbarbutton.

link publish delete flag offensive edit

answered 2009-05-19 01:19:14 +0800

hideokidd gravatar image hideokidd
750 1 2

Hi,

There are some sample code in zkmax.jar,
you can download the source code by SVN,
https://sourceforge.net/scm/?type=svn&group_id=152762
Please refer to the class files in zkmax/src/org/zkoss/zkmax/zul/render folder.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-05-18 10:58:59 +0800

Seen: 504 times

Last updated: Jul 24 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More