public class TreeWidget<T> extends Panel implements IScrollable
Widget.NotifyEvent| Constructor and Description |
|---|
TreeWidget() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeListener(TreeListener<T> l) |
void |
expandTo(Tree<T> node) |
void |
expandToSelection() |
Tree<T> |
findNode(T object) |
Array<Tree<T>> |
findNodes(Array<T> objects) |
int |
getInsetDecal() |
int |
getNumSelected() |
TreeRendererDataProvider<T> |
getRendererDataProvider() |
Array<Tree<T>> |
getSelection() |
java.lang.Iterable<T> |
getSelectionElements() |
int |
getStepForHorizontalScrolling() |
int |
getStepForVerticalScrolling() |
boolean |
isExpanded(Tree<T> node) |
boolean |
isExpandToSelection() |
boolean |
isRootVisible() |
boolean |
isSingleSelection() |
boolean |
removeTreeListener(TreeListener<T> listener) |
void |
select(java.lang.Iterable<Tree<T>> nodes,
boolean unselectOthers) |
void |
select(Tree<T> node,
boolean unselectOthers) |
void |
set(Tree<T> tree)
Replace the entire tree structure and unselect all nodes
|
void |
setExpanded(int level,
boolean expanded) |
boolean |
setExpanded(Tree<T> node,
boolean expanded) |
void |
setExpandToSelection(boolean expandToSelection) |
void |
setInsetDecal(int insetDecal) |
void |
setRendererDataProvider(TreeRendererDataProvider<T> dataProvider) |
void |
setRootVisible(boolean rootVisible) |
void |
setSingleSelection(boolean singleSelection) |
void |
unselectAll()
Unselect of nodes
|
void |
update()
Refresh all the structure
|
boolean |
update(Tree<T> node)
Refresh a tree node
|
add, find, find, getLayout, getNumWidgets, getWidget, getWidget, isAccurateMouseOver, isOver, isOverlappingRendering, keyPressed, keyReleased, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove, removeAll, setAccurateMouseOver, setLayout, setOverlappingRendering, updateaddAnimator, addFocusListener, addKeyListener, addMouseFocusListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, focusTraversal, forceSize, getBackground, getBackgroundBorder, getBackgroundColor, getBackgroundFocus, getBackgroundOver, getBackgroundPress, getBorderSize, getConstraint, getDisableFade, getHeight, getHeightOnScreen, getInsets, getInsetsBottom, getInsetsHeight, getInsetsLeft, getInsetsRight, getInsetsTop, getInsetsWidth, getLocation, getLocationAnchor, getLocationOnScreen, getLocationRef, getLocationRef2, getLocationRefAnchor, getLocationX, getLocationXOnScreen, getLocationY, getLocationYOnScreen, getMaxHeight, getMaxWidth, getMenuPopup, getMinHeight, getMinHeightWidget, getMinWidth, getMinWidthWidget, getName, getOpacity, getParent, getPopup, getRoot, getStyle, getTooltip, getViewport, getViewportInternal, getWidth, getWidthOnScreen, hasFocus, isAutoPackHeight, isAutoPackWidth, isEnabled, isEnabledHerited, isEventsOnExternalDrag, isExternalDrag, isFocusable, isMouseDown, isMouseOver, isMouseOverOrDown, isVisible, isVisibleAndEnabledHerited, isVisibleHerited, mouseClicked, mouseEntered, mouseExited, refreshFocus, removeAnimator, removeFocusListener, removeKeyListener, removeMouseFocusListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackground, setBackgroundBorder, setBackgroundColor, setBackgroundFocus, setBackgroundOver, setBackgroundPress, setBorderSize, setCatchAllEvents, setDisableFade, setEnabled, setEventsOnExternalDrag, setExternalDrag, setFocusable, setFocusOwner, setInsets, setInsets, setLocation, setLocation, setLocationAnchor, setLocationAndAnchorInViewport, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setName, setOpacity, setPopup, setSize, setSize, setStyle, setTooltip, setVisible, toString, uiFireActionpublic final void set(Tree<T> tree)
tree - the tree data structure to set to this widgetupdate()public final void update()
public final boolean update(Tree<T> node)
node - notify the specified node may have structurally changepublic final int getStepForHorizontalScrolling()
getStepForHorizontalScrolling in interface IScrollablepublic final int getStepForVerticalScrolling()
getStepForVerticalScrolling in interface IScrollablepublic final void setExpanded(int level,
boolean expanded)
public final boolean setExpanded(Tree<T> node, boolean expanded)
node - expanded - public final void expandToSelection()
public final void select(Tree<T> node, boolean unselectOthers)
node - node to selectedunselectOthers - true to unselect other nodes (ignored if isSingleSelection() is truepublic final void select(java.lang.Iterable<Tree<T>> nodes, boolean unselectOthers)
nodes - unselectOthers - true to unselect other nodes (ignored if isSingleSelection() is truepublic final void unselectAll()
public final void setRendererDataProvider(TreeRendererDataProvider<T> dataProvider)
public final TreeRendererDataProvider<T> getRendererDataProvider()
public Array<Tree<T>> getSelection()
getSelectionElements()public java.lang.Iterable<T> getSelectionElements()
getSelection()public final int getNumSelected()
public final void addTreeListener(TreeListener<T> l)
l - listener to register to this widgetpublic final boolean removeTreeListener(TreeListener<T> listener)
public final void setRootVisible(boolean rootVisible)
public final boolean isRootVisible()
public final void setSingleSelection(boolean singleSelection)
singleSelection - true to allow only one tree item selectablepublic final boolean isSingleSelection()
public final void setInsetDecal(int insetDecal)
public final int getInsetDecal()
public final void setExpandToSelection(boolean expandToSelection)
public final boolean isExpandToSelection()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com