Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @select(entryForm("entryType"), options(EntryType.options), 'label -> "Type", 'default -> "-- Choose a type --")(twitterBootstrapInput)
- package models;
- import java.util.LinkedHashMap;
- import java.util.Map;
- public enum EntryType {
- BLOCK, SCROLL, FLOW;
- public static Map<String,String> options() {
- LinkedHashMap<String,String> options = new LinkedHashMap<String,String>();
- for (EntryType e : EntryType.values())
- options.put(e.name(), e.name().substring(0, 1) + e.name().toLowerCase().substring(1));
- return options;
- }
- }
Add Comment
Please, Sign In to add comment