Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 15, 2016 09:02
Show Gist options
  • Save codenameone/5daba198d0009e503a1a to your computer and use it in GitHub Desktop.
Save codenameone/5daba198d0009e503a1a to your computer and use it in GitHub Desktop.
Sample usage of the ComponentGroup in Codename One
hi.add("Three Labels").
add(ComponentGroup.enclose(new Label("GroupElementFirst UIID"), new Label("GroupElement UIID"), new Label("GroupElementLast UIID"))).
add("One Label").
add(ComponentGroup.enclose(new Label("GroupElementOnly UIID"))).
add("Three Buttons").
add(ComponentGroup.enclose(new Button("ButtonGroupFirst UIID"), new Button("ButtonGroup UIID"), new Button("ButtonGroupLast UIID"))).
add("One Button").
add(ComponentGroup.enclose(new Button("ButtonGroupOnly UIID")));
@codenameone
Copy link
Author

Sample usage of ComponentGroup.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment