com.vaadin.terminal.gwt.client.ui.tree
Class TreeConnector

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.AbstractConnector
      extended by com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
          extended by com.vaadin.terminal.gwt.client.ui.tree.TreeConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ComponentConnector, Connector, Paintable, ServerConnector, Serializable

public class TreeConnector
extends AbstractComponentConnector
implements Paintable

See Also:
Serialized Form

Field Summary
static String ATTRIBUTE_ACTION_CAPTION
           
static String ATTRIBUTE_ACTION_ICON
           
static String ATTRIBUTE_NODE_CAPTION
           
static String ATTRIBUTE_NODE_ICON
           
static String ATTRIBUTE_NODE_STYLE
           
protected  Map<VTree.TreeNode,TooltipInfo> tooltipMap
           
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
styleNames
 
Constructor Summary
TreeConnector()
           
 
Method Summary
 AbstractFieldState getState()
          Returns the shared state object for this connector.
 TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
          Gets the tooltip info for the given element.
 VTree getWidget()
          Returns the widget associated with this paintable.
 boolean isReadOnly()
          Checks if the connector is read only.
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 void updateNodeFromUIDL(VTree.TreeNode treeNode, UIDL uidl)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, getLayoutManager, hasEventListener, init, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateEnabledState, updateWidgetStyleNames
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector
addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getRpcImplementations, isEnabled, registerRpc, setChildren, setParent, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector
addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, isEnabled, setChildren, setParent
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 

Field Detail

ATTRIBUTE_NODE_STYLE

public static final String ATTRIBUTE_NODE_STYLE
See Also:
Constant Field Values

ATTRIBUTE_NODE_CAPTION

public static final String ATTRIBUTE_NODE_CAPTION
See Also:
Constant Field Values

ATTRIBUTE_NODE_ICON

public static final String ATTRIBUTE_NODE_ICON
See Also:
Constant Field Values

ATTRIBUTE_ACTION_CAPTION

public static final String ATTRIBUTE_ACTION_CAPTION
See Also:
Constant Field Values

ATTRIBUTE_ACTION_ICON

public static final String ATTRIBUTE_ACTION_ICON
See Also:
Constant Field Values

tooltipMap

protected final Map<VTree.TreeNode,TooltipInfo> tooltipMap
Constructor Detail

TreeConnector

public TreeConnector()
Method Detail

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

getWidget

public VTree getWidget()
Description copied from class: AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.

Specified by:
getWidget in interface ComponentConnector
Overrides:
getWidget in class AbstractComponentConnector
Returns:
The widget associated with this paintable

updateNodeFromUIDL

public void updateNodeFromUIDL(VTree.TreeNode treeNode,
                               UIDL uidl)

isReadOnly

public boolean isReadOnly()
Description copied from interface: ComponentConnector
Checks if the connector is read only.

Specified by:
isReadOnly in interface ComponentConnector
Overrides:
isReadOnly in class AbstractComponentConnector
Returns:
true

getState

public AbstractFieldState getState()
Description copied from class: AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.

Specified by:
getState in interface ComponentConnector
Specified by:
getState in interface Connector
Overrides:
getState in class AbstractComponentConnector
Returns:
the current shared state (never null)

getTooltipInfo

public TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
Description copied from interface: ComponentConnector
Gets the tooltip info for the given element.

Specified by:
getTooltipInfo in interface ComponentConnector
Overrides:
getTooltipInfo in class AbstractComponentConnector
Parameters:
element - The element to lookup a tooltip for
Returns:
The tooltip for the element or null if no tooltip is defined for this element.


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