org.apache.pivot.wtk.skin.terra
Class TerraTreeViewSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.terra.TerraTreeViewSkin
All Implemented Interfaces:
org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.TreeView.Skin, org.apache.pivot.wtk.TreeViewBranchListener, org.apache.pivot.wtk.TreeViewListener, org.apache.pivot.wtk.TreeViewNodeListener, org.apache.pivot.wtk.TreeViewNodeStateListener, org.apache.pivot.wtk.TreeViewSelectionListener, org.apache.pivot.wtk.Visual

public class TerraTreeViewSkin
extends org.apache.pivot.wtk.skin.ComponentSkin
implements org.apache.pivot.wtk.TreeView.Skin, org.apache.pivot.wtk.TreeViewListener, org.apache.pivot.wtk.TreeViewBranchListener, org.apache.pivot.wtk.TreeViewNodeListener, org.apache.pivot.wtk.TreeViewNodeStateListener, org.apache.pivot.wtk.TreeViewSelectionListener

Tree view skin.


Nested Class Summary
protected static class TerraTreeViewSkin.BranchInfo
          An internal data structure that keeps track of skin-related metadata for a tree branch.
protected static class TerraTreeViewSkin.NodeInfo
          An internal data structure that keeps track of skin-related metadata for a tree node.
protected static interface TerraTreeViewSkin.NodeInfoVisitor
          Node info visitor interface.
protected  class TerraTreeViewSkin.VisibleNodeIterator
          Iterates through the visible nodes.
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TreeViewListener
org.apache.pivot.wtk.TreeViewListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TreeViewBranchListener
org.apache.pivot.wtk.TreeViewBranchListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TreeViewNodeListener
org.apache.pivot.wtk.TreeViewNodeListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TreeViewSelectionListener
org.apache.pivot.wtk.TreeViewSelectionListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
org.apache.pivot.wtk.ComponentListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
org.apache.pivot.wtk.ComponentStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
org.apache.pivot.wtk.ComponentMouseListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
org.apache.pivot.wtk.ComponentKeyListener.Adapter
 
Constructor Summary
TerraTreeViewSkin()
           
 
Method Summary
protected  void accept(TerraTreeViewSkin.NodeInfoVisitor visitor)
          Accepts the specified visitor on all node info objects that exist in this skin's node info hierarchy.
 void branchCollapsed(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void branchExpanded(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void checkmarksEnabledChanged(org.apache.pivot.wtk.TreeView treeView)
           
protected  void clearHighlightedNode()
          Clears the highlighted node if one exists.
 void disabledCheckmarkFilterChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.util.Filter<?> previousDisabledCheckmarkFilter)
           
 void disabledNodeFilterChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.util.Filter<?> previousDisabledNodeFilter)
           
 void enabledChanged(org.apache.pivot.wtk.Component component)
           
 void focusedChanged(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Component obverseComponent)
           
 Color getBackgroundColor()
           
 int getBaseline(int width, int height)
           
 Color getBranchControlColor()
           
 Color getBranchControlInactiveSelectionColor()
           
 Color getBranchControlSelectionColor()
           
 Color getColor()
           
 Color getDisabledColor()
           
 Font getFont()
           
 Color getGridColor()
           
 Color getHighlightBackgroundColor()
           
 Color getHighlightColor()
           
 Color getInactiveSelectionBackgroundColor()
           
 Color getInactiveSelectionColor()
           
 int getIndent()
           
 org.apache.pivot.collections.Sequence.Tree.Path getNodeAt(int y)
           
 org.apache.pivot.wtk.Bounds getNodeBounds(org.apache.pivot.collections.Sequence.Tree.Path path)
           
protected  org.apache.pivot.wtk.Bounds getNodeBounds(TerraTreeViewSkin.NodeInfo nodeInfo)
          Gets the bounding box defined by the specified node, or null if the node is not currently visible.
