|
|||||||||
| 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.rdf.AbstractRDFObjectTreeNodeRepresentationStrategy<V>
V - The type of value the strategy is to represent.public abstract class AbstractRDFObjectTreeNodeRepresentationStrategy<V extends com.globalmentor.rdf.RDFObject>
An abstract tree node representation strategy representing an RDF object.
| Constructor Summary | |
|---|---|
AbstractRDFObjectTreeNodeRepresentationStrategy(com.globalmentor.rdf.RDFXMLGenerator rdfXMLifier)
RDF XMLifier constructor. |
|
| Method Summary | ||
|---|---|---|
protected java.lang.StringBuilder |
buildLabelText(java.lang.StringBuilder stringBuilder,
TreeControl treeControl,
TreeModel model,
TreeNodeModel<? extends V> treeNode,
V 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.rdf.RDFXMLGenerator |
getXMLGenerator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRDFObjectTreeNodeRepresentationStrategy(com.globalmentor.rdf.RDFXMLGenerator rdfXMLifier)
rdfXMLifier - The RDF XMLifier to use for creating labels.
java.lang.NullPointerException - if the given RDF XMLifier is null.| Method Detail |
|---|
public com.globalmentor.rdf.RDFXMLGenerator getXMLGenerator()
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 java.lang.StringBuilder buildLabelText(java.lang.StringBuilder stringBuilder,
TreeControl treeControl,
TreeModel model,
TreeNodeModel<? extends V> treeNode,
V value)
RDFObjectTreeNodeModel, this version prepends a representation of its property.
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 | ||||||||