public final class BreadcrumbsTableBuilder<T> extends BasicBuilder<T>
A BreadcrumbsTable is a table of data (each row is of type T), each row can contain children (also of type T). Expanding a row replaces all of the data in the table with the child data of the expanded row. A breadcrumb bar next to the table tracks the expanded rows. Selecting a breadcrumb updates the table with the children of that breadcrumb.
Modifier and Type | Class and Description |
---|---|
static interface |
BreadcrumbsTableBuilder.BreadcrumbMaker<T>
This class will be implemented by clients of the BreadcrumbsTableBuilder and
will need to construct a
TableBreadcrumb for a given
node (T) in the TreeTable. |
static interface |
BreadcrumbsTableBuilder.TableBreadcrumb<T>
An extension of
Breadcrumb to represent
nodes (table rows) in the breadcrumb bar. |
BasicBuilder.Instructions
Constructor and Description |
---|
BreadcrumbsTableBuilder() |
Modifier and Type | Method and Description |
---|---|
BuiltBreadcrumbsTable<T> |
build() |
protected BasicBuilder.Instructions |
createInstructions() |
void |
setBreadcrumbMaker(BreadcrumbsTableBuilder.BreadcrumbMaker<T> breadcrumbMaker)
Set a breadcrumb maker to create instances of Breadcrumbs for the BreadcrumbsTable.
|
void |
setModel(TreeTableModel model)
Set the TreeTableModel used for this breadcrumbsTable.
|
void |
setModel(TreeTableModel model,
T node)
Set the TreeTableModel used for this breadcrumbsTable.
|
void |
setShowColumnSelector(boolean value)
Control whether a column selector is included as part of the table.
|
void |
setTrailingComponent(javax.swing.JComponent trailingComponent)
Set a component that appears in the UI trailing the breadcrumbs at the top of the table.
|
buildToolbar, setActions, setActionsSecondary, setActionsSecondary, setCheckable, setDoubleClickListener, setEmptyText, setEmptyTextLarge, setLabel, setResizable, setRollover, setSelection, setSelectionEnabledAction, setSelectionEnabledComponent, setTitlebar, setToolbarComponents
protected BasicBuilder.Instructions createInstructions()
createInstructions
in class BasicBuilder<T>
public BuiltBreadcrumbsTable<T> build()
public void setModel(TreeTableModel model, T node)
model
- public void setModel(TreeTableModel model)
model
- public void setBreadcrumbMaker(BreadcrumbsTableBuilder.BreadcrumbMaker<T> breadcrumbMaker)
breadcrumbMaker
- public void setTrailingComponent(javax.swing.JComponent trailingComponent)
trailingComponent
- the component to addpublic void setShowColumnSelector(boolean value)