Java 类com.vaadin.ui.TreeTable 实例源码

项目:incubator-openaz    文件:PolicyWorkspace.java   
@AutoGenerated
private VerticalLayout buildVerticalLayoutLeftPanel() {
    // common part: create layout
    verticalLayoutLeftPanel = new VerticalLayout();
    verticalLayoutLeftPanel.setImmediate(false);
    verticalLayoutLeftPanel.setWidth("100.0%");
    verticalLayoutLeftPanel.setHeight("100.0%");
    verticalLayoutLeftPanel.setMargin(true);
    verticalLayoutLeftPanel.setSpacing(true);

    // horizontalLayoutLeftToolbar
    horizontalLayoutLeftToolbar = buildHorizontalLayoutLeftToolbar();
    verticalLayoutLeftPanel.addComponent(horizontalLayoutLeftToolbar);

    // treeWorkspace
    treeWorkspace = new TreeTable();
    treeWorkspace.setImmediate(true);
    treeWorkspace.setWidth("100.0%");
    treeWorkspace.setHeight("100.0%");
    verticalLayoutLeftPanel.addComponent(treeWorkspace);
    verticalLayoutLeftPanel.setExpandRatio(treeWorkspace, 1.0f);

    return verticalLayoutLeftPanel;
}
项目:XACML    文件:PolicyWorkspace.java   
@AutoGenerated
private VerticalLayout buildVerticalLayoutLeftPanel() {
    // common part: create layout
    verticalLayoutLeftPanel = new VerticalLayout();
    verticalLayoutLeftPanel.setImmediate(false);
    verticalLayoutLeftPanel.setWidth("100.0%");
    verticalLayoutLeftPanel.setHeight("100.0%");
    verticalLayoutLeftPanel.setMargin(true);
    verticalLayoutLeftPanel.setSpacing(true);

    // horizontalLayoutLeftToolbar
    horizontalLayoutLeftToolbar = buildHorizontalLayoutLeftToolbar();
    verticalLayoutLeftPanel.addComponent(horizontalLayoutLeftToolbar);

    // treeWorkspace
    treeWorkspace = new TreeTable();
    treeWorkspace.setImmediate(true);
    treeWorkspace.setWidth("100.0%");
    treeWorkspace.setHeight("100.0%");
    verticalLayoutLeftPanel.addComponent(treeWorkspace);
    verticalLayoutLeftPanel.setExpandRatio(treeWorkspace, 1.0f);

    return verticalLayoutLeftPanel;
}
项目:konekti    文件:UserOrganizationCollectionField.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // employeeAgentOrganizationTreeTable
    userOrganizationTreeTable = new TreeTable();
    userOrganizationTreeTable.setImmediate(true);
    userOrganizationTreeTable.setWidth("100.0%");
    userOrganizationTreeTable.setHeight("100.0%");
    mainLayout.addComponent(userOrganizationTreeTable);
    mainLayout.setExpandRatio(userOrganizationTreeTable, 1.0f);

    return mainLayout;
}
项目:osc-core    文件:SecurityGroupMembershipInfoWindow.java   
public Component getTreeTable() throws Exception {
    VerticalLayout content = new VerticalLayout();
    content.setMargin(new MarginInfo(true, true, false, true));

    this.treeTable = new TreeTable();
    this.treeTable.setPageLength(10);
    this.treeTable.setSelectable(false);
    this.treeTable.setSizeFull();

    this.treeTable.addContainerProperty(PROPERTY_ID_MEMBER_NAME, String.class, "");
    this.treeTable.addContainerProperty(PROPERTY_ID_MEMBER_TYPE, String.class, "");
    this.treeTable.addContainerProperty(PROPERTY_ID_MEMBER_IP, String.class, "");
    this.treeTable.addContainerProperty(PROPERTY_ID_MEMBER_MAC, String.class, "");

    this.treeTable.setColumnHeader(PROPERTY_ID_MEMBER_NAME, VmidcMessages.getString(VmidcMessages_.NAME));
    this.treeTable.setColumnHeader(PROPERTY_ID_MEMBER_TYPE, VmidcMessages.getString(VmidcMessages_.OS_MEMBER_TYPE));
    this.treeTable.setColumnHeader(PROPERTY_ID_MEMBER_MAC, VmidcMessages.getString(VmidcMessages_.GENERAL_MACADDR));
    this.treeTable.setColumnHeader(PROPERTY_ID_MEMBER_IP, VmidcMessages.getString(VmidcMessages_.GENERAL_IPADDR));

    this.treeTable.setColumnWidth(PROPERTY_ID_MEMBER_NAME, NAME_COLUMN_WIDTH);
    this.treeTable.setColumnWidth(PROPERTY_ID_MEMBER_TYPE, TYPE_COLUMN_WIDTH);
    this.treeTable.setColumnWidth(PROPERTY_ID_MEMBER_MAC, MAC_COLUMN_WIDTH);
    this.treeTable.setColumnWidth(PROPERTY_ID_MEMBER_IP, IP_COLUMN_WIDTH);

    populateData();
    content.addComponent(this.treeTable);
    return content;
}
项目:incubator-openaz    文件:SelectWorkspacePoliciesWindow.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // treeWorkspace
    treeWorkspace = new TreeTable();
    treeWorkspace.setCaption("Select Policy(s) for PDP Group");
    treeWorkspace.setImmediate(true);
    treeWorkspace.setWidth("100.0%");
    treeWorkspace.setHeight("-1px");
    mainLayout.addComponent(treeWorkspace);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:incubator-openaz    文件:ExpressionBuilderComponent.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);

    // treeExpressions
    treeExpressions = new TreeTable();
    treeExpressions.setImmediate(false);
    treeExpressions.setWidth("100.0%");
    treeExpressions.setHeight("-1px");
    mainLayout.addComponent(treeExpressions);
    mainLayout.setExpandRatio(treeExpressions, 1.0f);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:incubator-openaz    文件:ObligationAdviceEditorWindow.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);

    // tableExpressions
    tableExpressions = new TreeTable();
    tableExpressions.setCaption("Expressions");
    tableExpressions.setImmediate(false);
    tableExpressions.setWidth("100%");
    tableExpressions.setHeight("-1px");
    mainLayout.addComponent(tableExpressions);
    mainLayout.setExpandRatio(tableExpressions, 1.0f);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:incubator-openaz    文件:PolicyEditor.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("100.0%");
    mainLayout.setMargin(false);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("100.0%");

    // horizontalLayoutToolbar
    horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
    mainLayout.addComponent(horizontalLayoutToolbar);
    mainLayout.setExpandRatio(horizontalLayoutToolbar, 1.0f);

    // tree
    tree = new TreeTable();
    tree.setImmediate(true);
    tree.setWidth("100.0%");
    tree.setHeight("100.0%");
    mainLayout.addComponent(tree);
    mainLayout.setExpandRatio(tree, 1.0f);

    return mainLayout;
}
项目:metl    文件:ExploreDirectoryView.java   
public ExploreDirectoryView() {
    setSizeFull();
    setMargin(false);

    ButtonBar buttonBar = new ButtonBar();
    Button refreshButton = buttonBar.addButton("Refresh", FontAwesome.REFRESH);
    refreshButton.addClickListener(event -> refresh());
    addComponent(buttonBar);

    table = new TreeTable();
    table.setSizeFull();
    table.addExpandListener(event -> expanded(event));
    table.addCollapseListener(event -> collapsed(event));
    table.setSelectable(true);
    table.addContainerProperty("name", String.class, null);
    table.addGeneratedColumn("name", (source, itemId, propertyId) -> fileLinkComponent(source, itemId, propertyId));
    table.setColumnHeader("name", "");
    table.addContainerProperty("lastModified", Date.class, null);
    table.setColumnHeader("lastModified", "Date Modified");
    table.setColumnWidth("lastModified", 150);
    table.addContainerProperty("size", Long.class, null);
    table.setColumnHeader("size", "Size (bytes)");
    table.setColumnExpandRatio("name", 1);
    table.setCellStyleGenerator((source, itemId, propertyId) -> cellStyle(source, itemId, propertyId));
    addComponent(table);
    setExpandRatio(table, 1);

}
项目:XACML    文件:SelectWorkspacePoliciesWindow.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // treeWorkspace
    treeWorkspace = new TreeTable();
    treeWorkspace.setCaption("Select Policy(s) for PDP Group");
    treeWorkspace.setImmediate(true);
    treeWorkspace.setWidth("100.0%");
    treeWorkspace.setHeight("-1px");
    mainLayout.addComponent(treeWorkspace);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:XACML    文件:ExpressionBuilderComponent.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);

    // treeExpressions
    treeExpressions = new TreeTable();
    treeExpressions.setImmediate(false);
    treeExpressions.setWidth("100.0%");
    treeExpressions.setHeight("-1px");
    mainLayout.addComponent(treeExpressions);
    mainLayout.setExpandRatio(treeExpressions, 1.0f);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:XACML    文件:ObligationAdviceEditorWindow.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);

    // tableExpressions
    tableExpressions = new TreeTable();
    tableExpressions.setCaption("Expressions");
    tableExpressions.setImmediate(false);
    tableExpressions.setWidth("100%");
    tableExpressions.setHeight("-1px");
    mainLayout.addComponent(tableExpressions);
    mainLayout.setExpandRatio(tableExpressions, 1.0f);

    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

    return mainLayout;
}
项目:XACML    文件:PolicyEditor.java   
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("100.0%");
    mainLayout.setMargin(false);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("100.0%");

    // horizontalLayoutToolbar
    horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
    mainLayout.addComponent(horizontalLayoutToolbar);
    mainLayout.setExpandRatio(horizontalLayoutToolbar, 1.0f);

    // tree
    tree = new TreeTable();
    tree.setImmediate(true);
    tree.setWidth("100.0%");
    tree.setHeight("100.0%");
    mainLayout.addComponent(tree);
    mainLayout.setExpandRatio(tree, 1.0f);

    return mainLayout;
}
项目:cherry-web    文件:NavigationView.java   
public TreeTable getTree() {
    return tree;
}
项目:metl    文件:AdminView.java   
@PostConstruct
protected void init() {
    setSizeFull();

    tabbedPanel = new TabbedPanel();

    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);

    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);

    table = new TreeTable();
    table.addStyleName(ValoTheme.TREETABLE_NO_HORIZONTAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_NO_STRIPES);
    table.addStyleName(ValoTheme.TREETABLE_NO_VERTICAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_BORDERLESS);
    table.setColumnHeaderMode(ColumnHeaderMode.HIDDEN);
    table.setSizeFull();
    table.setCacheRate(100);
    table.setPageLength(100);
    table.setImmediate(true);
    table.setSelectable(true);
    table.addItemClickListener(this);
    table.addStyleName("noselect");
    table.addContainerProperty("id", String.class, null);
    table.setVisibleColumns(new Object[] { "id" });
    table.setColumnExpandRatio("id", 1);
    addItem("Users", Icons.USER);
    addItem("Groups", Icons.GROUP);
    addItem("REST", Icons.REST);
    addItem("General Settings", Icons.SETTINGS);
    addItem("Plugin Repositories", Icons.DATABASE);
    addItem("Plugins", Icons.COMPONENT);
    addItem("Mail Server", Icons.EMAIL);
    addItem("Notifications", Icons.NOTIFICATION);
    addItem("Active Users", FontAwesome.USERS);
    addItem("Audit Events", FontAwesome.BARS);
    addItem("Logging", Icons.LOGGING);        
    addItem("About", FontAwesome.QUESTION);

    VerticalLayout navigator = new VerticalLayout();
    navigator.addStyleName(ValoTheme.MENU_ROOT);
    navigator.setSizeFull();
    leftSplit.setFirstComponent(navigator);

    MenuBar leftMenuBar = new MenuBar();
    leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
    leftMenuBar.setWidth(100, Unit.PERCENTAGE);
    navigator.addComponent(leftMenuBar);

    navigator.addComponent(table);
    navigator.setExpandRatio(table, 1);

    addComponent(leftSplit);

}
项目:ExpressZip    文件:FindLayersViewComponent.java   
public TreeTable getPopupTable() {
    return popupTable;
}