public class FileTree extends TreeTableModel implements FileClipboard.FileClipboardSource
TreeTableModel.Column
TableModel.CellControl, TableModel.ControlProxy
Modifier and Type | Field and Description |
---|---|
File |
afile |
FileChooser |
chooser |
CanExpand, closedFolder, closedFolderIcon, cutNodes, DepthMask, dontAdjustColumns, dynamicCanExpand, expandControlIcons, expandingIcon, expandingIconIcon, expandingNodes, expansionLevel, FlagMask, HasChildren, hasControls, HasMoreSiblings, hideRoot, IsExpanded, IsNode, matrix, multiSelectOneMustBeSelected, NODE_SCREEN_STATUS_DRAW_AFTER_TEXT_ONLY, NODE_SCREEN_STATUS_EXPANDING, NODE_SCREEN_STATUS_MOUSE_OVER, NODE_SCREEN_STATUS_SELECTED, noLines, openFolder, openFolderIcon, page, pageIcon, PatternMask, ranges, rootObject, selectedColor, selectedLine, selectedLines, selectExpanded, selectHighlightEntireLine, showWaitCursor, slowExpansionWaitTime, treeColumnHeader, treeWidth
activeCellControl, allColumnsSameSize, allRowsSameSize, canHScroll, canMoveColumnHeaders, canVScroll, cellInsets, charHeight, charWidth, clipData, colAdjustments, controlProxy, cursorSize, fillToEqualHeights, fillToEqualWidths, gap, hasColumnHeaders, hasPreferredSize, hasRowHeaders, hasSpanningColumns, hasSpanningRows, horizontalScrollUnit, keepSIP, mouseIsOverCell, numCols, numRows, preferredCols, preferredRows, selectRowWhenEditing, shadeAlternateRows, shadeColor, table, verticalScrollUnit
ERROR_COULD_NOT_CREATE_DESTINATION, ERROR_COULD_NOT_READ_SOURCE, ERROR_COULD_NOT_REMOVE_SOURCE, FILES_REJECTED, FILES_TAKEN
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_ABUT_ANY, BF_ABUT_BOTTOM, BF_ABUT_LEFT, BF_ABUT_RIGHT, BF_ABUT_TOP, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN
ALWAYS_STRETCHABLE, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_HIDDEN, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BUSY_DISPLAY, TAG_COLORS, TAG_CONTROL_PAINTER, TAG_EXPOSE_GROUP, TAG_FIXEDSIZE, TAG_GRAY_BACKGROUND, TAG_HIDE_CONTROL_OBJECT, TAG_HIDE_PARENT, TAG_INNER_TEXT_INSETS, TAG_INPUT_STACK_PARENT, TAG_INSETS, TAG_MAKE_VISIBLE, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PAINT_CONTROL_LIST, TAG_PREFERRED_TEXT_SIZE, TAG_PREFERRED_TEXT_SIZE_HEIGHT, TAG_PREFERRED_TEXT_SIZE_WIDTH, TAG_PREFERREDSIZE, TAG_RECT, TAG_SHADOW_INSETS, TAG_SPAN, TAG_SWIPER, TAG_TEMPORARY_ERROR, TAG_TEXT_INSETS, TAG_TEXTSIZE, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, ContainerDontPaintChildren, Disabled, DisablePopupMenu, DisplayOnly, DontBuffer, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, ModifiersInheritedFromWindow, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpUIEvents, ShowSIP, ShrinkToNothing, SmallControl, TakeChildUIEvents, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
Constructor and Description |
---|
FileTree(String start,
File afile) |
FileTree(String start,
File afile,
FileChooser chooser) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueAfterError(File f,
Throwable t,
int errorType,
boolean hasMore) |
protected void |
expanding(TreeNode node) |
boolean |
fileClipboardOperation(FileClipboard clip,
int op) |
int |
getDrawOptions(int line,
TreeNode node) |
File |
getFileAt(int selectedLine) |
Menu |
getMenuFor(int line) |
boolean |
isCut(TreeNode node) |
boolean |
popupMenuEvent(MenuEvent me) |
void |
pressed(Point p) |
protected void |
showingMenuFor(int row,
int col)
This is called just before the popup menu for a cell is shown.
|
addExtraColumn, addressOf, addressOf, calculateColWidth, calculateExtraColWidth, calculateRowHeight, calculateSizes, canDoCollapse, canDoExpand, canScreenScroll, clicked, collapse, collapseMatrix, collapsing, columnOf, countChildren, countSelectedLines, countTotalChildNodes, delete, deleted, doCollapse, doExpand, doExpand, doubleClicked, doubleClicked, drawNodeData, drawNodeLine, expand, expandMatrix, expandSlowNode, expandTo, expandTo, expandToLevel, findChild, findNextSibling, findParent, findParentOrPreviousSibling, findPreviousSibling, fireSelection, flagsAt, freeReusedIcon, fullExpandCollapse, getColumnCount, getColumns, getDataObjectAt, getDataToDragAndDrop, getDataToTransfer, getDataWidth, getDepthOf, getDisplayStatus, getDisplayString, getExtraColumnHeader, getFlags, getFontColor, getHeightOfObject, getIcon, getNodeBackgroundColor, getNodeToCollapse, getNodeToExpand, getReusedIcon, getRootObject, getSelectedLines, getSelectedRanges, getTextRect, getToolTip, getToolTip, getTreeColumnHeader, getTreeModelHandler, getTreeNodeAt, indexOf, indexOf, init, insert, inserted, isSelected, made, modify, mouseOverChanged, objectAt, paintColumnHeader, paintColumnHeaders, paintEntireColumnHeaders, paintLine, paintLine, paintTableCell, paintTableCell, pressed, reExpandNode, reExpandSelectedNode, released, removeEntries, scrolled, scrollTo, select, select, select, selectAll, selectOnly, setRootObject, setSelectedLines, shrunk, toFlags, toReference, update, updateFlags
acceptColumnMoved, calculatePreferredColWidth, calculatePreferredRowHeight, calculatePreferredSize, calculateTextCharsInColumn, calculateTextLinesInRow, canSelect, checkControlFor, clearCellAdjustments, clearColumnWidthAdjustments, clearSelectionOnClick, closeActiveControl, columnMoved, deferPaintTableCell, doHotKey, editNow, editNow, endEditing, findCellsInArea, fixBorder, freezeUpdate, getCellAttributes, getCellControlFor, getCellData, getCellInsets, getCellPreferredSize, getCellRect, getCellText, getCellText, getColWidth, getColXPointInTable, getControlFor, getLock, getMaxColWidth, getMaxRowHeight, getMenuFor, getMenuOutsideCells, getMinColWidth, getMinRowHeight, getPreferredSize, getRowHeight, getRowYPointInTable, getTable, handleEvent, hasActiveControls, hasCellControlFor, inset, isActiveCellControl, makeActiveControlVisible, mouseMoving, notifyDataChange, onEvent, onKeyEvent, paintTableCellData, paintTableCellText, penClicked, penPressed, positionCellControl, remapColumns, resized, restoreColumnWidthAdjustments, saveColumnWidthAdjustments, select, setColAdjust, setColWidth, show, sizeColumnToFitData, startedEditing, updateControls
public File afile
public FileChooser chooser
public FileTree(String start, File afile, FileChooser chooser)
public boolean continueAfterError(File f, Throwable t, int errorType, boolean hasMore)
continueAfterError
in interface FileClipboard.FileClipboardSource
public File getFileAt(int selectedLine)
public void pressed(Point p)
pressed
in class TreeTableModel
public boolean popupMenuEvent(MenuEvent me)
popupMenuEvent
in class TableModel
public boolean fileClipboardOperation(FileClipboard clip, int op)
fileClipboardOperation
in interface FileClipboard.FileClipboardSource
protected void showingMenuFor(int row, int col)
showingMenuFor
in class TableModel
row
- the row of the cell the menu is for - this may be -2 if it
is not on a valid row.col
- the column of the cell the menu is for - this may be -2 if it
is not on a valid column.public int getDrawOptions(int line, TreeNode node)
getDrawOptions
in class TreeTableModel
public Menu getMenuFor(int line)
getMenuFor
in class TreeTableModel
public boolean isCut(TreeNode node)
isCut
in class TreeTableModel
protected void expanding(TreeNode node) throws SlowTaskException
expanding
in class TreeTableModel
SlowTaskException