com.guiseframework.component
Class TreeControl.TreeNodeComponentState

java.lang.Object
  extended by com.guiseframework.component.AbstractCompositeStateComponent.ComponentState
      extended by com.guiseframework.component.TreeControl.TreeNodeComponentState
Enclosing class:
TreeControl

protected static class TreeControl.TreeNodeComponentState
extends AbstractCompositeStateComponent.ComponentState

An encapsulation of a component for a tree node along with other metadata, such as whether the component was editable when created.

Author:
Garret Wilson

Constructor Summary
TreeControl.TreeNodeComponentState(Component component, boolean editable)
          Constructor
 
Method Summary
 boolean isEditable()
           
 
Methods inherited from class com.guiseframework.component.AbstractCompositeStateComponent.ComponentState
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeControl.TreeNodeComponentState

public TreeControl.TreeNodeComponentState(Component component,
                                          boolean editable)
Constructor

Parameters:
component - The component for a tree node.
editable - Whether the component is for a tree node that was editable when the component was created.
expanded - Whether the component is for a tree node that was expanded when the component was created.
Throws:
java.lang.NullPointerException - if the given component is null.
Method Detail

isEditable

public boolean isEditable()
Returns:
Whether the component is for a tree node that was editable when the component was created.


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