Module is.codion.swing.common.ui
Interface TreeBuilder
- All Superinterfaces:
ComponentBuilder<JTree,,TreeBuilder> Supplier<JTree>
A builder for JTree.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeBuilder.ModelStepbuilder()cellRenderer(TreeCellRenderer cellRenderer) dragEnabled(boolean dragEnabled) editable(boolean editable) expandsSelectedPaths(boolean expandsSelectedPaths) invokesStopCellEditing(boolean invokesStopCellEditing) largeModel(boolean largeModel) rootVisible(boolean rootVisible) rowHeight(int rowHeight) scrollsOnExpand(boolean scrollsOnExpand) showsRootHandles(boolean showsRootHandles) toggleClickCount(int toggleClickCount) treeExpansionListener(TreeExpansionListener treeExpansionListener) treeSelectionListener(TreeSelectionListener treeSelectionListener) treeWillExpandListener(TreeWillExpandListener treeWillExpandListener) visibleRowCount(int visibleRowCount) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupControl, popupControls, popupControls, popupMenu, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visible
-
Method Details
-
rootVisible
- Parameters:
rootVisible- true if the root node should be visible- Returns:
- this builder instance
- See Also:
-
showsRootHandles
- Parameters:
showsRootHandles- true if root handles should be shown- Returns:
- this builder instance
- See Also:
-
cellRenderer
- Parameters:
cellRenderer- the cell renderer- Returns:
- this builder instance
- See Also:
-
dragEnabled
- Parameters:
dragEnabled- true if drag should be enabled- Returns:
- this builder instance
- See Also:
-
dropMode
- Parameters:
dropMode- the drop mode- Returns:
- this builder instance
- See Also:
-
editable
- Parameters:
editable- true if the tree should be editable- Returns:
- this builder instance
- See Also:
-
expandsSelectedPaths
- Parameters:
expandsSelectedPaths- true if selected paths should be expanded- Returns:
- this builder instance
- See Also:
-
invokesStopCellEditing
- Parameters:
invokesStopCellEditing- true if stop cell editing should be invoked on selection change- Returns:
- this builder instance
- See Also:
-
rowHeight
- Parameters:
rowHeight- the row height- Returns:
- this builder instance
- See Also:
-
scrollsOnExpand
- Parameters:
scrollsOnExpand- true if the tree should scroll on expand- Returns:
- this builder instance
- See Also:
-
toggleClickCount
- Parameters:
toggleClickCount- the number of clicks required to toggle a node- Returns:
- this builder instance
- See Also:
-
visibleRowCount
- Parameters:
visibleRowCount- the number of visible rows- Returns:
- this builder instance
- See Also:
-
largeModel
- Parameters:
largeModel- the large model value- Returns:
- this builder instance
- See Also:
-
treeExpansionListener
- Parameters:
treeExpansionListener- the tree expansion listener to add- Returns:
- this builder instance
- See Also:
-
treeWillExpandListener
- Parameters:
treeWillExpandListener- the tree will expand listener to add- Returns:
- this builder instance
- See Also:
-
treeSelectionListener
- Parameters:
treeSelectionListener- the tree selection listener to add- Returns:
- this builder instance
- See Also:
-
builder
- Returns:
- a builder for a component
-