protected  int getNodeHeight()
          Gets the fixed node height of this skin.
 int getNodeIndent(int depth)
           
protected  TerraTreeViewSkin.NodeInfo getNodeInfoAt(int y)
          Gets the metadata associated with the node found at the specified y-coordinate, or null if there is no node at that location.
protected  TerraTreeViewSkin.NodeInfo getNodeInfoAt(org.apache.pivot.collections.Sequence.Tree.Path path)
          Gets the metadata associated with the node at the specified path.
 int getPreferredHeight(int width)
           
 int getPreferredWidth(int height)
           
 int getRowIndex(org.apache.pivot.collections.Sequence.Tree.Path path)
           
 Color getSelectionBackgroundColor()
           
 Color getSelectionColor()
           
 boolean getShowBranchControls()
           
 boolean getShowEmptyBranchControls()
           
 boolean getShowGridLines()
           
 boolean getShowHighlight()
           
 int getSpacing()
           
 void install(org.apache.pivot.wtk.Component component)
           
 boolean isFocusable()
           
 boolean isOpaque()
           
 boolean keyPressed(org.apache.pivot.wtk.Component component, int keyCode, org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
          UP Selects the previous enabled node when select mode is not TreeView.SelectMode.NONE
DOWN Selects the next enabled node when select mode is not TreeView.SelectMode.NONE SHIFT + UP Increases the selection size by including the previous enabled node when select mode is TreeView.SelectMode.MULTI
SHIFT + DOWN Increases the selection size by including the next enabled node when select mode is TreeView.SelectMode.MULTI
 boolean keyReleased(org.apache.pivot.wtk.Component component, int keyCode, org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
          SPACE toggles check mark selection when select mode is TreeView.SelectMode.SINGLE
 void layout()
           
 boolean mouseClick(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y, int count)
           
 boolean mouseDown(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 boolean mouseMove(org.apache.pivot.wtk.Component component, int x, int y)
           
 void mouseOut(org.apache.pivot.wtk.Component component)
           
 boolean mouseUp(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 boolean mouseWheel(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
           
 void nodeCheckStateChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path, org.apache.pivot.wtk.TreeView.NodeCheckState previousCheckState)
           
 void nodeEditorChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.wtk.TreeView.NodeEditor previousNodeEditor)
           
 void nodeInserted(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path, int index)
           
 void nodeRendererChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.wtk.TreeView.NodeRenderer previousNodeRenderer)
           
 void nodesCleared(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void nodesRemoved(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path, int index, int count)
           
 void nodesSorted(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void nodeUpdated(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path, int index)
           
 void paint(Graphics2D graphics)
           
protected  void repaintNode(TerraTreeViewSkin.NodeInfo nodeInfo)
          Repaints the region occupied by the specified node.
 void selectedNodeChanged(org.apache.pivot.wtk.TreeView treeView, Object previousSelectedNode)
           
 void selectedPathAdded(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void selectedPathRemoved(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence.Tree.Path path)
           
 void selectedPathsChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.Sequence<org.apache.pivot.collections.Sequence.Tree.Path> previousSelectedPaths)
           
 void selectModeChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.wtk.TreeView.SelectMode previousSelectMode)
           
 void setBackgroundColor(Color backgroundColor)
           
 void setBackgroundColor(int backgroundColor)
           
 void setBackgroundColor(String backgroundColor)
           
 void setBranchControlColor(Color branchControlColor)
           
 void setBranchControlColor(int branchControlColor)
           
 void setBranchControlColor(String branchControlColor)
           
 void setBranchControlInactiveSelectionColor(Color branchControlInactiveSelectionColor)
           
 void setBranchControlInactiveSelectionColor(int branchControlInactiveSelectionColor)
           
 void setBranchControlInactiveSelectionColor(String branchControlInactiveSelectionColor)
           
 void setBranchControlSelectionColor(Color branchControlSelectionColor)
           
 void setBranchControlSelectionColor(int branchControlSelectionColor)
           
 void setBranchControlSelectionColor(String branchControlSelectionColor)
           
 void setColor(Color color)
           
 void setColor(int color)
           
 void setColor(String color)
           
 void setDisabledColor(Color disabledColor)
           
 void setDisabledColor(int disabledColor)
           
 void setDisabledColor(String disabledColor)
           
 void setFont(org.apache.pivot.collections.Dictionary<String,?> font)
           
 void setFont(Font font)
           
 void setFont(String font)
           
 void setGridColor(Color gridColor)
           
 void setGridColor(int gridColor)
           
 void setGridColor(String gridColor)
           
 void setHighlightBackgroundColor(Color highlightBackgroundColor)
           
 void setHighlightBackgroundColor(int highlightBackgroundColor)
           
 void setHighlightBackgroundColor(String highlightBackgroundColor)
           
 void setHighlightColor(Color highlightColor)
           
 void setHighlightColor(int highlightColor)
           
 void setHighlightColor(String highlightColor)
           
 void setInactiveSelectionBackgroundColor(Color inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionBackgroundColor(String inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionColor(Color inactiveSelectionColor)
           
 void setInactiveSelectionColor(int inactiveSelectionColor)
           
 void setInactiveSelectionColor(String inactiveSelectionColor)
           
 void setIndent(int indent)
           
 void setIndent(Number indent)
           
 void setSelectionBackgroundColor(Color selectionBackgroundColor)
           
 void setSelectionBackgroundColor(int selectionBackgroundColor)
           
 void setSelectionBackgroundColor(String selectionBackgroundColor)
           
 void setSelectionColor(Color selectionColor)
           
 void setSelectionColor(int selectionColor)
           
 void setSelectionColor(String selectionColor)
           
 void setShowBranchControls(boolean showBranchControls)
           
 void setShowEmptyBranchControls(boolean showEmptyBranchControls)
           
 void setShowGridLines(boolean showGridLines)
           
 void setShowHighlight(boolean showHighlight)
           
 void setSpacing(int spacing)
           
 void setSpacing(Number spacing)
           
 void showMixedCheckmarkStateChanged(org.apache.pivot.wtk.TreeView treeView)
           
 void treeDataChanged(org.apache.pivot.wtk.TreeView treeView, org.apache.pivot.collections.List<?> previousTreeData)
           
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getComponent, getHeight, getPreferredSize, getWidth, heightLimitsChanged, invalidateComponent, keyTyped, locationChanged, menuHandlerChanged, mouseOver, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerraTreeViewSkin

public TerraTreeViewSkin()
Method Detail

install

public void install(org.apache.pivot.wtk.Component component)
Specified by:
install in interface org.apache.pivot.wtk.Skin
Overrides:
install in class org.apache.pivot.wtk.skin.ComponentSkin

getPreferredWidth

public int getPreferredWidth(int height)
Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual

getPreferredHeight

public int getPreferredHeight(int width)
Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual

getBaseline

public int getBaseline(int width,
                       int height)
Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin

layout

public void layout()
Specified by:
layout in interface org.apache.pivot.wtk.Skin

paint

public void paint(Graphics2D graphics)
Specified by:
paint in interface org.apache.pivot.wtk.Visual

getFont

public Font getFont()

setFont

public void setFont(Font font)

setFont

public final void setFont(String font)

setFont

public final void setFont(org.apache.pivot.collections.Dictionary<String,?> font)

getColor

public Color getColor()

setColor

public void setColor(Color color)

setColor

public void setColor(String color)

setColor

public final void setColor(int color)

getDisabledColor

public Color getDisabledColor()

setDisabledColor

public void setDisabledColor(Color disabledColor)

setDisabledColor

public void setDisabledColor(String disabledColor)

setDisabledColor

public final void setDisabledColor(int disabledColor)

getBackgroundColor

public Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

setBackgroundColor

public void setBackgroundColor(String backgroundColor)

setBackgroundColor

public final void setBackgroundColor(int backgroundColor)

getSelectionColor

public Color getSelectionColor()

setSelectionColor

public void setSelectionColor(Color selectionColor)

setSelectionColor

public void setSelectionColor(String selectionColor)

setSelectionColor

public final void setSelectionColor(int selectionColor)

getSelectionBackgroundColor

public Color getSelectionBackgroundColor()

setSelectionBackgroundColor

public void setSelectionBackgroundColor(Color selectionBackgroundColor)

setSelectionBackgroundColor

public void setSelectionBackgroundColor(String selectionBackgroundColor)

setSelectionBackgroundColor

public final void setSelectionBackgroundColor(int selectionBackgroundColor)

getInactiveSelectionColor

public Color getInactiveSelectionColor()

setInactiveSelectionColor

public void setInactiveSelectionColor(Color inactiveSelectionColor)

setInactiveSelectionColor

public void setInactiveSelectionColor(String inactiveSelectionColor)

setInactiveSelectionColor

public final void setInactiveSelectionColor(int inactiveSelectionColor)

getInactiveSelectionBackgroundColor

public Color getInactiveSelectionBackgroundColor()

setInactiveSelectionBackgroundColor

public void setInactiveSelectionBackgroundColor(Color inactiveSelectionBackgroundColor)

setInactiveSelectionBackgroundColor

public void setInactiveSelectionBackgroundColor(String inactiveSelectionBackgroundColor)

setInactiveSelectionBackgroundColor

public final void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)

getHighlightColor

public Color getHighlightColor()

setHighlightColor

public void setHighlightColor(Color highlightColor)

setHighlightColor

public void setHighlightColor(String highlightColor)

setHighlightColor

public final void setHighlightColor(int highlightColor)

getHighlightBackgroundColor

public Color getHighlightBackgroundColor()

setHighlightBackgroundColor

public void setHighlightBackgroundColor(Color highlightBackgroundColor)

setHighlightBackgroundColor

public void setHighlightBackgroundColor(String highlightBackgroundColor)

setHighlightBackgroundColor

public final void setHighlightBackgroundColor(int highlightBackgroundColor)

getSpacing

public int getSpacing()

setSpacing

public void setSpacing(int spacing)

setSpacing

public void setSpacing(Number spacing)

getIndent

public int getIndent()

setIndent

public void setIndent(int indent)

setIndent

public void setIndent(Number indent)

getShowHighlight

public boolean getShowHighlight()

setShowHighlight

public void setShowHighlight(boolean showHighlight)

getShowBranchControls

public boolean getShowBranchControls()

setShowBranchControls

public void setShowBranchControls(boolean showBranchControls)

getShowEmptyBranchControls

public boolean getShowEmptyBranchControls()

setShowEmptyBranchControls

public void setShowEmptyBranchControls(boolean showEmptyBranchControls)

getBranchControlColor

public Color getBranchControlColor()

setBranchControlColor

public void setBranchControlColor(Color branchControlColor)

setBranchControlColor

public void setBranchControlColor(String branchControlColor)

setBranchControlColor

public final void setBranchControlColor(int branchControlColor)

getBranchControlSelectionColor

public Color getBranchControlSelectionColor()

setBranchControlSelectionColor

public void setBranchControlSelectionColor(Color branchControlSelectionColor)

setBranchControlSelectionColor

public void setBranchControlSelectionColor(String branchControlSelectionColor)

setBranchControlSelectionColor

public final void setBranchControlSelectionColor(int branchControlSelectionColor)

getBranchControlInactiveSelectionColor

public Color getBranchControlInactiveSelectionColor()

setBranchControlInactiveSelectionColor

public void setBranchControlInactiveSelectionColor(Color branchControlInactiveSelectionColor)

setBranchControlInactiveSelectionColor

public void setBranchControlInactiveSelectionColor(String branchControlInactiveSelectionColor)

setBranchControlInactiveSelectionColor

public final void setBranchControlInactiveSelectionColor(int branchControlInactiveSelectionColor)

getGridColor

public Color getGridColor()

setGridColor

public void setGridColor(Color gridColor)

setGridColor

public void setGridColor(String gridColor)

setGridColor

public final void setGridColor(int gridColor)

getShowGridLines

public boolean getShowGridLines()

setShowGridLines

public void setShowGridLines(boolean showGridLines)

getNodeHeight

protected int getNodeHeight()
Gets the fixed node height of this skin.


getNodeInfoAt

protected final TerraTreeViewSkin.NodeInfo getNodeInfoAt(int y)
Gets the metadata associated with the node found at the specified y-coordinate, or null if there is no node at that location.


getNodeInfoAt

protected final TerraTreeViewSkin.NodeInfo getNodeInfoAt(org.apache.pivot.collections.Sequence.Tree.Path path)
Gets the metadata associated with the node at the specified path. The path must be valid. The empty path is supported and represents the root node info.


getNodeBounds

protected final org.apache.pivot.wtk.Bounds getNodeBounds(TerraTreeViewSkin.NodeInfo nodeInfo)
Gets the bounding box defined by the specified node, or null if the node is not currently visible.


accept

protected final void accept(TerraTreeViewSkin.NodeInfoVisitor visitor)
Accepts the specified visitor on all node info objects that exist in this skin's node info hierarchy.

Parameters:
visitor - The callback to execute on each node info object

repaintNode

protected void repaintNode(TerraTreeViewSkin.NodeInfo nodeInfo)
Repaints the region occupied by the specified node.


clearHighlightedNode

protected void clearHighlightedNode()
Clears the highlighted node if one exists.


mouseMove

public boolean mouseMove(org.apache.pivot.wtk.Component component,
                         int x,
                         int y)
Specified by:
mouseMove in interface org.apache.pivot.wtk.ComponentMouseListener
Overrides:
mouseMove in class org.apache.pivot.wtk.skin.ComponentSkin

mouseOut

public void mouseOut(org.apache.pivot.wtk.Component component)
Specified by:
mouseOut in interface org.apache.pivot.wtk.ComponentMouseListener
Overrides:
mouseOut in class org.apache.pivot.wtk.skin.ComponentSkin

mouseDown

public boolean mouseDown(org.apache.pivot.wtk.Component component,
                         org.apache.pivot.wtk.Mouse.Button button,
                         int x,
                         int y)
Specified by:
mouseDown in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseDown in class org.apache.pivot.wtk.skin.ComponentSkin

mouseUp

public boolean mouseUp(org.apache.pivot.wtk.Component component,
                       org.apache.pivot.wtk.Mouse.Button button,
                       int x,
                       int y)
Specified by:
mouseUp in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseUp in class org.apache.pivot.wtk.skin.ComponentSkin

mouseClick

public boolean mouseClick(org.apache.pivot.wtk.Component component,
                          org.apache.pivot.wtk.Mouse.Button button,
                          int x,
                          int y,
                          int count)
Specified by:
mouseClick in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseClick in class org.apache.pivot.wtk.skin.ComponentSkin

mouseWheel

public boolean mouseWheel(org.apache.pivot.wtk.Component component,
                          org.apache.pivot.wtk.Mouse.ScrollType scrollType,
                          int scrollAmount,
                          int wheelRotation,
                          int x,
                          int y)
Specified by:
mouseWheel in interface org.apache.pivot.wtk.ComponentMouseWheelListener
Overrides:
mouseWheel in class org.apache.pivot.wtk.skin.ComponentSkin

keyPressed

public boolean keyPressed(org.apache.pivot.wtk.Component component,
                          int keyCode,
                          org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
UP Selects the previous enabled node when select mode is not TreeView.SelectMode.NONE
DOWN Selects the next enabled node when select mode is not TreeView.SelectMode.NONE

SHIFT + UP Increases the selection size by including the previous enabled node when select mode is TreeView.SelectMode.MULTI
SHIFT + DOWN Increases the selection size by including the next enabled node when select mode is TreeView.SelectMode.MULTI

Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener
Overrides:
keyPressed in class org.apache.pivot.wtk.skin.ComponentSkin

keyReleased

public boolean keyReleased(org.apache.pivot.wtk.Component component,
                           int keyCode,
                           org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
SPACE toggles check mark selection when select mode is TreeView.SelectMode.SINGLE

Specified by:
keyReleased in interface org.apache.pivot.wtk.ComponentKeyListener
Overrides:
keyReleased in class org.apache.pivot.wtk.skin.ComponentSkin

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface org.apache.pivot.wtk.Skin
Overrides:
isFocusable in class org.apache.pivot.wtk.skin.ComponentSkin

isOpaque

public boolean isOpaque()
Specified by:
isOpaque in interface org.apache.pivot.wtk.Skin
Overrides:
isOpaque in class org.apache.pivot.wtk.skin.ComponentSkin

enabledChanged

public void enabledChanged(org.apache.pivot.wtk.Component component)
Specified by:
enabledChanged in interface org.apache.pivot.wtk.ComponentStateListener
Overrides:
enabledChanged in class org.apache.pivot.wtk.skin.ComponentSkin

focusedChanged

public void focusedChanged(org.apache.pivot.wtk.Component component,
                           org.apache.pivot.wtk.Component obverseComponent)
Specified by:
focusedChanged in interface org.apache.pivot.wtk.ComponentStateListener
Overrides:
focusedChanged in class org.apache.pivot.wtk.skin.ComponentSkin

getNodeAt

public org.apache.pivot.collections.Sequence.Tree.Path getNodeAt(int y)
Specified by:
getNodeAt in interface org.apache.pivot.wtk.TreeView.Skin

getNodeBounds

public org.apache.pivot.wtk.Bounds getNodeBounds(org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
getNodeBounds in interface org.apache.pivot.wtk.TreeView.Skin

getNodeIndent

public int getNodeIndent(int depth)
Specified by:
getNodeIndent in interface org.apache.pivot.wtk.TreeView.Skin

getRowIndex

public int getRowIndex(org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
getRowIndex in interface org.apache.pivot.wtk.TreeView.Skin

treeDataChanged

public void treeDataChanged(org.apache.pivot.wtk.TreeView treeView,
                            org.apache.pivot.collections.List<?> previousTreeData)
Specified by:
treeDataChanged in interface org.apache.pivot.wtk.TreeViewListener

nodeRendererChanged

public void nodeRendererChanged(org.apache.pivot.wtk.TreeView treeView,
                                org.apache.pivot.wtk.TreeView.NodeRenderer previousNodeRenderer)
Specified by:
nodeRendererChanged in interface org.apache.pivot.wtk.TreeViewListener

nodeEditorChanged

public void nodeEditorChanged(org.apache.pivot.wtk.TreeView treeView,
                              org.apache.pivot.wtk.TreeView.NodeEditor previousNodeEditor)
Specified by:
nodeEditorChanged in interface org.apache.pivot.wtk.TreeViewListener

selectModeChanged

public void selectModeChanged(org.apache.pivot.wtk.TreeView treeView,
                              org.apache.pivot.wtk.TreeView.SelectMode previousSelectMode)
Specified by:
selectModeChanged in interface org.apache.pivot.wtk.TreeViewListener

checkmarksEnabledChanged

public void checkmarksEnabledChanged(org.apache.pivot.wtk.TreeView treeView)
Specified by:
checkmarksEnabledChanged in interface org.apache.pivot.wtk.TreeViewListener

showMixedCheckmarkStateChanged

public void showMixedCheckmarkStateChanged(org.apache.pivot.wtk.TreeView treeView)
Specified by:
showMixedCheckmarkStateChanged in interface org.apache.pivot.wtk.TreeViewListener

disabledNodeFilterChanged

public void disabledNodeFilterChanged(org.apache.pivot.wtk.TreeView treeView,
                                      org.apache.pivot.util.Filter<?> previousDisabledNodeFilter)
Specified by:
disabledNodeFilterChanged in interface org.apache.pivot.wtk.TreeViewListener

disabledCheckmarkFilterChanged

public void disabledCheckmarkFilterChanged(org.apache.pivot.wtk.TreeView treeView,
                                           org.apache.pivot.util.Filter<?> previousDisabledCheckmarkFilter)
Specified by:
disabledCheckmarkFilterChanged in interface org.apache.pivot.wtk.TreeViewListener

branchExpanded

public void branchExpanded(org.apache.pivot.wtk.TreeView treeView,
                           org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
branchExpanded in interface org.apache.pivot.wtk.TreeViewBranchListener

branchCollapsed

public void branchCollapsed(org.apache.pivot.wtk.TreeView treeView,
                            org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
branchCollapsed in interface org.apache.pivot.wtk.TreeViewBranchListener

nodeInserted

public void nodeInserted(org.apache.pivot.wtk.TreeView treeView,
                         org.apache.pivot.collections.Sequence.Tree.Path path,
                         int index)
Specified by:
nodeInserted in interface org.apache.pivot.wtk.TreeViewNodeListener

nodesRemoved

public void nodesRemoved(org.apache.pivot.wtk.TreeView treeView,
                         org.apache.pivot.collections.Sequence.Tree.Path path,
                         int index,
                         int count)
Specified by:
nodesRemoved in interface org.apache.pivot.wtk.TreeViewNodeListener

nodeUpdated

public void nodeUpdated(org.apache.pivot.wtk.TreeView treeView,
                        org.apache.pivot.collections.Sequence.Tree.Path path,
                        int index)
Specified by:
nodeUpdated in interface org.apache.pivot.wtk.TreeViewNodeListener

nodesCleared

public void nodesCleared(org.apache.pivot.wtk.TreeView treeView,
                         org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
nodesCleared in interface org.apache.pivot.wtk.TreeViewNodeListener

nodesSorted

public void nodesSorted(org.apache.pivot.wtk.TreeView treeView,
                        org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
nodesSorted in interface org.apache.pivot.wtk.TreeViewNodeListener

nodeCheckStateChanged

public void nodeCheckStateChanged(org.apache.pivot.wtk.TreeView treeView,
                                  org.apache.pivot.collections.Sequence.Tree.Path path,
                                  org.apache.pivot.wtk.TreeView.NodeCheckState previousCheckState)
Specified by:
nodeCheckStateChanged in interface org.apache.pivot.wtk.TreeViewNodeStateListener

selectedPathAdded

public void selectedPathAdded(org.apache.pivot.wtk.TreeView treeView,
                              org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
selectedPathAdded in interface org.apache.pivot.wtk.TreeViewSelectionListener

selectedPathRemoved

public void selectedPathRemoved(org.apache.pivot.wtk.TreeView treeView,
                                org.apache.pivot.collections.Sequence.Tree.Path path)
Specified by:
selectedPathRemoved in interface org.apache.pivot.wtk.TreeViewSelectionListener

selectedPathsChanged

public void selectedPathsChanged(org.apache.pivot.wtk.TreeView treeView,
                                 org.apache.pivot.collections.Sequence<org.apache.pivot.collections.Sequence.Tree.Path> previousSelectedPaths)
Specified by:
selectedPathsChanged in interface org.apache.pivot.wtk.TreeViewSelectionListener

selectedNodeChanged

public void selectedNodeChanged(org.apache.pivot.wtk.TreeView treeView,
                                Object previousSelectedNode)
Specified by:
selectedNodeChanged in interface org.apache.pivot.wtk.TreeViewSelectionListener