Package wicket.contrib.bbcodecomponent.core

Examples of wicket.contrib.bbcodecomponent.core.Tags


    super(id);
    ArrayList list = new ArrayList(Arrays.asList(Tags.values()));
    ListView listView = new ListView("tagControls", new Model(list)) {
      @Override
      protected void populateItem(ListItem item) {
        Tags tag = (Tags) item.getModelObject();
        Button button = new Button("tagControl");
        button.add(new org.apache.wicket.markup.html.basic.Label(
            "label", new Model(tag.getName())));
        button.add(new AttributeModifier("title", new Model(tag
            .getDescription())));
        button.add(new AttributeModifier("onClick", new Model("bbCodeInsertBBTag('"+tag.getStartBBTag()+"','"+tag.getEndBBTag()+"');")));
        item.add(button);

      }
    };
    add(listView);
View Full Code Here

TOP

Related Classes of wicket.contrib.bbcodecomponent.core.Tags

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.