|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSimplePanel
com.vaadin.client.ui.SimpleFocusablePanel
com.vaadin.client.ui.FocusElementPanel
com.vaadin.client.ui.VTree
public class VTree
| Nested Class Summary | |
|---|---|
class |
VTree.TreeNode
|
| Field Summary | |
|---|---|
FlowPanel |
body
For internal use only. |
java.lang.String[] |
bodyActionKeys
For internal use only. |
static java.lang.String |
CLASSNAME
|
ApplicationConnection |
client
For internal use only. |
TreeConnector |
connector
For internal use only. |
boolean |
disabled
For internal use only. |
int |
dragMode
For internal use only. |
VTree.TreeNode |
focusedNode
For internal use only. |
VLazyExecutor |
iconLoaded
|
boolean |
immediate
For internal use only. |
boolean |
isHtmlContentAllowed
For internal use only. |
boolean |
isMultiselect
For internal use only. |
boolean |
isNullSelectionAllowed
For internal use only. |
VTree.TreeNode |
lastSelection
For internal use only. |
static com.vaadin.shared.ui.MultiSelectMode |
MULTISELECT_MODE_DEFAULT
Deprecated. As of 7.0, use MultiSelectMode.DEFAULT instead. |
static com.vaadin.shared.ui.MultiSelectMode |
MULTISELECT_MODE_SIMPLE
Deprecated. As of 7.0, use MultiSelectMode.SIMPLE instead. |
com.vaadin.shared.ui.MultiSelectMode |
multiSelectMode
For internal use only. |
java.lang.String |
paintableId
For internal use only. |
boolean |
readonly
For internal use only. |
boolean |
rendering
For internal use only. |
boolean |
selectable
For internal use only. |
java.util.Set<java.lang.String> |
selectedIds
For internal use only. |
| Constructor Summary | |
|---|---|
VTree()
|
|
| Method Summary | |
|---|---|
void |
bindAriaCaption(com.google.gwt.user.client.Element captionElement)
Called to bind the provided caption (label in HTML speak) element to the main input element of the Widget. |
void |
clearNodeToKeyMap()
|
void |
deselectAll()
Deselects all items in the tree |
java.lang.String |
getActionCaption(java.lang.String actionKey)
|
java.lang.String |
getActionIcon(java.lang.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(java.lang.String key)
|
java.lang.String |
getPaintableId()
|
protected java.util.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(java.lang.String subPart)
Locates an element inside a component using the identifier provided in subPart. |
java.lang.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(BlurEvent event)
|
void |
onBrowserEvent(Event event)
|
void |
onFocus(FocusEvent event)
|
void |
onKeyDown(KeyDownEvent event)
|
void |
onKeyPress(KeyPressEvent event)
|
void |
registerAction(java.lang.String key,
java.lang.String caption,
java.lang.String iconUrl)
|
void |
registerNode(VTree.TreeNode treeNode)
|
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 |
updateDropHandler(UIDL childUidl)
For internal use only. |
| Methods inherited from class com.vaadin.client.ui.FocusElementPanel |
|---|
getFocusElement, setFocus, setTabIndex, setWidget |
| Methods inherited from class com.vaadin.client.ui.SimpleFocusablePanel |
|---|
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSNAME
@Deprecated public static final com.vaadin.shared.ui.MultiSelectMode MULTISELECT_MODE_DEFAULT
MultiSelectMode.DEFAULT instead.@Deprecated public static final com.vaadin.shared.ui.MultiSelectMode MULTISELECT_MODE_SIMPLE
MultiSelectMode.SIMPLE instead.public final FlowPanel body
public java.util.Set<java.lang.String> selectedIds
public ApplicationConnection client
public java.lang.String paintableId
public boolean selectable
public boolean isMultiselect
public VTree.TreeNode lastSelection
public VTree.TreeNode focusedNode
public com.vaadin.shared.ui.MultiSelectMode multiSelectMode
public boolean immediate
public boolean isNullSelectionAllowed
public boolean isHtmlContentAllowed
public boolean disabled
public boolean readonly
public boolean rendering
public int dragMode
public java.lang.String[] bodyActionKeys
public TreeConnector connector
public VLazyExecutor iconLoaded
| Constructor Detail |
|---|
public VTree()
| Method Detail |
|---|
public void onBrowserEvent(Event event)
public java.lang.String getActionCaption(java.lang.String actionKey)
public java.lang.String getActionIcon(java.lang.String actionKey)
protected VTree.TreeNode getFirstRootNode()
VTree.TreeNodeprotected VTree.TreeNode getLastRootNode()
VTree.TreeNodeprotected java.util.List<VTree.TreeNode> getRootNodes()
VTree.TreeNodes.public void updateDropHandler(UIDL childUidl)
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(java.lang.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(FocusEvent event)
public void onBlur(BlurEvent event)
public void onKeyPress(KeyPressEvent event)
public void onKeyDown(KeyDownEvent event)
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(java.lang.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 java.lang.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 java.lang.String getPaintableId()
getPaintableId in interface ActionOwner
public void registerAction(java.lang.String key,
java.lang.String caption,
java.lang.String iconUrl)
public void registerNode(VTree.TreeNode treeNode)
public void clearNodeToKeyMap()
public void bindAriaCaption(com.google.gwt.user.client.Element captionElement)
HandlesAriaCaption
bindAriaCaption in interface HandlesAriaCaptioncaptionElement - Element of the caption
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||