com.itmill.toolkit.terminal.gwt.client.ui
Class ITree.TreeNode

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.itmill.toolkit.terminal.gwt.client.ui.ITree.TreeNode
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, ActionOwner, Iterable<com.google.gwt.user.client.ui.Widget>
Enclosing class:
ITree

protected class ITree.TreeNode
extends com.google.gwt.user.client.ui.SimplePanel
implements ActionOwner


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static String CLASSNAME
           
protected  com.google.gwt.user.client.Element nodeCaptionSpan
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ITree.TreeNode()
           
 
Method Summary
protected  void constructDom()
           
 Action[] getActions()
           
 ApplicationConnection getClient()
           
 String getPaintableId()
           
 boolean isChildrenLoaded()
           
protected  boolean isSelected()
           
 void onAttach()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
protected  void setSelected(boolean selected)
          Adds/removes IT Mill Toolkit specific style name.
 void showContextMenu(com.google.gwt.user.client.Event event)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onDetach, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setWidth, setVisible, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

public static final String CLASSNAME
See Also:
Constant Field Values

nodeCaptionSpan

protected com.google.gwt.user.client.Element nodeCaptionSpan
Constructor Detail

ITree.TreeNode

public ITree.TreeNode()
Method Detail

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

constructDom

protected void constructDom()

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)

isChildrenLoaded

public boolean isChildrenLoaded()

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 String getPaintableId()
Specified by:
getPaintableId in interface ActionOwner

setSelected

protected void setSelected(boolean selected)
Adds/removes IT Mill Toolkit specific style name. This method ought to be called only from ITree.

Parameters:
selected -

isSelected

protected boolean isSelected()

showContextMenu

public void showContextMenu(com.google.gwt.user.client.Event event)

onAttach

public void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Widget


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.