Created
November 19, 2012 18:30
-
-
Save bleathem/4112562 to your computer and use it in GitHub Desktop.
This file contains 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
@EntryPoint | |
public class PickListApp { | |
@Inject | |
private List<String> capitalsList; | |
@PostConstruct | |
public void init() { | |
LogUtil.log("****************** this is a test *************"); | |
List<LIElement> sourceList = new ArrayList<LIElement>(capitalsList.size()); | |
for (String capital : capitalsList) { | |
LIElement li = Document.get().createLIElement(); | |
li.setInnerText(capital); | |
li.setAttribute("data-key", capital); | |
sourceList.add(li); | |
} | |
List<LIElement> targetList = new ArrayList<LIElement>(); | |
RootPanel.get().add(new InlineHTML("Some text")); | |
RootPanel.get("myPickList").add(new PickListWidget(sourceList, targetList)); | |
System.out.println("UI Constructed!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment