|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.Container
pivot.wtk.FlowPane
pivot.wtk.content.TreeViewFileRenderer
public class TreeViewFileRenderer
Tree view renderer for displaying file system contents.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Field Summary | |
---|---|
static int |
ICON_HEIGHT
|
static int |
ICON_WIDTH
|
Constructor Summary | |
---|---|
TreeViewFileRenderer()
|
Method Summary | |
---|---|
int |
getPreferredHeight(int width)
Returns the component's constrained preferred height. |
void |
render(Object node,
TreeView treeView,
boolean expanded,
boolean selected,
TreeView.NodeCheckState checkState,
boolean highlighted,
boolean disabled)
|
void |
setSize(int width,
int height)
NOTE This method should only be called during layout. |
Methods inherited from class pivot.wtk.FlowPane |
---|
getFlowPaneListeners, getOrientation, setOrientation, setOrientation |
Methods inherited from class pivot.wtk.Container |
---|
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface pivot.wtk.Renderer |
---|
getStyles |
Methods inherited from interface pivot.wtk.ConstrainedVisual |
---|
getPreferredSize, getPreferredWidth |
Methods inherited from interface pivot.wtk.Visual |
---|
getHeight, getWidth, paint |
Field Detail |
---|
public static final int ICON_WIDTH
public static final int ICON_HEIGHT
Constructor Detail |
---|
public TreeViewFileRenderer()
Method Detail |
---|
public void setSize(int width, int height)
Component
Component.setPreferredSize(int, int)
.
setSize
in interface ConstrainedVisual
setSize
in class Component
public int getPreferredHeight(int width)
Component
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class Component
width
- The width value by which the preferred height should be constrained, or
-1 for no constraint.
public void render(Object node, TreeView treeView, boolean expanded, boolean selected, TreeView.NodeCheckState checkState, boolean highlighted, boolean disabled)
render
in interface TreeView.NodeRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |