pivot.wtk.skin.terra
Class TerraTreeViewSkin.BranchInfo

java.lang.Object
  extended by pivot.wtk.skin.terra.TerraTreeViewSkin.NodeInfo
      extended by pivot.wtk.skin.terra.TerraTreeViewSkin.BranchInfo
Enclosing class:
TerraTreeViewSkin

protected static class TerraTreeViewSkin.BranchInfo
extends TerraTreeViewSkin.NodeInfo

An internal data structure that keeps track of skin-related metadata for a tree branch.

Author:
tvolkert

Field Summary
protected  List<TerraTreeViewSkin.NodeInfo> children
           
static byte EXPANDED_MASK
           
 
Fields inherited from class pivot.wtk.skin.terra.TerraTreeViewSkin.NodeInfo
CHECK_STATE_CHECKED_MASK, CHECK_STATE_MASK, CHECK_STATE_MIXED_MASK, data, depth, DISABLED_MASK, fields, HIGHLIGHTED_MASK, SELECTED_MASK
 
Constructor Summary
TerraTreeViewSkin.BranchInfo(TerraTreeViewSkin.BranchInfo parent, List<Object> data)
           
 
Method Summary
 boolean isExpanded()
           
 void loadChildren()
          Loads this branch info's children.
 void setExpanded(boolean expanded)
           
 
Methods inherited from class pivot.wtk.skin.terra.TerraTreeViewSkin.NodeInfo
clearField, createNew, getCheckState, getPath, isChecked, isDisabled, isHighlighted, isSelected, setCheckState, setDisabled, setHighlighted, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected List<TerraTreeViewSkin.NodeInfo> children

EXPANDED_MASK

public static final byte EXPANDED_MASK
See Also:
Constant Field Values
Constructor Detail

TerraTreeViewSkin.BranchInfo

public TerraTreeViewSkin.BranchInfo(TerraTreeViewSkin.BranchInfo parent,
                                    List<Object> data)
Method Detail

loadChildren

public void loadChildren()
Loads this branch info's children. The children list is initialized to null and loaded lazily to allow the skin to only create NodeInfo objects for the nodes that it actually needs in order to paint. Thus, it is the responsibility of the skin to check if children is null and call loadChildren() if necessary.


isExpanded

public boolean isExpanded()

setExpanded

public void setExpanded(boolean expanded)