Package jexer.ttree
Class TDirectoryTreeItem
- java.lang.Object
-
- jexer.TWidget
-
- jexer.ttree.TTreeItem
-
- jexer.ttree.TDirectoryTreeItem
-
-
Constructor Summary
Constructors Constructor Description TDirectoryTreeItem(TTreeViewWidget view, java.lang.String text, boolean expanded)
Public constructor.TDirectoryTreeItem(TTreeViewWidget view, java.lang.String text, boolean expanded, boolean openParents)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getFile()
Get the File corresponding to this list item.void
onExpand()
Called when this item is expanded or collapsed.-
Methods inherited from class jexer.ttree.TTreeItem
draw, expandTree, getMaximumColumn, getPrefix, getText, getTreeView, isExpandable, isExpanded, isSelected, onKeypress, onMouseUp, setExpandable, setExpanded, setSelectable, setSelected, setText, unselect
-
Methods inherited from class jexer.TWidget
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onMenu, onMouseDoubleClick, onMouseDown, onMouseMotion, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
-
-
-
-
Constructor Detail
-
TDirectoryTreeItem
public TDirectoryTreeItem(TTreeViewWidget view, java.lang.String text, boolean expanded) throws java.io.IOException
Public constructor.- Parameters:
view
- root TTreeViewWidgettext
- text for this itemexpanded
- if true, have it expanded immediately- Throws:
java.io.IOException
- if a java.io operation throws
-
TDirectoryTreeItem
public TDirectoryTreeItem(TTreeViewWidget view, java.lang.String text, boolean expanded, boolean openParents) throws java.io.IOException
Public constructor.- Parameters:
view
- root TTreeViewWidgettext
- text for this itemexpanded
- if true, have it expanded immediatelyopenParents
- if true, expand all paths up the root path and return the root path entry- Throws:
java.io.IOException
- if a java.io operation throws
-
-