Example usage for com.vaadin.server FontAwesome TABLET

List of usage examples for com.vaadin.server FontAwesome TABLET

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome TABLET.

Prototype

FontAwesome TABLET

To view the source code for com.vaadin.server FontAwesome TABLET.

Click Source Link

Usage

From source file:pl.exsio.frameset.vaadin.module.management.frames.FramesTree.java

License:Open Source License

private JPAContainer<Frame> initTree() {
    final JPAContainer<Frame> frames = this.createContainer();

    frames.setParentProperty("parent");
    this.tree = new Tree("", frames);

    this.tree.setItemCaptionMode(Tree.ItemCaptionMode.EXPLICIT);
    this.tree.setStyleName("frameset-frames-tree");
    for (Object itemId : frames.getItemIds()) {
        this.tree.setItemCaption(itemId, t(frames.getItem(itemId).getEntity().getTitle()));
        this.tree.setItemIcon(itemId, FontAwesome.TABLET);

    }/*from  w w  w. j a  va2  s.  c  o  m*/
    if (this.security.canAdminister()) {
        this.tree.setDragMode(Tree.TreeDragMode.NODE);
        this.setTreeDropHandler(frames);
    }
    for (Object rootId : frames.rootItemIds()) {
        this.tree.expandItemsRecursively(rootId);
    }
    return frames;
}