com.vaadin.client.ui
Class VTree.TreeNode

java.lang.Object
  extended by SimplePanel
      extended by com.vaadin.client.ui.VTree.TreeNode
All Implemented Interfaces:
ActionOwner
Enclosing class:
VTree

public class VTree.TreeNode
extends SimplePanel
implements ActionOwner


Field Summary
 java.lang.String[] actionKeys
          For internal use only.
 FlowPanel childNodeContainer
          For internal use only.
 boolean childrenLoaded
          For internal use only.
static java.lang.String CLASSNAME
           
static java.lang.String CLASSNAME_FOCUSED
           
 java.lang.String key
           
protected  Element nodeCaptionSpan
           
 
Constructor Summary
VTree.TreeNode()
           
 
Method Summary
protected  void constructDom()
           
protected  void emphasis(com.vaadin.shared.ui.dd.VerticalDropLocation detail)
           
 Action[] getActions()
           
 java.util.List<VTree.TreeNode> getChildren()
          Returns the children of the node
 ApplicationConnection getClient()
           
 com.vaadin.shared.ui.dd.VerticalDropLocation getDropDetail(NativeEvent currentGwtEvent)
           
 java.lang.String getPaintableId()
           
 boolean getState()
          For internal use only.
 boolean isCaptionElement(com.google.gwt.dom.client.Element target)
          Checks if the given element is the caption or the icon.
 boolean isChildrenLoaded()
           
 boolean isGrandParentOf(VTree.TreeNode child)
          Travels up the hierarchy looking for this node
 boolean isLeaf()
           
protected  boolean isSelected()
           
 boolean isSibling(VTree.TreeNode node)
           
 void onBrowserEvent(Event event)
           
protected  void onDetach()
           
 void scrollIntoView()
          Scrolls the caption into view
 void setFocused(boolean focused)
          Is the node focused?
 void setIcon(java.lang.String iconUrl, java.lang.String altText)
           
 void setNodeStyleName(java.lang.String styleName)
           
 void setSelected(boolean selected)
          Adds/removes Vaadin specific style name.
 void setState(boolean state, boolean notifyServer)
          For internal use only.
 void setText(java.lang.String text)
          For internal use only.
 void showContextMenu(Event event)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

CLASSNAME_FOCUSED

public static final java.lang.String CLASSNAME_FOCUSED
See Also:
Constant Field Values

key

public java.lang.String key

actionKeys

public java.lang.String[] actionKeys
For internal use only. May be removed or replaced in the future.


childrenLoaded

public boolean childrenLoaded
For internal use only. May be removed or replaced in the future.


nodeCaptionSpan

protected Element nodeCaptionSpan

childNodeContainer

public FlowPanel childNodeContainer
For internal use only. May be removed or replaced in the future.

Constructor Detail

VTree.TreeNode

public VTree.TreeNode()
Method Detail

getDropDetail

public com.vaadin.shared.ui.dd.VerticalDropLocation getDropDetail(NativeEvent currentGwtEvent)

emphasis

protected void emphasis(com.vaadin.shared.ui.dd.VerticalDropLocation detail)

onBrowserEvent

public void onBrowserEvent(Event event)

isCaptionElement

public boolean isCaptionElement(com.google.gwt.dom.client.Element target)
Checks if the given element is the caption or the icon.

Parameters:
target - The element to check
Returns:
true if the element is the caption or the icon

constructDom

protected void constructDom()

isLeaf

public boolean isLeaf()

setState

public void setState(boolean state,
                     boolean notifyServer)
For internal use only. May be removed or replaced in the future.


getState

public boolean getState()
For internal use only. May be removed or replaced in the future.


setText

public void setText(java.lang.String text)
For internal use only. May be removed or replaced in the future.


isChildrenLoaded

public boolean isChildrenLoaded()

getChildren

public java.util.List<VTree.TreeNode> getChildren()
Returns the children of the node

Returns:
A set of tree nodes

getActions

public Action[] getActions()
Specified by:
getActions in interface ActionOwner
Returns:
Array of IActions

getClient

public ApplicationConnection getClient()
Specified by:
getClient in interface ActionOwner

getPaintableId

public java.lang.String getPaintableId()
Specified by:
getPaintableId in interface ActionOwner

setSelected

public void setSelected(boolean selected)
Adds/removes Vaadin specific style name.

For internal use only. May be removed or replaced in the future.

Parameters:
selected -

isSelected

protected boolean isSelected()

isGrandParentOf

public boolean isGrandParentOf(VTree.TreeNode child)
Travels up the hierarchy looking for this node

Parameters:
child - The child which grandparent this is or is not
Returns:
True if this is a grandparent of the child node

isSibling

public boolean isSibling(VTree.TreeNode node)

showContextMenu

public void showContextMenu(Event event)

onDetach

protected void onDetach()

toString

public java.lang.String toString()

setFocused

public void setFocused(boolean focused)
Is the node focused?

Parameters:
focused - True if focused, false if not

scrollIntoView

public void scrollIntoView()
Scrolls the caption into view


setIcon

public void setIcon(java.lang.String iconUrl,
                    java.lang.String altText)

setNodeStyleName

public void setNodeStyleName(java.lang.String styleName)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.