0

grouping two components in the same listCell

asked 2010-02-17 07:47:16 +0800

scerro gravatar image scerro
273 3 9
www.desarrolloagil.es

Hi friends,

I have a listbox with five columns. The thing is, that in the last column I want to put two differents buttons and I need to group them in the same fith column. I dont know what component I need to use, because the ListCell not allow childs.

thanks in advance.
regards.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-02-17 08:55:33 +0800

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

updated 2010-02-17 08:58:07 +0800

Hi Scerro,

do all in a hbox.


			lc = new Listcell();
			Hbox hbox = new Hbox();
			hbox.setParent(lc);

			/* Button 1 */
			Button btn1 = new Button();
			btn1.setLabel("btn1");
			hbox.appendChild(btn1);
			/* Button 2 */
			Button btn2 = new Button();
			btn2.setLabel("btn2");
			hbox.appendChild(btn2);

		lc.setParent(item);

best
Stephan

Find codes in SecLoginlogListModelItemRenderer.java

link publish delete flag offensive edit

answered 2010-02-17 09:26:07 +0800

scerro gravatar image scerro
273 3 9
www.desarrolloagil.es

thank you again Stephan,

best regards,

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: 2010-02-17 07:47:16 +0800

Seen: 169 times

Last updated: Feb 17 '10

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