NODE
- is the generic type of the tree-nodes. E.g. TreeNode
.public interface UiWidgetAbstractTree<NODE> extends UiWidgetAbstractDataSet<NODE>, UiWidgetWithValue<NODE>
data set widget
that represents a tree
widget. Such widget represents a tree-structure showing tree-nodes that can be collapsed and expanded. It
has the following features:
tree model
Modifier and Type | Interface and Description |
---|---|
static interface |
UiWidgetAbstractTree.UiTreeModel<NODE>
This is the interface for the model (adapter) for a
UiWidgetTree . |
static interface |
UiWidgetAbstractTree.UiTreeModelMutable<NODE>
Extends
UiWidgetAbstractTree.UiTreeModel with features for editing the tree structure. |
static interface |
UiWidgetAbstractTree.UiTreeNodeRenderer<NODE,WIDGET extends UiWidgetRegular>
|
static class |
UiWidgetAbstractTree.UiTreeNodeRendererDefault<NODE>
This is the default implementation of
UiWidgetAbstractTree.UiTreeNodeRenderer . |
static interface |
UiWidgetAbstractTree.UiWidgetTreeNode<NODE>
This is the interface for the main widget representing a node of the tree.
|
Modifier and Type | Field and Description |
---|---|
static String |
STYLE_TREE
The
style of this tree widget. |
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_SUMMARY
PROPERTY_TITLE
Modifier and Type | Method and Description |
---|---|
void |
collapseAllNodes()
This method collapses all nodes.
|
void |
expandNodes()
This method expands all nodes that have already been
loaded . |
UiWidgetAbstractTree.UiTreeModel<NODE> |
getTreeModel()
This method gets the
UiWidgetAbstractTree.UiTreeModel adapting from <NODE> to this tree-widget. |
UiWidgetAbstractTree.UiWidgetTreeNode<NODE> |
getTreeNodeWidget(NODE node)
This method gets the
UiWidgetAbstractTree.UiWidgetTreeNode for the given <NODE>. |
void |
setTreeModel(UiWidgetAbstractTree.UiTreeModel<NODE> model)
This method sets the
UiWidgetAbstractTree.UiTreeModel adapting from <NODE> to this tree-widget. |
void |
setTreeNodeRenderer(UiWidgetAbstractTree.UiTreeNodeRenderer<NODE,?> renderer)
This method sets the
UiWidgetAbstractTree.UiTreeNodeRenderer used to render the widgets for an
individual <NODE>. |
getTitle, setTitle
asFeatureSelectedValue
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
addSelectionHandler, isSelected, removeSelectionHandler, setSelection
setSelectedValue, setSelectedValues
getSelectedValue, getSelectedValues, getSelectionCount, hasSelectedValue
setSelectionMode
getSelectionMode
setSummary
getSummary
setTitleVisible
isTitleVisible
setEditable
isEditable
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
static final String STYLE_TREE
style
of this tree widget.UiWidgetAbstractTree.UiTreeModel<NODE> getTreeModel()
UiWidgetAbstractTree.UiTreeModel
adapting from <NODE> to this tree-widget.UiWidgetAbstractTree.UiTreeModel
. May be null
if NOT set.void setTreeModel(UiWidgetAbstractTree.UiTreeModel<NODE> model)
UiWidgetAbstractTree.UiTreeModel
adapting from <NODE> to this tree-widget.model
- is the UiWidgetAbstractTree.UiTreeModel
to set.void setTreeNodeRenderer(UiWidgetAbstractTree.UiTreeNodeRenderer<NODE,?> renderer)
UiWidgetAbstractTree.UiTreeNodeRenderer
used to render the widgets
for an
individual <NODE>.renderer
- is the UiWidgetAbstractTree.UiTreeNodeRenderer
.UiWidgetAbstractTree.UiWidgetTreeNode<NODE> getTreeNodeWidget(NODE node)
UiWidgetAbstractTree.UiWidgetTreeNode
for the given <NODE>. It contains a
node widget
that was created by the UiWidgetAbstractTree.UiTreeNodeRenderer
.
Further you can collapse or expand
the node.node
- is the <NODE>.UiWidgetAbstractTree.UiWidgetTreeNode
or null
if the given node
is NOT
in this tree.setTreeNodeRenderer(UiTreeNodeRenderer)
void collapseAllNodes()
void expandNodes()
loaded
.Copyright © 2001–2016 mmm-Team. All rights reserved.