NODE - is the generic type of the tree-nodes.public static class UiWidgetAbstractTree.UiTreeNodeRendererDefault<NODE> extends Object implements UiWidgetAbstractTree.UiTreeNodeRenderer<NODE,UiWidgetLabel>
UiWidgetAbstractTree.UiTreeNodeRenderer.| Constructor and Description |
|---|
UiTreeNodeRendererDefault() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignNodeToWidget(NODE node,
UiWidgetLabel widget)
This method assigns the given <NODE> to the given
widget. |
UiWidgetLabel |
create(UiContext context)
|
public UiWidgetLabel create(UiContext context)
UiWidget instance of the particular UiWidget-type managed by
this factory.create in interface UiSingleWidgetFactory<UiWidgetLabel>context - is the instance of UiContext.UiWidget.public void assignNodeToWidget(NODE node, UiWidgetLabel widget)
widget. UiWidgetLabel and <NODE> may be String.
Then this method would simply do widget.setLabel(node). UiWidgetRegular may be reused for optimal performance if the <NODE> has changed
or been removed. Therefore this method needs to reset and update the entire state of the
UiWidgetRegular.assignNodeToWidget in interface UiWidgetAbstractTree.UiTreeNodeRenderer<NODE,UiWidgetLabel>node - is the <NODE> to assign.widget - is the UiWidgetRegular that is to be assigned. It has initially been created via
UiSingleWidgetFactory.create(net.sf.mmm.client.ui.api.UiContext).Copyright © 2001–2016 mmm-Team. All rights reserved.