Created
February 15, 2016 09:02
-
-
Save codenameone/5daba198d0009e503a1a to your computer and use it in GitHub Desktop.
Sample usage of the ComponentGroup in Codename One
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of ComponentGroup.
From the Codename One project