|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.TableModel
ewe.filechooser.FileListTableModel
| Nested Class Summary |
| Nested classes inherited from class ewe.ui.TableModel |
TableModel.CellControl, TableModel.ControlProxy |
| Field Summary | |
File |
fileCheck
|
Time |
fileTime
|
boolean |
fileTips
|
IImage |
folder
|
PropertyList |
formatProperties
|
static int |
HMode
|
boolean |
showDetails
|
boolean |
verticalOnly
|
static int |
VMode
|
| 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 | |
FileListTableModel(FileChooser chooser)
|
|
| Method Summary | |
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)
|
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)
|
Menu |
getMenuFor(int row,
int col)
|
Menu |
getMenuOutsideCells(Point p)
|
String[] |
getSelectedFiles()
|
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()
This is called after the TableControl has been 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 |
setFiles(File parent,
String[] files)
|
void |
setFilesToCopy(boolean isCut)
|
void |
setShowDetails(boolean show)
|
void |
updateDisplay()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public 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
| Constructor Detail |
public FileListTableModel(FileChooser chooser)
| Method Detail |
public void setShowDetails(boolean show)
public void select(int row,
int col,
boolean selectOn)
select in class TableModel
public boolean canSelect(int row,
int col)
TableModel
canSelect in class TableModel
public void setFiles(File parent,
String[] files)
public void made()
TableModel
made in class TableModel
public void resized(int width,
int height)
TableModel
resized in class TableModelpublic void updateDisplay()
public int calculateColWidth(int col)
TableModel
calculateColWidth in class TableModelpublic int calculateRowHeight(int row)
TableModel
calculateRowHeight in class TableModel
public 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)
TableModel
getCellInsets in class TableModel
public TableCellAttributes getCellAttributes(int row,
int col,
boolean isSelected,
TableCellAttributes ta)
TableModel
getCellAttributes in class TableModel
public 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 int indexOf(String file)
public Point cellOf(int index)
public Menu getMenuOutsideCells(Point p)
getMenuOutsideCells in class TableModel
public Menu getMenuFor(int row,
int col)
getMenuFor in class TableModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||