public class DatabaseTableModel extends FieldTableModel
TableModel.CellControl, TableModel.ControlProxy| Modifier and Type | Field and Description |
|---|---|
Database |
database |
FoundEntries |
entries |
Record |
record |
boolean |
useDataObjects |
EntriesView |
view |
allColumns, cacheSize, charWidth, displayFields, displayLocale, dontCacheObjects, dontSplitHeaders, getLock, headerRowHeight, objectClass, objectData, objects, readOnly, rowHeight, rowLinesactiveCellControl, allColumnsSameSize, allRowsSameSize, canHScroll, canMoveColumnHeaders, canVScroll, cellInsets, charHeight, clipData, colAdjustments, controlProxy, cursorSize, fillToEqualHeights, fillToEqualWidths, gap, hasColumnHeaders, hasPreferredSize, hasRowHeaders, hasSpanningColumns, hasSpanningRows, horizontalScrollUnit, keepSIP, mouseIsOverCell, numCols, numRows, preferredCols, preferredRows, selectRowWhenEditing, shadeAlternateRows, shadeColor, table, verticalScrollUnitBDR_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 |
|---|
DatabaseTableModel(Database table) |
DatabaseTableModel(Database table,
boolean useFields) |
DatabaseTableModel(Database table,
int[] fields,
boolean addNormalFieldsAfter) |
DatabaseTableModel(Database table,
String fields) |
DatabaseTableModel(EntriesView view) |
DatabaseTableModel(FoundEntries fe) |
| Modifier and Type | Method and Description |
|---|---|
int |
addNew() |
int |
addObject(Object obj) |
protected int |
calculateNumRows()
This calculates the number of rows in the table.
|
void |
checkUpdate() |
protected void |
dataChanged(FieldTransfer ft,
Point cell) |
protected void |
dataChanged(Object obj,
int row,
String fieldName) |
void |
entriesChanged()
Call this to notify the table that the entries to be displayed have been changed in some way.
|
void |
freezeUpdates(boolean freezeOrUnfreeze)
Freezes updates - usually while database manipulation is being done.
|
protected Object |
loadObjectAtRow(int row)
Override this to use a different method of retrieving the object at a particular row.
|
void |
onEvent(Event ev) |
DatabaseTableModel |
setEntries(FoundEntries entries)
Call this to set the entries to be displayed in this table.
|
DatabaseTableModel |
setView(EntriesView view) |
cacheObject, calculateColWidth, calculateRowHeight, calculateTextCharsInColumn, countEntries, doColumnSelection, doHotKey, entriesChanged, getAllFieldData, getAllFields, getCachedObject, getCellAttributes, getCellControlFor, getCellText, getColumnSelector, getColumnSelectorButton, getExportTask, getField, getFieldData, getFieldData, getFieldValue, getMaxColWidth, getMinColWidth, getNew, getObjectAtRow, getSelectedEntry, getTableExportButton, getTableExporter, getTableForm, getTableForm, getTableForm, invalidateCache, invalidateCachedObject, invalidateCachedObject, made, madeCellControlFor, main, modifyFields, recalculateHeaderRow, rowChanged, selectEntry, setFields, setFields, setFields, setFields, setFields, setFields, setFields, setFields, setObjects, toListSelectacceptColumnMoved, calculatePreferredColWidth, calculatePreferredRowHeight, calculatePreferredSize, calculateSizes, calculateTextLinesInRow, canScreenScroll, canSelect, checkControlFor, clearCellAdjustments, clearColumnWidthAdjustments, clearSelectionOnClick, closeActiveControl, columnMoved, deferPaintTableCell, editNow, editNow, endEditing, findCellsInArea, fixBorder, freezeUpdate, getCellData, getCellInsets, getCellPreferredSize, getCellRect, getCellText, getColWidth, getColXPointInTable, getControlFor, getLock, getMaxRowHeight, getMenuFor, getMenuOutsideCells, getMinRowHeight, getPreferredSize, getRowHeight, getRowYPointInTable, getTable, getToolTip, handleEvent, hasActiveControls, hasCellControlFor, inset, isActiveCellControl, makeActiveControlVisible, mouseMoving, mouseOverChanged, notifyDataChange, onKeyEvent, paintTableCell, paintTableCell, paintTableCellData, paintTableCellText, penClicked, penPressed, popupMenuEvent, positionCellControl, remapColumns, resized, restoreColumnWidthAdjustments, saveColumnWidthAdjustments, scrolled, scrollTo, select, setColAdjust, setColWidth, show, showingMenuFor, sizeColumnToFitData, startedEditing, updateControlspublic Database database
public FoundEntries entries
public EntriesView view
public Record record
public boolean useDataObjects
public DatabaseTableModel(Database table)
public DatabaseTableModel(Database table, int[] fields, boolean addNormalFieldsAfter)
public DatabaseTableModel(Database table, boolean useFields)
public DatabaseTableModel(FoundEntries fe)
public DatabaseTableModel(EntriesView view)
public void entriesChanged()
FieldTableModelentriesChanged in class FieldTableModelpublic void checkUpdate()
public DatabaseTableModel setEntries(FoundEntries entries)
entries - The entries to display in this table.public DatabaseTableModel setView(EntriesView view)
protected int calculateNumRows()
calculateNumRows in class FieldTableModelprotected Object loadObjectAtRow(int row) throws Exception
loadObjectAtRow in class FieldTableModelExceptionprotected void dataChanged(FieldTransfer ft, Point cell)
dataChanged in class FieldTableModelprotected void dataChanged(Object obj, int row, String fieldName)
dataChanged in class FieldTableModelpublic int addNew()
throws IOException
IOExceptionpublic int addObject(Object obj) throws IOException
IOExceptionpublic void freezeUpdates(boolean freezeOrUnfreeze)
freezeOrUnfreeze - true to freeze updates, false to unfreeze it.public void onEvent(Event ev)
onEvent in class FieldTableModel