|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--arlut.csd.JTable.baseTable
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 Form| Field Summary | |
(package private) java.awt.Rectangle |
bounding_rect
|
(package private) arlut.csd.JTable.tableCanvas |
canvas
|
(package private) java.util.Vector |
colPos
|
(package private) java.util.Vector |
cols
|
(package private) static boolean |
debug
|
(package private) javax.swing.JScrollBar |
hbar
|
(package private) boolean |
hbar_visible
|
(package private) arlut.csd.JTable.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 |
rows
|
(package private) int |
rowsToShow
|
(package private) float |
scalefact
|
(package private) int |
selectedRow
|
(package private) arlut.csd.JTable.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
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
baseTable(int[] colWidths,
java.lang.String[] headers,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
Constructor with default fonts, justification, and behavior |
|
baseTable(arlut.csd.JTable.tableAttr headerAttrib,
arlut.csd.JTable.tableAttr tableAttrib,
arlut.csd.JTable.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. |
|
| Method Summary | |
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 |
doubleClickInCell(int x,
int y)
Hook for subclasses to implement selection logic |
arlut.csd.JTable.tableCell |
getCell(int x,
int y)
Access a cell from the table |
arlut.csd.JTable.tableAttr |
getCellAttr(arlut.csd.JTable.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(arlut.csd.JTable.tableCell cell)
Gets the contents of a cell in the table. |
int |
getRowCount()
This method returns the number of rows in the table. |
java.util.Vector |
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(arlut.csd.JTable.tableCell cell)
Gets the contents of a cell in the table. |
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(arlut.csd.JTable.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(arlut.csd.JTable.tableCell cell,
arlut.csd.JTable.tableAttr attr,
boolean repaint)
Sets the tableAttr of a cell in the table. |
void |
setCellBackColor(arlut.csd.JTable.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(arlut.csd.JTable.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(arlut.csd.JTable.tableCell cell,
java.awt.Font font,
boolean repaint)
Sets the font of a cell in the table. |
void |
setCellJust(arlut.csd.JTable.tableCell cell,
int just,
boolean repaint)
Sets the justification of a cell in the table. |
void |
setCellText(arlut.csd.JTable.tableCell cell,
java.lang.String cellText,
boolean repaint)
Sets the contents of a cell in the table. |
void |
setColAttr(int x,
arlut.csd.JTable.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(arlut.csd.JTable.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(arlut.csd.JTable.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 |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final boolean debug
arlut.csd.JTable.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 colPos
arlut.csd.JTable.tableAttr headerAttrib
arlut.csd.JTable.tableAttr tableAttrib
java.awt.Color vHeadLineColor
java.awt.Color vRowLineColor
java.awt.Color hHeadLineColor
java.awt.Color hRowLineColor
java.util.Vector rows
java.util.Vector cols
javax.swing.JPopupMenu headerMenu
javax.swing.JPopupMenu menu
int menuRow
int menuCol
int selectedRow
| Constructor Detail |
public baseTable(arlut.csd.JTable.tableAttr headerAttrib,
arlut.csd.JTable.tableAttr tableAttrib,
arlut.csd.JTable.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 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 colWidths| Method Detail |
public final arlut.csd.JTable.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(arlut.csd.JTable.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(arlut.csd.JTable.tableCell cell)
cell - the cell to read text frompublic final java.lang.String getWrappedCellText(arlut.csd.JTable.tableCell cell)
cell - the cell to read text from
public 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(arlut.csd.JTable.tableCell cell,
arlut.csd.JTable.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 arlut.csd.JTable.tableAttr getCellAttr(arlut.csd.JTable.tableCell cell)
cell - the cell to retrieve a tableAttr from
public final void setCellFont(arlut.csd.JTable.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 cell
public final void setCellJust(arlut.csd.JTable.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 celltableAttr
public final void setCellColor(arlut.csd.JTable.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 cell
public final void setCellBackColor(arlut.csd.JTable.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 cell
public final void setColAttr(int x,
arlut.csd.JTable.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 x
public 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 x
public 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 xtableAttr
public 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 x
public 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(arlut.csd.JTable.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 attr
public 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 font
public 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 justificationtableAttr
public 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 color
public 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 color
public final void setHeadAttr(arlut.csd.JTable.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 headers
public 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 headers
public 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 headers
public 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 headers
public void deleteColumn(int index,
boolean reportion)
public void clickInCell(int x,
int y)
x - col of cell clicked iny - row of cell clicked in
public 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 button
public 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 select
public 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 test
public final boolean testCellSelected(int x,
int y)
x - col of cell to testy - row of cell to test
public 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(arlut.csd.JTable.tableAttr[] colAttribs,
int[] colWidths,
java.lang.String[] headers)
public java.util.Vector getTableHeaders()
public int getRowCount()
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.AdjustmentListener
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||