List of usage examples for org.apache.wicket.util.collections MicroMap MicroMap
public MicroMap()
From source file:ro.fortsoft.wicket.jade.demo.ContentPanel.java
License:Apache License
@Override protected void onInitialize() { super.onInitialize(); List<Book> books = new ArrayList<Book>(); books.add(new Book("The Hitchhiker's Guide to the Galaxy", 5.70, true)); books.add(new Book("Life, the Universe and Everything", 5.60, false)); books.add(new Book("The Restaurant at the End of the Universe", 5.40, true)); Map<String, Object> booksModel = new HashMap<String, Object>(); booksModel.put("books", books); JadePanel booksPanel = new BooksPanel("books", booksModel); booksPanel.add(AttributeModifier.append("style", "border: 1px solid red;")); add(booksPanel);/*from ww w . j a va 2 s .c o m*/ Label messageLabel = new Label("message", "Pure wicket label in Jade panel !!!"); messageLabel.add(AttributeModifier.append("style", "background-color: lightgray;")); booksPanel.add(messageLabel); Author author = new Author("Douglas", "Adams", "England"); Map<String, Object> authorModel = new MicroMap<String, Object>(); authorModel.put("author", author); AuthorPanel authorPanel = new AuthorPanel("author", authorModel); booksPanel.add(authorPanel); }