pivot.wtk.content
Class TreeViewFileRenderer
java.lang.Object
pivot.wtk.Component
pivot.wtk.Container
pivot.wtk.FlowPane
pivot.wtk.content.TreeViewFileRenderer
- All Implemented Interfaces:
- java.lang.Iterable<Component>, Sequence<Component>, ConstrainedVisual, Renderer, TreeView.NodeRenderer, Visual
public class TreeViewFileRenderer
- extends FlowPane
- implements TreeView.NodeRenderer
Tree view renderer for displaying file system contents.
- Author:
- gbrown
Methods inherited from class pivot.wtk.Container |
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, invalidate, isAncestor, isFocusable, isValid, iterator, load, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, store, update, validate |
Methods inherited from class pivot.wtk.Component |
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, isBlocked, isDisplayable, isEnabled, isFocused, isMouseOver, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointToAncestor, mouseOver, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setFocused, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setUserData, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ICON_WIDTH
public static final int ICON_WIDTH
- See Also:
- Constant Field Values
ICON_HEIGHT
public static final int ICON_HEIGHT
- See Also:
- Constant Field Values
TreeViewFileRenderer
public TreeViewFileRenderer()
setSize
public void setSize(int width,
int height)
- Description copied from class:
Component
- NOTE This method should only be called during layout. Callers should
use
Component.setPreferredSize(int, int)
.
- Specified by:
setSize
in interface ConstrainedVisual
- Overrides:
setSize
in class Component
getPreferredHeight
public int getPreferredHeight(int width)
- Description copied from interface:
ConstrainedVisual
- Returns the visual's preferred height given the provided width
constraint.
- Specified by:
getPreferredHeight
in interface ConstrainedVisual
- Overrides:
getPreferredHeight
in class Component
- Parameters:
width
- The width by which to constrain the preferred height, or -1
for no constraint.
render
public void render(java.lang.Object node,
TreeView treeView,
boolean expanded,
boolean selected,
TreeView.NodeCheckState checkState,
boolean highlighted,
boolean disabled)
- Specified by:
render
in interface TreeView.NodeRenderer
getUseNativeIcons
public boolean getUseNativeIcons()
setUseNativeIcons
public void setUseNativeIcons(boolean useNativeIcons)