|
|||||||||
| 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.urf.AbstractURFResourceTreeNodeRepresentationStrategy<V>
V - The type of value the strategy is to represent.public abstract class AbstractURFResourceTreeNodeRepresentationStrategy<V extends com.globalmentor.urf.URFResource>
An abstract tree node representation strategy representing an URF resource.
| Constructor Summary | |
|---|---|
AbstractURFResourceTreeNodeRepresentationStrategy(com.globalmentor.urf.TURFNamespaceLabelManager namespaceLabelManager)
Namespace label manager constructor. |
|
| Method Summary | ||
|---|---|---|
protected
|
buildLabelText(java.lang.StringBuilder stringBuilder,
TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
N value)
Builds the label to be used for a tree node. |
|
|
createComponent(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
boolean editable,
boolean selected,
boolean focused)
Creates a component to represent the given tree node. |
|
protected
|
createInfoModel(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode)
Creates an info model for the representation label. |
|
com.globalmentor.urf.TURFNamespaceLabelManager |
getNamespaceLabelManager()
|
|
protected boolean |
isResourceReferenceIncluded()
|
|
protected boolean |
isResourceTypeIncluded()
|
|
protected void |
setResourceReferenceURIIncluded(boolean referenceIncluded)
Sets whether the resource reference should be included. |
|
protected void |
setResourceTypeIncluded(boolean resourceTypeIncluded)
Sets whether the resource type should be included. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractURFResourceTreeNodeRepresentationStrategy(com.globalmentor.urf.TURFNamespaceLabelManager namespaceLabelManager)
namespaceLabelManager - The manager responsible for generating namespace labels..
java.lang.NullPointerException - if the given label manager is null.| Method Detail |
|---|
public com.globalmentor.urf.TURFNamespaceLabelManager getNamespaceLabelManager()
protected boolean isResourceReferenceIncluded()
protected void setResourceReferenceURIIncluded(boolean referenceIncluded)
referenceIncluded - Whether the resource reference should be included.protected boolean isResourceTypeIncluded()
protected void setResourceTypeIncluded(boolean resourceTypeIncluded)
resourceTypeIncluded - Whether the resource type should be included.
public <N extends V> Label createComponent(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
boolean editable,
boolean selected,
boolean focused)
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.
protected <N extends V> InfoModel createInfoModel(TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode)
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.
protected <N extends V> java.lang.StringBuilder buildLabelText(java.lang.StringBuilder stringBuilder,
TreeControl treeControl,
TreeModel model,
TreeNodeModel<N> treeNode,
N value)
N - The type of value contained in the node.stringBuilder - The string builder to hold the label text.treeControl - The component containing the model.model - The model containing the value.treeNode - The node containing the value.value - The value contained in the node.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||