Package org.jboss.hal.core.mbui.table
Class ModelNodeTable.Builder<T extends ModelNode>
- java.lang.Object
-
- org.jboss.hal.ballroom.table.GenericOptionsBuilder<ModelNodeTable.Builder<T>,T>
-
- org.jboss.hal.core.mbui.table.ModelNodeTable.Builder<T>
-
- Enclosing class:
- ModelNodeTable<T extends ModelNode>
public static class ModelNodeTable.Builder<T extends ModelNode> extends GenericOptionsBuilder<ModelNodeTable.Builder<T>,T>
Builder to create tables based on resource metadata. By default the table has no columns and no actions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelNodeTable<T>build()Creates and returns the table.ModelNodeTable.Builder<T>column(String attribute)Adds a column which maps to the specified attribute.ModelNodeTable.Builder<T>columns(Iterable<String> attributes)ModelNodeTable.Builder<T>columns(String first, String... rest)ModelNodeTable.Builder<T>indexColumn()ModelNodeTable.Builder<T>nameColumn()
-
-
-
Method Detail
-
columns
public ModelNodeTable.Builder<T> columns(String first, String... rest)
-
columns
public ModelNodeTable.Builder<T> columns(Iterable<String> attributes)
-
column
public ModelNodeTable.Builder<T> column(String attribute)
Adds a column which maps to the specified attribute.
-
indexColumn
public ModelNodeTable.Builder<T> indexColumn()
-
nameColumn
public ModelNodeTable.Builder<T> nameColumn()
-
build
public ModelNodeTable<T> build()
Creates and returns the table.
-
-