public class baseTable
extends javax.swing.JComponent
implements java.awt.event.AdjustmentListener, java.awt.event.ActionListener, java.awt.event.MouseWheelListener
baseTable is an AWT table component, supporting a wide variety of table displays based on an underlying grid model. Columns and rows may be separated by lines or not, and baseTable supports a variety of vertical filling behaviors for those cases in which the baseTable doesn't contain enough rows for its size.
baseTable supports a hierarchy of attribute sets for its rendering. An attribute set comprises a font, justification, and foreground / background colors. Such an attribute set can be assigned to the headers of the table, to the body of the table as a whole, to the individual columns of the table, and to the individual cells themselves.
The baseTable supports intelligent scrollbars, dynamic column sizing, user adjustable columns, and popup menus.
baseTable is not yet a full featured table/grid component. baseTable currently doesn't support the selection of individual cells and/or columns, nor does it support cut and paste or in-cell editing. These are not currently priorities for baseTable, and the current code is not designed for such applications.
baseTable is intended to provide a flexible row-oriented report table in which the user can select a row for action by a program that incorporates a baseTable. The ability to select rows can be turned off, in which case baseTable becomes strictly a display component.
rowTable,
gridTable,
Serialized Formjavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
(package private) java.awt.Rectangle |
bounding_rect |
(package private) tableCanvas |
canvas |
(package private) java.util.Vector<java.lang.Integer> |
colPos |
(package private) java.util.Vector<tableCol> |
cols |
(package private) static boolean |
debug |
(package private) javax.swing.JScrollBar |
hbar |
(package private) boolean |
hbar_visible |
(package private) tableAttr |
headerAttrib |
(package private) javax.swing.JPopupMenu |
headerMenu |
(package private) java.awt.Color |
hHeadLineColor |
(package private) int |
hHeadLineThickness |
(package private) boolean |
horizLines |
(package private) java.awt.Color |
hRowLineColor |
(package private) int |
hRowLineThickness |
(package private) boolean |
hVertFill |
(package private) java.awt.Insets |
in |
(package private) javax.swing.JPopupMenu |
menu |
(package private) int |
menuCol |
(package private) int |
menuRow |
(package private) int |
origTotalWidth |
(package private) int |
row_baseline |
(package private) int |
row_height |
(package private) java.util.Vector<tableRow> |
rows |
(package private) int |
rowsToShow |
(package private) float |
scalefact |
(package private) int |
selectedRow |
(package private) tableAttr |
tableAttrib |
(package private) javax.swing.JScrollBar |
vbar |
(package private) boolean |
vbar_visible |
(package private) boolean |
vertFill |
(package private) boolean |
vertLines |
(package private) java.awt.Color |
vHeadLineColor |
(package private) int |
vLineThickness |
(package private) java.awt.Color |
vRowLineColor |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
baseTable(int[] colWidths,
java.lang.String[] headers,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
Constructor with default fonts, justification, and behavior
|
baseTable(tableAttr headerAttrib,
tableAttr tableAttrib,
tableAttr[] colAttribs,
int[] colWidths,
java.awt.Color vHeadLineColor,
java.awt.Color vRowLineColor,
java.awt.Color hHeadLineColor,
java.awt.Color hRowLineColor,
java.lang.String[] headers,
boolean horizLines,
boolean vertLines,
boolean vertFill,
boolean hVertFill,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
This is the base constructor for baseTable, which allows
all aspects of the baseTable's appearance and behavior
to be customized.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Override this method to implement the popup menu hook.
|
void |
addRow(boolean repaint)
Adds a new row to the bottom of the table
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Handles scrollbar events.
|
(package private) void |
adjustScrollbars()
Internal method
Check to see whether we need scrollbars in our current component size,
set the min/max/visible parameters
This method is intended to be called from reShape().
|
(package private) void |
calcCols()
Internal method
Calculate our columns.
|
(package private) void |
calcFonts()
Internal method
Calculate our fonts and measurements.
|
(package private) int |
calcVSize()
Internal method
calculate the total vertical size of the rows only
|
void |
clearCells()
Erases all the cells in the table and removes any per-cell
attribute sets.
|
void |
clickInCell(int x,
int y)
Old Hook for subclasses to implement selection logic
|
void |
clickInCell(int x,
int y,
boolean rightClick)
Hook for subclasses to implement selection logic
|
void |
deleteColumn(int index,
boolean reportion)
This method takes the given column out of the table entirely.
|
void |
deleteRow(int num,
boolean repaint)
Deletes a row from the table
|
(package private) int |
displayRegionFirstLine()
This method returns the first line of the display area,
below the headers.
|
void |
dispose() |
void |
doubleClickInCell(int x,
int y)
Hook for subclasses to implement selection logic
|
tableCell |
getCell(int x,
int y)
Access a cell from the table
|
tableAttr |
getCellAttr(tableCell cell)
Gets the tableAttr of a cell in the table.
|
java.lang.String |
getCellText(int x,
int y)
Gets the contents of a cell in the table.
|
java.lang.String |
getCellText(tableCell cell)
Gets the contents of a cell in the table.
|
int |
getColCount()
This method returns the number of columns in the table.
|
int |
getRowCount()
This method returns the number of rows in the table.
|
java.util.Vector<java.lang.String> |
getTableHeaders()
This method returns a Vector of Strings containing the
titles of columns currently in the table.
|
java.lang.String |
getWrappedCellText(int x,
int y)
Gets the contents of a cell in the table.
|
java.lang.String |
getWrappedCellText(tableCell cell)
Gets the contents of a cell in the table.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e) |
void |
optimizeCols()
This method will go through all of the columns and optimize
the pole placement to minimize wasted space and provide a decent
balance of row and column sizes.
|
(package private) void |
reCalcRowPos(int startRow)
This method is used to recalculate the vertical position of all
of the rows in the table below startRow.
|
void |
refreshTable()
Causes the table to be updated and redisplayed.
|
void |
reinitialize(int[] colWidths,
java.lang.String[] headers)
Reinitializes the table with a new set of columns / headers
|
void |
reinitialize(tableAttr[] colAttribs,
int[] colWidths,
java.lang.String[] headers)
Reinitializes the table with a new set of columns / headers
|
(package private) void |
reShape()
Internal method
This method recalculates the general parameters of our table's
display.
|
(package private) void |
scrollRowTo(int rowIndex,
int y)
This method is used to adjust the vertical scrollbar (if present)
such that row
|
void |
selectCell(int x,
int y)
Mark a cell as selected
|
void |
selectCol(int x)
Mark a column as selected
|
void |
selectRow(int y)
Mark a row as selected
|
void |
setBounds(int x,
int y,
int width,
int height)
This method is called when our size is changed.
|
void |
setCellAttr(tableCell cell,
tableAttr attr,
boolean repaint)
Sets the tableAttr of a cell in the table.
|
void |
setCellBackColor(tableCell cell,
java.awt.Color color,
boolean repaint)
Sets the background color of a cell
A color of (Color) null will cause baseTable to revert to using the
background selected for the column (if defined) or the background for
the table.
|
void |
setCellColor(tableCell cell,
java.awt.Color color,
boolean repaint)
Sets the foreground color of a cell
A color of (Color) null will cause baseTable to revert to using the
foreground selected for the column (if defined) or the foreground for
the table.
|
void |
setCellFont(tableCell cell,
java.awt.Font font,
boolean repaint)
Sets the font of a cell in the table.
|
void |
setCellJust(tableCell cell,
int just,
boolean repaint)
Sets the justification of a cell in the table.
|
void |
setCellText(tableCell cell,
java.lang.String cellText,
boolean repaint)
Sets the contents of a cell in the table.
|
void |
setColAttr(int x,
tableAttr attr,
boolean repaint)
Sets the tableAttr for a column
A attr of (tableAttr) null will cause baseTable to revert to using the
table defaults for this column.
|
void |
setColBackColor(int x,
java.awt.Color color,
boolean repaint)
Sets the background color of a column
A color of (Color) null will cause baseTable to revert to using the
background selected for the table.
|
void |
setColColor(int x,
java.awt.Color color,
boolean repaint)
Sets the foreground color of a column
A color of (Color) null will cause baseTable to revert to using the
foreground selected for the table.
|
void |
setColFont(int x,
java.awt.Font font,
boolean repaint)
Sets the font of a column
A font of (Font) null will cause baseTable to revert to using the
table's default font for this column.
|
void |
setColJust(int x,
int just,
boolean repaint)
Sets the justification of a column in the table.
|
void |
setHeadAttr(tableAttr attr,
boolean repaint)
Sets the tableAttr of headers in the table.
|
void |
setHeadBackColor(java.awt.Color color,
boolean repaint)
Sets the background color of headers in the table.
|
void |
setHeadColor(java.awt.Color color,
boolean repaint)
Sets the foreground color of headers in the table.
|
void |
setHeadFont(java.awt.Font font,
boolean repaint)
Sets the font for headers in the table.
|
void |
setRows(int numRows,
boolean repaint)
Changes the number of rows in the table
|
void |
setRowsVisible(int x)
This method sets the number of rows that the table will display.
|
void |
setTableAttr(tableAttr attr,
boolean repaint)
Sets the tableAttr for the table
|
void |
setTableBackColor(java.awt.Color color,
boolean repaint)
Sets the background color of the table
|
void |
setTableColor(java.awt.Color color,
boolean repaint)
Sets the foreground color of the table
|
void |
setTableFont(java.awt.Font font,
boolean repaint)
Sets the default font for the table
|
void |
setTableJust(int just,
boolean repaint)
Sets the default justification of cells in the table.
|
boolean |
testCellSelected(int x,
int y)
Returns true if cell (x,y) is currently selected
|
boolean |
testColSelected(int x)
Returns true if col x is currently selected
|
boolean |
testRowSelected(int y)
Returns true if row y is currently selected
|
void |
unSelectAll()
Unselect all cells
|
void |
unSelectCell(int x,
int y)
Mark a cell as unselected
|
void |
unSelectCol(int x)
Mark a column as unselected
|
void |
unSelectRow(int y)
Mark a row as unselected
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclestatic final boolean debug
tableCanvas canvas
javax.swing.JScrollBar hbar
javax.swing.JScrollBar vbar
int origTotalWidth
int row_height
int row_baseline
int vLineThickness
int hHeadLineThickness
int hRowLineThickness
int rowsToShow
float scalefact
java.awt.Rectangle bounding_rect
java.awt.Insets in
boolean hbar_visible
boolean vbar_visible
boolean horizLines
boolean vertLines
boolean vertFill
boolean hVertFill
java.util.Vector<java.lang.Integer> colPos
tableAttr headerAttrib
tableAttr tableAttrib
java.awt.Color vHeadLineColor
java.awt.Color vRowLineColor
java.awt.Color hHeadLineColor
java.awt.Color hRowLineColor
java.util.Vector<tableRow> rows
java.util.Vector<tableCol> cols
javax.swing.JPopupMenu headerMenu
javax.swing.JPopupMenu menu
int menuRow
int menuCol
int selectedRow
public baseTable(tableAttr headerAttrib, tableAttr tableAttrib, tableAttr[] colAttribs, int[] colWidths, java.awt.Color vHeadLineColor, java.awt.Color vRowLineColor, java.awt.Color hHeadLineColor, java.awt.Color hRowLineColor, java.lang.String[] headers, boolean horizLines, boolean vertLines, boolean vertFill, boolean hVertFill, javax.swing.JPopupMenu menu, javax.swing.JPopupMenu headerMenu)
headerAttrib - attribute set for the column headerstableAttrib - default attribute set for the body of the tablecolAttribs - per column attribute setscolWidths - array of initial column widthsvHeadLineColor - color of vertical lines in the column headers, if anyvRowLineColor - color of vertical lines in the table body, if anyhHeadLineColor - color of horizontal lines in the column headers, if anyhRowLineColor - color of horizontal lines in the table body, if anyheaders - array of column header titles, must be same size as colWidthshorizLines - true if horizontal lines should be shown between rows in report tablevertLines - true if vertical lines should be shown between columns in report tablevertFill - true if table should expand vertically to fill size of baseTablehVertFill - true if horizontal lines should be drawn in the vertical fill region
(only applies if vertFill and horizLines are true)public baseTable(int[] colWidths,
java.lang.String[] headers,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
colWidths - array of initial column widthsheaders - array of column header titles, must be same size as colWidthspublic final tableCell getCell(int x, int y)
x - column number in range [0..# of columns-1]y - row number in range [0..# of rows-1]public final void setCellText(tableCell cell, java.lang.String cellText, boolean repaint)
cell - the cell to changecellText - the text to place into cellrepaint - true if the table should be redrawn after changing cellpublic final java.lang.String getCellText(tableCell cell)
cell - the cell to read text frompublic final java.lang.String getWrappedCellText(tableCell cell)
cell - the cell to read text frompublic java.lang.String getCellText(int x,
int y)
x - column number in range [0..# of columns-1]y - row number in range [0..# of rows-1]public java.lang.String getWrappedCellText(int x,
int y)
x - column number in range [0..# of columns-1]y - row number in range [0..# of rows-1]public final void setCellAttr(tableCell cell, tableAttr attr, boolean repaint)
cell - the tableCell to assign toattr - the tableAttr to assign to cellrepaint - true if the table should be redrawn after changing cellpublic final tableAttr getCellAttr(tableCell cell)
cell - the cell to retrieve a tableAttr frompublic final void setCellFont(tableCell cell, java.awt.Font font, boolean repaint)
cell - the cell to changefont - the Font to assign to cell, may be null to use defaultrepaint - true if the table should be redrawn after changing cellpublic final void setCellJust(tableCell cell, int just, boolean repaint)
cell - the cell to changejust - the justification to assign to cellrepaint - true if the table should be redrawn after changing celltableAttrpublic final void setCellColor(tableCell cell, java.awt.Color color, boolean repaint)
cell - the cell to changecolor - the Color to assign to cellrepaint - true if the table should be redrawn after changing cellpublic final void setCellBackColor(tableCell cell, java.awt.Color color, boolean repaint)
cell - the cell to changecolor - the Color to assign to cellrepaint - true if the table should be redrawn after changing cellpublic final void setColAttr(int x,
tableAttr attr,
boolean repaint)
x - the column of the table to change color, in the range [0..# of columns-1]repaint - true if the table should be redrawn after changing column xpublic final void setColFont(int x,
java.awt.Font font,
boolean repaint)
x - the column of the table to change color, in the range [0..# of columns-1]font - the Font to assign to column xrepaint - true if the table should be redrawn after changing column xpublic final void setColJust(int x,
int just,
boolean repaint)
x - the column to change, in the range [0..# of columns - 1]just - the justification to assign to column xrepaint - true if the table should be redrawn after changing column xtableAttrpublic final void setColColor(int x,
java.awt.Color color,
boolean repaint)
x - the column of the table to change color, in the range [0..# of columns-1]color - the Color to assign to column xrepaint - true if the table should be redrawn after changing column xpublic final void setColBackColor(int x,
java.awt.Color color,
boolean repaint)
x - the column of the table to change color, in the range [0..# of columns-1]color - the Color to assign to column xrepaint - true if the table should be redrawn after changing column xpublic void setRowsVisible(int x)
public final void setTableAttr(tableAttr attr, boolean repaint)
attr - the tableAttr to assign to table, must be non-null,repaint - true if the table should be redrawn after changing attrpublic final void setTableFont(java.awt.Font font,
boolean repaint)
font - the Font to assign to table, must be non-nullrepaint - true if the table should be redrawn after changing fontpublic final void setTableJust(int just,
boolean repaint)
just - the justification to make default for cells in tablerepaint - true if the table should be redrawn after changing justificationtableAttrpublic final void setTableColor(java.awt.Color color,
boolean repaint)
color - the Color to assign to table foreground, must be non-nullrepaint - true if the table should be redrawn after changing colorpublic final void setTableBackColor(java.awt.Color color,
boolean repaint)
color - the Color to assign to table background, must be non-nullrepaint - true if the table should be redrawn after changing colorpublic final void setHeadAttr(tableAttr attr, boolean repaint)
attr - the tableAttr to assign to the headers - must be non-nullrepaint - true if the table should be redrawn after changing headerspublic final void setHeadColor(java.awt.Color color,
boolean repaint)
color - the Color to assign to the headers - must be non-nullrepaint - true if the table should be redrawn after changing headerspublic final void setHeadBackColor(java.awt.Color color,
boolean repaint)
color - the Color to assign to the headers - must be non-nullrepaint - true if the table should be redrawn after changing headerspublic final void setHeadFont(java.awt.Font font,
boolean repaint)
font - the Font to assign to the headers - must be non-nullrepaint - true if the table should be redrawn after changing headerspublic void deleteColumn(int index,
boolean reportion)
public void clickInCell(int x,
int y)
x - col of cell clicked iny - row of cell clicked inpublic void clickInCell(int x,
int y,
boolean rightClick)
x - col of cell clicked iny - row of cell clicked inrightClick - if true, the cell click was with the right buttonpublic void doubleClickInCell(int x,
int y)
x - col of cell double clicked iny - row of cell double clicked inpublic final void selectRow(int y)
y - row to selectpublic final void unSelectRow(int y)
y - row to unselectpublic final void selectCol(int x)
x - col to selectpublic final void unSelectCol(int x)
x - col to unselectpublic void unSelectAll()
public final void selectCell(int x,
int y)
x - col of cell to selecty - row of cell to selectpublic final void unSelectCell(int x,
int y)
x - col of cell to unselecty - row of cell to unselectpublic final boolean testRowSelected(int y)
y - row to testpublic final boolean testColSelected(int x)
x - col to testpublic final boolean testCellSelected(int x,
int y)
x - col of cell to testy - row of cell to testpublic void setRows(int numRows,
boolean repaint)
numRows - how many rows should be in the tablerepaint - true if the table should be redrawn after changing sizepublic void addRow(boolean repaint)
repaint - true if the table should be redrawn after changing sizepublic void optimizeCols()
final int displayRegionFirstLine()
void reCalcRowPos(int startRow)
public void deleteRow(int num,
boolean repaint)
num - The index of the row to be deletedrepaint - true if the table should be redrawn after the row is deletedpublic void refreshTable()
public void clearCells()
public void reinitialize(int[] colWidths,
java.lang.String[] headers)
public void reinitialize(tableAttr[] colAttribs, int[] colWidths, java.lang.String[] headers)
public java.util.Vector<java.lang.String> getTableHeaders()
public int getRowCount()
public int getColCount()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic void setBounds(int x,
int y,
int width,
int height)
setBounds in class java.awt.Componentvoid reShape()
void adjustScrollbars()
int calcVSize()
void calcCols()
void calcFonts()
void scrollRowTo(int rowIndex,
int y)
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenerpublic void dispose()