|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.component.TreeControl.AbstractTreeNodeRepresentationStrategy<V>
com.guiseframework.component.TreeControl.DefaultValueRepresentationStrategy<V>
V - The type of value the strategy is to represent.public static class TreeControl.DefaultValueRepresentationStrategy<V>
A default tree node representation strategy. A label component will be generated containing the default string representation of a value.
Label| Constructor Summary | |
|---|---|
TreeControl.DefaultValueRepresentationStrategy(java.lang.Class<V> valueClass)
Value class constructor with a default converter. |
|
TreeControl.DefaultValueRepresentationStrategy(Converter<V,java.lang.String> converter)
Converter constructor. |
|
| Method Summary | ||
|---|---|---|
|
createComponent(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
boolean editable,
boolean selected,
boolean focused)
Creates a component to represent the given tree node. |
|
Converter<V,java.lang.String> |
getConverter()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeControl.DefaultValueRepresentationStrategy(java.lang.Class<V> valueClass)
DefaultStringLiteralConverter.
valueClass - The class indicating the type of value to convert.
java.lang.NullPointerException - if the given value class is null.public TreeControl.DefaultValueRepresentationStrategy(Converter<V,java.lang.String> converter)
converter - The converter to use for displaying the value as a string.
java.lang.NullPointerException - if the given converter is null.| Method Detail |
|---|
public Converter<V,java.lang.String> getConverter()
public <N extends V> Component createComponent(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
boolean editable,
boolean selected,
boolean focused)
toString() method.
N - The type of value contained in the node.treeControl - The component containing the model.model - The model containing the value.treeNode - The node containing the value.editable - Whether values in this column are editable.selected - true if the value is selected.focused - true if the value has the focus.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||