public class VTree.TreeNode extends com.google.gwt.user.client.ui.SimplePanel implements ActionOwner
Modifier and Type | Field and Description |
---|---|
String[] |
actionKeys
For internal use only.
|
com.google.gwt.user.client.ui.FlowPanel |
childNodeContainer
For internal use only.
|
boolean |
childrenLoaded
For internal use only.
|
static String |
CLASSNAME |
static String |
CLASSNAME_FOCUSED |
String |
key |
protected com.google.gwt.dom.client.Element |
nodeCaptionSpan |
Constructor and Description |
---|
TreeNode() |
Modifier and Type | Method and Description |
---|---|
protected void |
constructDom() |
protected void |
emphasis(VerticalDropLocation detail) |
Action[] |
getActions() |
List<VTree.TreeNode> |
getChildren()
Returns the children of the node
|
ApplicationConnection |
getClient() |
VerticalDropLocation |
getDropDetail(com.google.gwt.dom.client.NativeEvent currentGwtEvent) |
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(com.google.gwt.user.client.Event event) |
protected void |
onDetach() |
void |
scrollIntoView()
Scrolls the caption into view
|
void |
setFocused(boolean focused)
Is the node focused?
|
void |
setHtml(String html)
For internal use only.
|
void |
setIcon(String iconUrl,
String altText) |
void |
setNodeStyleName(String styleName) |
void |
setSelected(boolean selected)
Adds/removes Vaadin specific style name.
|
void |
setState(boolean state,
boolean notifyServer)
For internal use only.
|
void |
setText(String text)
For internal use only.
|
void |
showContextMenu(com.google.gwt.user.client.Event event) |
String |
toString() |
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String CLASSNAME
public static final String CLASSNAME_FOCUSED
public String key
public String[] actionKeys
public boolean childrenLoaded
protected com.google.gwt.dom.client.Element nodeCaptionSpan
public com.google.gwt.user.client.ui.FlowPanel childNodeContainer
public VerticalDropLocation getDropDetail(com.google.gwt.dom.client.NativeEvent currentGwtEvent)
protected void emphasis(VerticalDropLocation detail)
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
public boolean isCaptionElement(com.google.gwt.dom.client.Element target)
target
- The element to checkprotected void constructDom()
public boolean isLeaf()
public void setState(boolean state, boolean notifyServer)
public boolean getState()
public void setText(String text)
public void setHtml(String html)
public boolean isChildrenLoaded()
public List<VTree.TreeNode> getChildren()
public Action[] getActions()
getActions
in interface ActionOwner
public ApplicationConnection getClient()
getClient
in interface ActionOwner
public String getPaintableId()
getPaintableId
in interface ActionOwner
public void setSelected(boolean selected)
For internal use only. May be removed or replaced in the future.
selected
- protected boolean isSelected()
public boolean isGrandParentOf(VTree.TreeNode child)
child
- The child which grandparent this is or is notpublic boolean isSibling(VTree.TreeNode node)
public void showContextMenu(com.google.gwt.user.client.Event event)
protected void onDetach()
onDetach
in class com.google.gwt.user.client.ui.Widget
public String toString()
toString
in class com.google.gwt.user.client.ui.UIObject
public void setFocused(boolean focused)
focused
- True if focused, false if notpublic void scrollIntoView()
public void setNodeStyleName(String styleName)
Copyright © 2019 Vaadin Ltd. All rights reserved.