E
- public class Tree<E extends TreeNode<E>> extends Widget<HTMLDivElement,Tree<E>> implements HasBeforeCollapseHandlers<Tree<E>,E>, HasBeforeExpandHandlers<Tree<E>,E>, HasCollapseHandlers<Tree<E>,E>, HasExpandHandlers<Tree<E>,E>, HasBeforeSelectionChangeHandlers<Tree<E>,E>, HasSelectionChangeHandlers<Tree<E>,E>
Modifier and Type | Class and Description |
---|---|
protected class |
Tree.ContentPanel |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addContextMenuHandler(ContextMenuHandler<Tree<E>> contextMenuHandler,
EventPhase eventPhase) |
Tree<E> |
closeContextMenu() |
E |
get(Element<?> element) |
protected Tree.ContentPanel |
getContentPanel() |
protected ContextMenuHandler<Tree<E>> |
getContextMenuHandler() |
TreeModel<E> |
getModel() |
Tree<E> |
setActive(E node) |
protected Tree<E> |
setActive(com.xalys.xgl.tree.Tree.TreeNodeWidget li) |
Tree<E> |
setContextMenuGenerator(TreeContextMenuGenerator<E> contextMenuGenerator) |
Tree<E> |
setExpanded(E node) |
Tree<E> |
switchState(E node) |
Tree<E> |
switchState(E node,
boolean animate) |
protected Tree<E> |
switchState(com.xalys.xgl.tree.Tree.TreeNodeWidget li,
boolean animate) |
void |
update() |
void |
update(E entity) |
add, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBeforeCollapseHandler, addBeforeCollapseHandler
addBeforeExpandHandler, addBeforeExpandHandler
addCollapseHandler, addCollapseHandler
addExpandHandler, addExpandHandler
addBeforeSelectionChangeHandler, addBeforeSelectionChangeHandler
addSelectionChangeHandler, addSelectionChangeHandler
addEventHandler, addEventHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
protected Tree.ContentPanel getContentPanel()
public void update()
public void update(E entity)
public HandlerRegistration addContextMenuHandler(ContextMenuHandler<Tree<E>> contextMenuHandler, EventPhase eventPhase)
addContextMenuHandler
in interface HasContextMenuHandlers<Tree<E extends TreeNode<E>>>
protected Tree<E> switchState(com.xalys.xgl.tree.Tree.TreeNodeWidget li, boolean animate)
public Tree<E> setContextMenuGenerator(TreeContextMenuGenerator<E> contextMenuGenerator)
contextMenu
- the contextMenu to setprotected ContextMenuHandler<Tree<E>> getContextMenuHandler()
getContextMenuHandler
in class Widget<HTMLDivElement,Tree<E extends TreeNode<E>>>
Copyright © 2018 Xalys. All rights reserved.