ewe.filechooser
Class FileTree

java.lang.Object
  extended byewe.ui.TableModel
      extended byewe.ui.TreeTableModel
          extended byewe.filechooser.FileTree
All Implemented Interfaces:
CellConstants, ControlConstants, EventListener, FileClipboard.FileClipboardSource, UIConstants

public class FileTree
extends TreeTableModel
implements FileClipboard.FileClipboardSource


Nested Class Summary
 
Nested classes inherited from class ewe.ui.TableModel
TableModel.CellControl, TableModel.ControlProxy
 
Field Summary
 File afile
           
 FileChooser chooser
           
 
Fields inherited from class ewe.ui.TreeTableModel
CanExpand, closedFolder, cutNodes, DepthMask, dynamicCanExpand, expandingIcon, expandingNodes, expansionLevel, FlagMask, HasChildren, hasControls, HasMoreSiblings, hideRoot, IsExpanded, IsNode, matrix, noLines, openFolder, page, PatternMask, ranges, rootObject, selectedColor, selectedLine, selectedLines, selectExpanded, showWaitCursor
 
Fields inherited from class ewe.ui.TableModel
activeCellControl, allColumnsSameSize, allRowsSameSize, canHScroll, canVScroll, cellInsets, charHeight, charWidth, clipData, controlProxy, cursorSize, fillToEqualHeights, fillToEqualWidths, gap, hasColumnHeaders, hasPreferredSize, hasRowHeaders, hasSpanningColumns, hasSpanningRows, horizontalScrollUnit, insets, numCols, numRows, preferredCols, preferredRows, rect, selectRowWhenEditing, shadeAlternateRows, table, tca, verticalScrollUnit
 
Fields inherited from interface ewe.filechooser.FileClipboard.FileClipboardSource
FILES_REJECTED, FILES_TAKEN
 
Fields inherited from interface ewe.ui.UIConstants
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, 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
 
Fields inherited from interface ewe.ui.CellConstants
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
 
Fields inherited from interface ewe.ui.ControlConstants
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
 
Constructor Summary
FileTree(String start, File afile)
           
FileTree(String start, File afile, FileChooser chooser)
           
 
Method Summary
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)
           
 
Methods inherited from class ewe.ui.TreeTableModel
addressOf, addressOf, calculateColWidth, calculateRowHeight, canDoCollapse, canDoExpand, canScreenScroll, clicked, collapse, collapseMatrix, collapsing, columnOf, countChildren, countSelectedLines, countTotalChildNodes, delete, deleted, doCollapse, doExpand, doExpand, doubleClicked, drawNodeData, drawNodeLine, expand, expandMatrix, expandTo, expandTo, expandToLevel, findChild, findNextSibling, findParent, findParentOrPreviousSibling, findPreviousSibling, fireSelection, flagsAt, fullExpandCollapse, getDataObjectAt, getDataToDragAndDrop, getDataToTransfer, getDataWidth, getDisplayStatus, getDisplayString, getFlags, getHeightOfObject, getIcon, getNodeToCollapse, getNodeToExpand, getRootObject, getSelectedLines, getSelectedRanges, getTextRect, getTreeNodeAt, indexOf, indexOf, init, insert, inserted, isSelected, made, modify, objectAt, paintLine, paintLine, paintTableCell, paintTableCell, reExpandNode, reExpandSelectedNode, released, removeEntries, scrollTo, select, select, selectAll, selectOnly, setRootObject, setSelectedLines, shrunk, toFlags, toReference, update, updateFlags
 
Methods inherited from class ewe.ui.TableModel
calculateTextCharsInColumn, calculateTextLinesInRow, canSelect, checkControlFor, clearCellAdjustments, closeActiveControl, deferPaintTableCell, doHotKey, findCellsInArea, fixBorder, getCellAttributes, getCellControlFor, getCellData, getCellInsets, getCellPreferredSize, getCellRect, getCellText, getColWidth, getControlFor, getLinesFor, getMaxColWidth, getMaxRowHeight, getMenuFor, getMenuOutsideCells, getMinColWidth, getMinRowHeight, getPreferredSize, getRowHeight, getToolTip, hasActiveControls, inset, isActiveCellControl, notifyDataChange, onEvent, onKeyEvent, paintTableCellData, paintTableCellText, penPressed, remapColumns, resized, select, show, startedEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

afile

public File afile

chooser

public FileChooser chooser
Constructor Detail

FileTree

public FileTree(String start,
                File afile,
                FileChooser chooser)

FileTree

public FileTree(String start,
                File afile)
Method Detail

getFileAt

public File getFileAt(int selectedLine)

pressed

public void pressed(Point p)
Overrides:
pressed in class TreeTableModel

popupMenuEvent

public boolean popupMenuEvent(MenuEvent me)
Overrides:
popupMenuEvent in class TableModel

fileClipboardOperation

public boolean fileClipboardOperation(FileClipboard clip,
                                      int op)
Specified by:
fileClipboardOperation in interface FileClipboard.FileClipboardSource

getDrawOptions

public int getDrawOptions(int line,
                          TreeNode node)
Overrides:
getDrawOptions in class TreeTableModel

getMenuFor

public Menu getMenuFor(int line)
Overrides:
getMenuFor in class TreeTableModel

isCut

public boolean isCut(TreeNode node)
Overrides:
isCut in class TreeTableModel

expanding

protected void expanding(TreeNode node)
                  throws SlowTaskException
Overrides:
expanding in class TreeTableModel
Throws:
SlowTaskException