public class FileListTableModel extends TableModel implements FileClipboard.FileClipboardSource
TableModel.CellControl, TableModel.ControlProxy| Modifier and Type | Field and Description |
|---|---|
File |
fileCheck |
Time |
fileTime |
boolean |
fileTips |
IImage |
folder |
PropertyList |
formatProperties |
static int |
HMode |
boolean |
showDetails |
boolean |
verticalOnly |
static int |
VMode |
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, verticalScrollUnitERROR_COULD_NOT_CREATE_DESTINATION, ERROR_COULD_NOT_READ_SOURCE, ERROR_COULD_NOT_REMOVE_SOURCE, FILES_REJECTED, FILES_TAKENBDR_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_SUNKENALWAYS_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, WESTAll, 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 |
|---|
FileListTableModel(FileChooser chooser) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateColWidth(int col)
This returns the full width of the column.
|
int |
calculateRowHeight(int row)
This returns the full height of the row.
|
boolean |
canSelect(int row,
int col)
This should return whether or not a particular cell may be selected.
|
Point |
cellOf(int index) |
boolean |
continueAfterError(File f,
Throwable t,
int errorType,
boolean hasMore) |
int |
fileAt(int row,
int col) |
boolean |
fileClipboardOperation(FileClipboard clip,
int op) |
TableCellAttributes |
getCellAttributes(int row,
int col,
boolean isSelected,
TableCellAttributes ta)
Get the attributes for a cell.
|
Insets |
getCellInsets(int row,
int col,
Insets insets)
Get the insets of the data in the specified cell.
|
int |
getFileIndex(int row,
int col) |
int |
getIconWidth() |
Menu |
getMenuFor(int row,
int col) |
Menu |
getMenuOutsideCells(Point p) |
String[] |
getSelectedFiles() |
Rect |
getTextRect(int fileIndex,
Rect dest) |
Object |
getToolTip(int x,
int y)
Return a Tool Tip for the x,y position (in pixels) on the table.
|
int |
indexOf(String file) |
void |
made() |
void |
resized(int width,
int height)
This is called after the TableControl has been resized.
|
void |
select(int row,
int col,
boolean selectOn)
This is called by the table to tell the model that it wants to select
a particular cell.
|
void |
selectAndDisplay(int index) |
File |
selectFileAt(int index) |
void |
setFiles(File parent,
String[] files) |
void |
setFilesToCopy(boolean isCut) |
void |
setShowDetails(boolean show) |
void |
updateDisplay() |
acceptColumnMoved, calculatePreferredColWidth, calculatePreferredRowHeight, calculatePreferredSize, calculateSizes, calculateTextCharsInColumn, calculateTextLinesInRow, canScreenScroll, checkControlFor, clearCellAdjustments, clearColumnWidthAdjustments, clearSelectionOnClick, closeActiveControl, columnMoved, deferPaintTableCell, doHotKey, editNow, editNow, endEditing, findCellsInArea, fixBorder, freezeUpdate, getCellControlFor, getCellData, getCellPreferredSize, getCellRect, getCellText, getCellText, getColWidth, getColXPointInTable, getControlFor, getLock, getMaxColWidth, getMaxRowHeight, getMinColWidth, getMinRowHeight, getPreferredSize, getRowHeight, getRowYPointInTable, getTable, handleEvent, hasActiveControls, hasCellControlFor, inset, isActiveCellControl, makeActiveControlVisible, mouseMoving, mouseOverChanged, notifyDataChange, onEvent, onKeyEvent, paintTableCell, paintTableCell, paintTableCellData, paintTableCellText, penClicked, penPressed, popupMenuEvent, positionCellControl, remapColumns, restoreColumnWidthAdjustments, saveColumnWidthAdjustments, scrolled, scrollTo, setColAdjust, setColWidth, show, showingMenuFor, sizeColumnToFitData, startedEditing, updateControlspublic IImage folder
public File fileCheck
public Time fileTime
public boolean showDetails
public boolean verticalOnly
public boolean fileTips
public static final int HMode
public static final int VMode
public PropertyList formatProperties
public FileListTableModel(FileChooser chooser)
public void setShowDetails(boolean show)
public void select(int row,
int col,
boolean selectOn)
select in class TableModelpublic boolean canSelect(int row,
int col)
TableModelcanSelect in class TableModelpublic void made()
made in class TableModelpublic void resized(int width,
int height)
TableModelresized in class TableModelpublic void updateDisplay()
public int calculateColWidth(int col)
TableModelcalculateColWidth in class TableModelpublic int calculateRowHeight(int row)
TableModelcalculateRowHeight in class TableModelpublic int getFileIndex(int row,
int col)
public String[] getSelectedFiles()
public boolean fileClipboardOperation(FileClipboard clip, int op)
fileClipboardOperation in interface FileClipboard.FileClipboardSourcepublic void setFilesToCopy(boolean isCut)
public Insets getCellInsets(int row, int col, Insets insets)
TableModelgetCellInsets in class TableModelpublic TableCellAttributes getCellAttributes(int row, int col, boolean isSelected, TableCellAttributes ta)
TableModelgetCellAttributes in class TableModelpublic int fileAt(int row,
int col)
public Object getToolTip(int x, int y)
TableModel
Point cell = table.cellAtPoint(x,y,null);
if (cell == null) return null; //Not on a cell.
// Now cell.x will have the column and cell.y will have the row
// of the cell the mouse is over and you can then display a tool tip for that cell.
getToolTip in class TableModelx - The x co-ordinate in pixels of the mouse.y - The y co-ordinate in pixels of the mouse.public File selectFileAt(int index)
public void selectAndDisplay(int index)
public int indexOf(String file)
public int getIconWidth()
public Point cellOf(int index)
public Menu getMenuOutsideCells(Point p)
getMenuOutsideCells in class TableModelpublic Menu getMenuFor(int row, int col)
getMenuFor in class TableModelpublic boolean continueAfterError(File f, Throwable t, int errorType, boolean hasMore)
continueAfterError in interface FileClipboard.FileClipboardSource