0

Listbox listheader image align to right not possible.

asked 2011-03-15 00:33:02 +0800

yaryan997 gravatar image yaryan997
210 2

HI.. Zk team members.

I am building an application in zk in that I am using the listbox to display all my records using itemrenderer..
I am having listbox listheader For heading display now I am adding image to the lisheader from my java Class or Controller class but the image always comes to the left side of the listheader but actually I want it to align to the right side of my listheader..

help me with this problem.

Best Regards
Yogendra

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2011-03-15 05:05:54 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-03-15 05:08:53 +0800

image on left

	<listheader id="lh_UserList_Loginname"
	     	    image="/images/icons/create_doc_16x16.gif" sort="auto"
		   width="15%" label="Test" />

image on right

	<listheader id="lh_UserList_Lastname"
                       sort="auto" width="15%"
		      label="Test 2">

			<label value="test" />
			<image align="right" src="/images/icons/create_doc_16x16.gif" />
	</listheader>

best
Stephan

link publish delete flag offensive edit

answered 2011-03-15 22:31:57 +0800

yaryan997 gravatar image yaryan997
210 2

@terrytornado.
thanx for support that's ok I understand it well. but Can you help me to set the listheader image from the java Class.
As i am developing the application the listheader onCreation didn't show any images but when user click them it show's them the image..

So just like the above, How can I align the image to the right through Code in java class or my Controller Class.

Best Regards
Yogendra

link publish delete flag offensive edit

answered 2011-03-16 04:32:11 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-03-16 04:33:01 +0800

It must be the same:

Listheader lh;

lh = new Listheader();
lh.setParent(your ListHead);
lh.setSort("auto");
lh.setWidth("15%");

Label lb = new Label();
lb.setValue("test");
lb.setParent(lh);

Image img = new Image();
img.setAlign("right");
img.setSrc("/images/icons/create_doc_16x16.gif");
img.setParent(lh);

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: 2011-03-15 00:33:02 +0800

Seen: 588 times

Last updated: Mar 16 '11

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