|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel
com.vaadin.terminal.gwt.client.ui.FocusElementPanel
com.vaadin.terminal.gwt.client.ui.VTree
public class VTree
| Nested Class Summary | |
|---|---|
class |
VTree.TreeNode
|
| 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 |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary | |
|---|---|
static String |
CLASSNAME
|
VLazyExecutor |
iconLoaded
|
static String |
ITEM_CLICK_EVENT_ID
|
static int |
MULTISELECT_MODE_DEFAULT
Click selects the current node, ctrl/shift toggles multi selection |
static int |
MULTISELECT_MODE_SIMPLE
Click/touch on node toggles its selected status |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
VTree()
|
|
| Method Summary | |
|---|---|
void |
deselectAll()
Deselects all items in the tree |
String |
getActionCaption(String actionKey)
|
String |
getActionIcon(String actionKey)
|
Action[] |
getActions()
|
ApplicationConnection |
getClient()
|
VTree.TreeNode |
getCommonGrandParent(VTree.TreeNode node1,
VTree.TreeNode node2)
Returns the first common parent of two nodes |
VDropHandler |
getDropHandler()
|
protected VTree.TreeNode |
getFirstRootNode()
Returns the first root node of the tree or null if there are no root nodes. |
protected VTree.TreeNode |
getLastRootNode()
Returns the last root node of the tree or null if there are no root nodes. |
protected int |
getNavigationDownKey()
Get the key that moves the selection head downwards. |
protected int |
getNavigationEndKey()
Get the key the moves the selection to the end of the table. |
protected int |
getNavigationLeftKey()
Get the key that scrolls to the left in the table. |
protected int |
getNavigationPageDownKey()
Get the key the moves the selection one page down in the table. |
protected int |
getNavigationPageUpKey()
Get the key the moves the selection one page up in the table. |
protected int |
getNavigationRightKey()
Get the key that scroll to the right on the table. |
protected int |
getNavigationSelectKey()
Get the key that selects an item in the table. |
protected int |
getNavigationStartKey()
Get the key the moves the selection to the beginning of the table. |
protected int |
getNavigationUpKey()
Get the key that moves the selection head upwards. |
VTree.TreeNode |
getNodeByKey(String key)
|
String |
getPaintableId()
|
protected List<VTree.TreeNode> |
getRootNodes()
Returns a list of all root nodes in the Tree in the order they appear in the tree. |
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in subPart. |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component. |
protected boolean |
handleKeyNavigation(int keycode,
boolean ctrl,
boolean shift)
Handles the keyboard navigation |
boolean |
isSelected(VTree.TreeNode treeNode)
Is a node selected in the tree |
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event)
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event)
|
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
|
void |
setFocusedNode(VTree.TreeNode node)
Focuses a node and scrolls it into view |
void |
setFocusedNode(VTree.TreeNode node,
boolean scrollIntoView)
Sets the node currently in focus |
void |
setSelected(VTree.TreeNode treeNode,
boolean selected)
|
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
| Methods inherited from class com.vaadin.terminal.gwt.client.ui.FocusElementPanel |
|---|
getFocusElement, setFocus, setTabIndex, setWidget |
| Methods inherited from class com.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel |
|---|
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus |
| 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 |
|---|
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| 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, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
public static final String CLASSNAME
public static final String ITEM_CLICK_EVENT_ID
public static final int MULTISELECT_MODE_DEFAULT
public static final int MULTISELECT_MODE_SIMPLE
public VLazyExecutor iconLoaded
| Constructor Detail |
|---|
public VTree()
| Method Detail |
|---|
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic String getActionCaption(String actionKey)
public String getActionIcon(String actionKey)
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
updateFromUIDL in interface Paintableprotected VTree.TreeNode getFirstRootNode()
VTree.TreeNodeprotected VTree.TreeNode getLastRootNode()
VTree.TreeNodeprotected List<VTree.TreeNode> getRootNodes()
VTree.TreeNodes.
public void setSelected(VTree.TreeNode treeNode,
boolean selected)
public boolean isSelected(VTree.TreeNode treeNode)
treeNode - The node to check
public VDropHandler getDropHandler()
getDropHandler in interface VHasDropHandlerpublic VTree.TreeNode getNodeByKey(String key)
public void deselectAll()
public VTree.TreeNode getCommonGrandParent(VTree.TreeNode node1,
VTree.TreeNode node2)
node1 - The first nodenode2 - The second node
public void setFocusedNode(VTree.TreeNode node,
boolean scrollIntoView)
node - The node to focus or null to remove the focus completelyscrollIntoView - Scroll the node into viewpublic void setFocusedNode(VTree.TreeNode node)
node - The node to focuspublic void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerpublic void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerpublic void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandlerpublic void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler
protected boolean handleKeyNavigation(int keycode,
boolean ctrl,
boolean shift)
keycode - The keycode of the pressed keyctrl - Was ctrl pressedshift - Was shift pressed
protected int getNavigationUpKey()
protected int getNavigationDownKey()
protected int getNavigationLeftKey()
protected int getNavigationRightKey()
protected int getNavigationSelectKey()
protected int getNavigationPageUpKey()
protected int getNavigationPageDownKey()
protected int getNavigationStartKey()
protected int getNavigationEndKey()
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.
getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the component
public String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identify
subElement or null
if no identifier could be provided.public Action[] getActions()
getActions in interface ActionOwnerpublic ApplicationConnection getClient()
getClient in interface ActionOwnerpublic String getPaintableId()
getPaintableId in interface ActionOwner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||