|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
com.vaadin.client.ui.tree.TreeConnector
public class TreeConnector
| Field Summary | |
|---|---|
protected java.util.Map<VTree.TreeNode,TooltipInfo> |
tooltipMap
|
| Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector |
|---|
SIGNIFICANT_MOVE_THRESHOLD |
| Constructor Summary | |
|---|---|
TreeConnector()
|
|
| Method Summary | |
|---|---|
com.vaadin.shared.ui.tree.TreeState |
getState()
Returns the shared state object for this connector. |
TooltipInfo |
getTooltipInfo(Element element)
Gets the tooltip info for the given element. |
VTree |
getWidget()
Returns the widget associated with this paintable. |
boolean |
hasTooltip()
Check whether there might be a tooltip for this component. |
protected void |
init()
Called when the connector has been initialized. |
boolean |
isReadOnly()
Checks if the connector is read only. |
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed. |
protected void |
sendContextClickEvent(com.vaadin.shared.MouseEventDetails details,
EventTarget eventTarget)
This method sends the context menu event to the server-side. |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
void |
updateNodeFromUIDL(VTree.TreeNode treeNode,
UIDL uidl,
int level)
|
| Methods inherited from class com.vaadin.client.ui.AbstractConnector |
|---|
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, 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.client.ServerConnector |
|---|
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Field Detail |
|---|
protected final java.util.Map<VTree.TreeNode,TooltipInfo> tooltipMap
| Constructor Detail |
|---|
public TreeConnector()
| Method Detail |
|---|
protected void init()
AbstractConnector
init in class AbstractConnector
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
updateFromUIDL in interface Paintablepublic void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandler
onStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the changepublic VTree getWidget()
AbstractComponentConnector
getWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnector
public void updateNodeFromUIDL(VTree.TreeNode treeNode,
UIDL uidl,
int level)
public boolean isReadOnly()
ComponentConnector
isReadOnly in interface ComponentConnectorisReadOnly in class AbstractComponentConnectorpublic com.vaadin.shared.ui.tree.TreeState getState()
AbstractConnector
getState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorpublic TooltipInfo getTooltipInfo(Element element)
ComponentConnector
When overriding this method, ComponentConnector.hasTooltip() should also be
overridden to return true in all situations where this
method might return a non-empty result.
getTooltipInfo in interface ComponentConnectorgetTooltipInfo in class AbstractComponentConnectorelement - The element to lookup a tooltip for
public boolean hasTooltip()
ComponentConnectorComponentConnector.getTooltipInfo(Element)) if this method returns true.
This is only done to optimize performance, so in cases where the status
is not known, it's safer to return true so that there will
be a tooltip handler even though it might not be needed in all cases.
hasTooltip in interface ComponentConnectorhasTooltip in class AbstractComponentConnectortrue if some part of the component might have a
tooltip, otherwise false
protected void sendContextClickEvent(com.vaadin.shared.MouseEventDetails details,
EventTarget eventTarget)
AbstractComponentConnector
sendContextClickEvent in class AbstractComponentConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||