com.guiseframework.component
Class TreeControl.InfoModelTreeNodeRepresentationStrategy

java.lang.Object
  extended by com.guiseframework.component.TreeControl.AbstractTreeNodeRepresentationStrategy<InfoModel>
      extended by com.guiseframework.component.TreeControl.InfoModelTreeNodeRepresentationStrategy
All Implemented Interfaces:
TreeControl.TreeNodeRepresentationStrategy<InfoModel>
Enclosing class:
TreeControl

public static class TreeControl.InfoModelTreeNodeRepresentationStrategy
extends TreeControl.AbstractTreeNodeRepresentationStrategy<InfoModel>

A tree node representation strategy for a label model, generating a label component.

Author:
Garret Wilson
See Also:
Label

Constructor Summary
TreeControl.InfoModelTreeNodeRepresentationStrategy()
           
 
Method Summary
<N extends InfoModel>
Label
createComponent(TreeControl treeControl, TreeModel model, TreeNodeModel<N> treeNode, boolean editable, boolean selected, boolean focused)
          Creates a label to represent the given tree node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeControl.InfoModelTreeNodeRepresentationStrategy

public TreeControl.InfoModelTreeNodeRepresentationStrategy()
Method Detail

createComponent

public <N extends InfoModel> Label createComponent(TreeControl treeControl,
                                                   TreeModel model,
                                                   TreeNodeModel<N> treeNode,
                                                   boolean editable,
                                                   boolean selected,
                                                   boolean focused)
Creates a label to represent the given tree node.

Type Parameters:
N - The type of value contained in the node.
Parameters:
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.
Returns:
A new component to represent the given value.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.