|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
com.objectplanet.gui.Table
This class implements a table component where objects are organized into
rows and columns.
The columns can be sized by the user using the mouse. Any column
can be sorted either in ascending or descending order by
clicking on the column header field.
The table also has a filter bar at the bottom which can be used for
searching for rows and filtering columns.
See TableEvent
for a list of events generated by the table.
See here for the parameter refence
and user guide.
| Nested Class Summary | |
class |
Table.TableThread
This thread handles internal table stuff. |
| Nested classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
ALIGN_CENTER
Used to specify a center justified column. |
static int |
ALIGN_LEFT
Used to specify a left justified column. |
static int |
ALIGN_RIGHT
Used to specify a right justified column. |
static int |
BOTTOM
Used to display the filter bar at the bottom of the table. |
static int |
COLUMN_CURRENCY
Used to specify a currency based column (2). |
static int |
COLUMN_DATE
Used to specify a date based column (3). |
static int |
COLUMN_IP
Used to specify a ip address based columns (4). |
static int |
COLUMN_NUMBER
Used to specify a number based column (1). |
static int |
COLUMN_TEXT
Used to specify a text based column (0). |
protected java.lang.String |
dataURL
The URL the data is loaded from. |
protected int[] |
displayList
This array contains the indexes of the rows currently being displayed. |
protected int |
displayListCount
The number of rows in the display list. |
protected static int |
EQUAL
Return equal type from compareRows() |
protected Filter[] |
filter
The current filter setup. |
protected java.awt.Rectangle |
filterViewPort
The bounds of the filter bar. |
protected java.awt.Rectangle |
headerViewPort
The bounds of the header. |
protected java.awt.Rectangle |
hScrollbarViewPort
The bounds of the horizontal scrollbar. |
protected static int |
LARGER
Return larger type from compareRows() |
protected static int |
LESS
Return less type from compareRows() |
protected boolean |
loadingData
This flag is set to true when data is being loaded at initial startup. |
protected int |
loadingDataDots
The number of dots after the loading message. |
protected java.awt.Rectangle |
mouseOverCellViewPort
The bounds of the cell the mouse is currently over. |
protected double[][] |
numericalData
This double array contains all data that is numeric in the table. |
protected java.awt.Rectangle |
rowViewPort
The bounds of the view where the rows are displayed. |
static int |
SELECT_MULTIPLE
Used to set the selection mode to multiple selection. |
static int |
SELECT_NONE
Used to set the selection mode to no selection. |
static int |
SELECT_SINGLE
Used to set the selection mode to single selection. |
static int |
SORT_ASCENDING
Used to sort a column in ascending order. |
static int |
SORT_DESCENDING
Used to sort a column in descending order. |
protected static int |
SORT_LEXICAL
Sorts a column's data in lexical order. |
protected static int |
SORT_NUMERICAL
Sorts a column's data in numerical order. |
static int |
SORT_UNSORTED
Used to specify a column is not sorted. |
protected int[] |
sortedList
This contains all the indexes of the tableData in sorted order. |
protected TableData |
tableData
This object contains the rows of the table. |
static int |
TOP
Used to display the filter bar at the top of the table. |
protected static int |
TOTAL_COUNT
Used to specify the total row be the count of the rows displayed. |
protected static int |
TOTAL_SUM
Used to specify the total row be the sum of the values in the column. |
protected java.awt.Rectangle |
totalRowViewPort
The bounds of the total row. |
protected java.awt.Rectangle |
vScrollbarViewPort
The bounds of the vertical scroll bar. |
| 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 | |
Table()
Creates a table with one column. |
|
Table(int columns)
Creates a new table with the specified number of columns. |
|
Table(TableData tableData)
Creates a new table using the existing table data. |
|
| Method Summary | |
void |
addTableListener(TableListener listener)
Adds a table listener to receive table events when the state of the table changes. |
protected void |
autoRepaint()
Calls repaint() if the automaticRepaintOn is turned on. |
protected void |
calculateCellInfo(int xpos,
int ypos,
int[] index)
Calculates the row index, column index, and row position of the cell at the specified position. |
protected void |
calculateColumnViewPort(int columnIndex,
java.awt.Rectangle viewport)
Calculates the viewport for a column. |
protected void |
calculateFilterViewPort(java.awt.Rectangle viewport)
Calculates the filter bar viewport. |
protected void |
calculateHeaderViewPort(java.awt.Rectangle viewport)
Calculates the header viewport. |
protected void |
calculateHorizontalScrollbarViewPort(java.awt.Rectangle viewport)
Calculates the horizontal scrollbar viewport and state. |
protected void |
calculateLabelBounds(java.lang.String label,
java.awt.Rectangle cellViewport,
java.awt.Rectangle labelBounds,
int imageWidth,
int rowIndex,
int columnIndex,
java.awt.FontMetrics fm)
Calculates the bounds of a label. |
protected java.awt.Dimension |
calculateMultiLineLabelSize(java.lang.String label,
java.awt.FontMetrics fm)
Gets the height of a multiline label. |
protected void |
calculateRowViewPort(java.awt.Rectangle viewport)
Gets the table row viewport. |
protected void |
calculateTotalRowViewPort(java.awt.Rectangle viewport)
Calculates the total row viewport. |
protected void |
calculateVerticalScrollbarViewPort(java.awt.Rectangle viewport)
Calculates the vertical scrollbar viewport and state. |
protected void |
calculateViewPorts()
Calculates the headerViewPort, filterViewPort, totalRowViewPort, verticalScrollbarViewPort, horizontalScrollbarViewPort, and rowViewPort. |
void |
callJavaScript(java.lang.String javascript)
Calls a javascript function in the applet page. |
protected int |
compareRows(int row_1,
int row_2,
int column,
int order)
This is called by sortRow() and compares two a cell in two rows. |
boolean |
containsRow(int row)
Checks if the table contains the specified row. |
java.lang.String |
createArrayString(int[] array)
Creates a separated string from the array. |
protected static java.awt.Color |
createColor(java.lang.String color)
Creates a color based on the string. |
protected java.util.Date |
createDate(java.lang.String dateString,
int column)
Creates a date object from the specified date string and the date pattern. |
protected static java.awt.Font |
createFont(java.lang.String value,
java.lang.String name,
int type,
int size)
Creates a font based on the information in the specified string. |
protected static java.lang.Long[] |
createLongValues(java.lang.String string)
Convers a string parameter to an array of integer values. |
protected static java.lang.String[] |
createStringArray(java.lang.String string,
java.lang.String delimiter)
Converts a delimited string into an array of strings. |
protected java.net.URL |
createURL(java.lang.String urlString)
Creates a URL from the specified string. |
void |
destroy()
Called when the applet is stopped and destroyed. |
java.awt.Frame |
exportData(int width,
int height,
char separator)
Opens a frame with a text area containing the visible data in CSV format (or any other separator you choose). |
java.awt.Frame |
exportData(int width,
int height,
char separator,
boolean header)
Opens a frame with a text area containing the visible data in CSV format (or any other separator you choose). |
java.awt.Color |
getAlternateRowBackground()
Gets the alternate background color. |
java.applet.AppletContext |
getAppletContext()
Gets the applet context. |
java.lang.Object |
getCell(int row,
int col)
Gets a cell object. |
java.lang.String |
getCellLabel(int row,
int column)
Gets the label of the cell as it appears in the table including formatting and pre-and postfix labels. |
protected java.lang.String |
getCellLabel(int row,
int column,
boolean collapsed)
Gets the label as it will appear if collapsed. |
double |
getCellNumber(int row,
int column)
Gets the number for a column that has specified it's data type as DATA_NUMBER. |
java.lang.Object[] |
getColumn(int column,
int start,
int count)
Gets the row data for the specified column. |
int |
getColumnAlignment(int column)
Gets the column alignment for the specified column. |
int |
getColumnCount()
Returns the number of columns in the table data. |
double |
getColumnTotal(int column)
Gets the total of all filtered rows for the specified column. |
protected java.lang.String |
getColumnTotalLabel(int column)
Gets the total row label. |
int |
getColumnType(int column)
Returns the type for the specified column |
double[] |
getColumnValues(int column,
int start,
int count)
Gets the values of the displayed rows for the specified column. |
int |
getColumnWidth(int column)
Gets the width of the specified column |
java.text.DateFormat |
getDateFormatter(int column)
Gets the date formatter used for the specified column. |
int |
getDecimalCount(int column)
Gets the decimal count for the specified column. |
int |
getDefaultSortOrder(int column)
Gets the default sorting order for the specified column. |
int[] |
getDisplayedRows()
Gets the index of the displayed (filtered) rows in the current sort order. |
java.net.URL |
getDocumentBase()
Gets the document base. |
java.lang.String |
getExportData(char separator)
Gets the rows and columns currently displayed in the tables scrollable view area. |
java.lang.String |
getExportData(char separator,
boolean header)
Gets the rows and columns currently displayed in the tables scrollable view area. |
java.awt.Image |
getExportFrameIcon()
Gets the export frame icon. |
java.lang.String |
getFilter(int column)
Gets the current filter for a column. |
java.awt.Color |
getFilterBarBackground()
Gets the filter bar background color used when the filter field is inactive. |
java.awt.Color |
getFilterBarOnBackground()
Gets the filter bar background color used when the filter field is active. |
int |
getFilterBarPosition()
Gets the current position of the filter bar. |
int |
getFilteredRowCount()
Returns the number of rows currently displayed (filtered) in the table. |
java.lang.String |
getFilterWildCard()
Gets the current wildcard. |
int |
getFirstRowPosition()
Returns the position index of the first row displayed. |
java.awt.Font |
getFont(java.lang.String name)
Gets the font used for the specified table component. |
java.awt.Color |
getFontColor(java.lang.String name)
Gets the font color used for the specified table component. |
protected java.lang.String |
getFormattedNumber(double number,
int decimals,
int type)
Returns a formatted number. |
java.awt.Color |
getGridColor()
Gets the row grid color. |
java.lang.String[] |
getHeader()
Gets the header fields. |
java.awt.Color |
getHeaderBackground(int index)
Gets the header background color. |
java.awt.Image |
getHeaderImage(int column)
Gets the image used in the specified header. |
java.lang.String |
getHeaderLabel(int index)
Gets the specified header field. |
java.awt.Image |
getImage(int column,
int row)
Gets an image used for the cell or column. |
java.lang.String |
getImageName(int column,
int row)
Gets the image name. |
java.lang.Thread |
getInitThread()
Gets the initializer thread. |
java.awt.Insets |
getInsets()
Returns the default insets of the table (3, 3, 2, 2). |
int |
getLastIndex()
Returns the index of the last row in the table. |
int |
getLastSelectedCell()
Returns the last selected cell/column. |
int |
getLastSelectedRow()
Returns the last selected row. |
int |
getLastSortedColumn()
Gets the index of the last sorted column. |
int |
getMaxVisibleRowCount()
Gets the number of rows that can be visible in the current viewport. |
protected double |
getNumericalValue(java.lang.Object[] fields,
int column,
int type)
This method is called by setRow() and returns a numerical value for a row object. |
java.lang.String |
getParameter(java.lang.String parameter)
Gets the named parameter. |
java.lang.String |
getParameterPrefix()
Gets the applet parameter prefix. |
java.lang.String |
getPostfix(int column)
Gets the postfix of the specified column. |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of the table. |
java.lang.String |
getPrefix(int column)
Gets the prefix of the specified column. |
java.lang.Object[] |
getRow(int row)
This method returns the fields of the specified row. |
java.awt.Color |
getRowBackground(int index)
Gets the default row background color. |
int |
getRowCount()
Returns the number of rows in the table data. |
java.awt.Font |
getRowFont(int row)
Gets the font used for the specific row. |
java.awt.Color |
getRowForeground(int index)
Gets the foreground color for the specific row. |
protected int |
getRowHeight(int row)
Returns the row height for the specified row. |
int |
getRowIndex(int position)
Translates a row position to the index in TableData. |
int |
getRowIndex(java.lang.Object key)
Translates a row key to the index it is stored in. |
int |
getRowPosition(int index)
Gets the row position of the specified row. |
int[] |
getSelectedRows()
Returns the indexes of the selected rows. |
java.awt.Color |
getSelectionBackground()
Gets the current background color of selected rows. |
java.awt.Color |
getSelectionCellBackground()
Gets the current cell selection background color. |
java.awt.Color |
getSelectionForeground()
Gets the current foreground color of selected rows. |
int |
getSelectionMode()
Gets the current selection mode. |
int |
getSortOrder(int column)
Gets the current sorting order for the specified column. |
protected int |
getSortType(int column_type)
Gets the sort type based on the column type. |
TableData |
getTableData()
Gets the data of the table. |
java.lang.String |
getThousandsDelimiter()
Gets the current thousands delimiter used for formatted numbers. |
java.lang.String |
getTooltip(java.lang.String name)
Gets the specified tooltip label. |
java.awt.Color |
getTooltipBackground()
Gets the tooltip background color. |
int |
getTooltipDelay(java.lang.String name)
Gets the delay of the tootip labels. |
protected int |
getTotalType(int column_type)
This method is called when calculating the total row and gets the total type for the specified column type. |
java.lang.Object |
getURL(int row,
int column)
Gets any URL assigned to the specified row or cell. |
java.lang.String |
getURLTarget(int row,
int column)
Gets the url target for the specified cell. |
static java.lang.String |
getVersion()
Gets the version number. |
boolean |
gotoRow(int index)
Scrolls to the row with the specified index. |
boolean |
gotoRowPosition(int position)
Scrolls to the specified row position. |
void |
init()
This method is called by the applet container (web browser) and reads the applet parameters and the data. |
boolean |
isAutomaticRepaintOn()
Checks if the automatic repaint flag is turned on. |
boolean |
isColumnCollapsable(int column)
Checks if a column is set in collapsable mode. |
boolean |
isColumnCollapsed(int column)
Checks if a column is collapsed. |
boolean |
isColumnOn(int column)
Checks if the specified column is turned on. |
boolean |
isColumnStretchOn()
Checks if column stretch is on. |
boolean |
isDoubleBufferingOn()
Checks if double buffering is on. |
boolean |
isFilterBarOn()
Checks if the filter bar is turned on or off. |
boolean |
isFilterEnabled(int index)
Checks if the specified filter field is enabled for editing. |
boolean |
isFilterOn(int index)
Checks if the specified filter field is turned on. |
boolean |
isGridOn()
Checks if the row grid is on or off. |
boolean |
isHeaderOn()
Checks if the header is on or off. |
boolean |
isLabelCacheOn()
Checks if the label cache is turned on. |
boolean |
isMouseOverCellOn()
Checks if the mouseOverCellOn flag is turned on. |
boolean |
isProgressiveFilterOn()
Checks if progressive filtering is on. |
boolean |
isRowSelected(int index)
Checks if the specified row is selected. |
boolean |
isSortingOn(int column)
Checks if interactiv sorting is turned on for the specified column. |
boolean |
isTotalRowOn(int column)
Checks if the total row is on for the specified column. |
void |
loadAppletParameters(java.util.Hashtable parameters)
Loads the applet tag parameters into the parameters hashtable. |
void |
loadData(java.lang.String url,
boolean progress)
Loads the data into the table. |
protected java.awt.Image |
loadImage(java.lang.String name)
Loads an image from the applet document base. |
void |
loadURLParameters(java.lang.String url,
java.util.Hashtable parameters)
Loads the parameters from the specified url. |
protected boolean |
matchesFilter(Filter filter,
int row,
int column)
Checks for a match. |
protected boolean |
matchesFilter(int rowIndex)
This method is called to check if a row matches the current filter that is set. |
void |
paint(java.awt.Graphics g)
Paints the table component. |
protected void |
paintBorder(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the border around the table. |
protected void |
paintCell(java.awt.Graphics g,
java.awt.Rectangle viewport,
java.lang.String label,
java.awt.Rectangle labelBounds,
java.awt.Image image,
int rowIndex,
int columnIndex)
Paints the label and the image of a cell. |
protected void |
paintCellBackground(java.awt.Graphics g,
java.awt.Rectangle viewport,
java.lang.String label,
java.awt.Rectangle labelBounds,
java.awt.Image image,
int rowIndex,
int columnIndex)
Paints the cell background. |
protected void |
paintCellForeground(java.awt.Graphics g,
java.awt.Rectangle viewport,
java.lang.String label,
java.awt.Rectangle labelBounds,
java.awt.Image image,
int rowIndex,
int columnIndex)
Paints the cell foreground. |
protected void |
paintCellLink(java.awt.Graphics g,
java.awt.Rectangle viewport,
java.lang.String label,
java.awt.Rectangle labelBounds,
java.awt.Image image,
int rowIndex,
int columnIndex,
boolean rowURL)
Paints any url link below the label if configured and the column is not collapsed. |
protected void |
paintColumn(java.awt.Graphics g,
java.awt.Rectangle viewport,
int columnIndex)
Paints a column of the table. |
protected void |
paintFilterBar(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the filter bar used for searhing and filtering. |
protected void |
paintGrid(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the row grid. |
protected void |
paintHeader(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the table header. |
protected void |
paintHorizontalScrollbar(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the horizontal scroll bar. |
protected void |
paintLoadingDataMessage(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the loading data message. |
protected void |
paintMouseOverCell(java.awt.Graphics g,
java.awt.Rectangle viewport,
int rowIndex,
int columnIndex)
Paints the label and the image of a cell. |
protected void |
paintMultiLineLabel(java.awt.Graphics g,
java.awt.Rectangle bounds,
java.lang.String label,
int alignment)
Paints a multiline label in the specified bounds. |
protected void |
paintRowBackground(java.awt.Graphics g,
java.awt.Rectangle viewport,
int rowPosition)
Paints the row background color. |
protected void |
paintRows(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the rows of the table for each column. |
protected void |
paintRowSelection(java.awt.Graphics g,
java.awt.Rectangle viewport,
int rowIndex)
Paints the row selection background color. |
protected void |
paintTable(java.awt.Graphics g)
Paints the table. |
protected void |
paintTooltipLabel(java.awt.Graphics g,
java.lang.String label,
int xpos,
int ypos)
Paints a tooltip label at the specified position. |
protected void |
paintTotalRow(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the total row. |
protected void |
paintVerticalScrollbar(java.awt.Graphics g,
java.awt.Rectangle viewport)
Paints the vertical scroll bar. |
protected void |
processEvent(java.awt.AWTEvent event)
Handles the internal events of the table. lastMousePosition is set before any of the specific mouse event processing methods are called. |
protected void |
processHorizontalScrollbar(java.awt.event.MouseEvent event)
Processes the horizontal scrollbar events. |
protected void |
processKeyFilterEdit(java.awt.event.KeyEvent event)
Processes key type events and filter editing. |
protected void |
processKeyRowNavigation(java.awt.event.KeyEvent event)
Processes key pressed events causing row navigation. |
protected void |
processKeys(java.awt.event.KeyEvent event)
Processes key events. |
protected void |
processMouseClicked(java.awt.event.MouseEvent event)
Processes mouse button click events. |
protected void |
processMouseDragged(java.awt.event.MouseEvent event)
Processes mouse dragging events, adjusting column width or dragging scrollbar sliders. |
protected void |
processMouseMoved(java.awt.event.MouseEvent event)
Changes the cursor as the mouse moves across the table. |
protected void |
processMousePressed(java.awt.event.MouseEvent event)
Handles the row selections, header pushdown, filter activation, and scrollbar arrow buttons. |
protected void |
processMouseReleased(java.awt.event.MouseEvent event)
Processes mouse button release events. |
protected void |
processNotifyListeners(TableEvent event)
Notifies all the registered table listeners about the specified event. |
protected void |
processRowSelection(java.awt.event.MouseEvent event,
int rowIndex,
int columnIndex,
int rowPosition)
Processes the row selection events. |
protected void |
processVerticalScrollbar(java.awt.event.MouseEvent event)
Processes the vertical scrollbar events. |
void |
removeAll()
Removes all the rows from the table data. |
void |
removeRow(int row)
Removes the specified row from the table data. |
void |
removeTableListener(TableListener listener)
Removes the given table listener from the table. |
protected void |
render(java.awt.Graphics g)
Renders all the elements of the table. |
void |
resetAllRows()
Resets all row parameters such as fonts, foreground and background colors, cell images, URLs and URL targets |
void |
resetRow(int row)
Resets parameters for the specified row. |
void |
selectRow(int index,
boolean select)
Selects the specified row in the table. |
void |
setAlternateRowBackground(java.awt.Color color,
int count,
int start)
Sets alternating row backgrounds. |
void |
setAutomaticRepaintOn(boolean state)
Turns on or off the automatic table repaint. |
void |
setCell(int row,
int col,
java.lang.Object value)
Sets the value of a cell in the table. |
void |
setColumnAlignment(int column,
int alignment)
Sets the column alignment. |
void |
setColumnCollapsable(int column,
boolean collapsable)
Sets a column in collapsable mode. |
void |
setColumnCollapsed(int column,
boolean collapsed)
Collapses the specified column. |
void |
setColumnCount(int count)
Sets the number of columns in the table. |
void |
setColumnOn(int column,
boolean state)
Turns a column on or off. |
void |
setColumnStretchOn(boolean on)
Turns on column stretch. |
void |
setColumnType(int column,
int type)
Sets the columns to the specified type. |
void |
setColumnWidth(int column,
int width)
Sets the width of the specified column. |
void |
setDataParameterField(java.lang.String field,
java.lang.String value)
Sets a field in the data parameter value. |
void |
setDateFormatter(int column,
java.text.DateFormat formatter)
Sets the date formatter used to format date columns. |
void |
setDecimalCount(int column,
int count)
Sets the decimal count for the specified column. |
void |
setDefaultSortOrder(int column,
int order)
Sets the default sorting order for the specified column. |
void |
setDoubleBufferingOn(boolean state)
Turns on or off double buffering. |
void |
setEnabled(boolean enabled)
Enables or disables the component. |
void |
setExportFrameIcon(java.awt.Image image)
Sets the export frame icon. |
void |
setFilter(int column,
java.lang.String value)
Sets the current filter for a column. |
void |
setFilterBarBackground(java.awt.Color color)
Sets the filter bar background color when the filter field is inactive. |
void |
setFilterBarOn(boolean state)
Turns on or off the filter bar. |
void |
setFilterBarOnBackground(java.awt.Color color)
Sets the filter bar background color when the filter field is active. |
void |
setFilterBarPosition(int position)
Sets the position of the filter bar. |
void |
setFilterEnabled(int column,
boolean enabled)
Enables or disables a filter field for filter input. |
void |
setFilterFields(java.lang.Object[] fields)
Sets the current filter fields without refiltering the table. |
void |
setFilterOn(int column,
boolean state)
Turns on the specified filter field, and filters the data. |
void |
setFilterValueSeparator(int column,
java.lang.String separator)
Sets the separator to use between filter values in combination filters. |
void |
setFilterWildCard(java.lang.String wildcard)
Sets the wildcard to be used when filtering data using the filter bar. |
void |
setFont(java.awt.Font font)
Sets the default font to be used. |
void |
setFont(java.lang.String name,
java.awt.Font font)
Sets the named font. |
void |
setFontColor(java.lang.String name,
java.awt.Color color)
Sets the color used for the specified font. |
void |
setGridColor(java.awt.Color color)
Sets the row grid color. |
void |
setGridOn(boolean on)
Turns on or off the row grid. |
void |
setHeader(java.lang.String[] fields)
Sets the text of the table header. |
void |
setHeaderBackground(int index,
java.awt.Color color)
Sets the header background color. |
void |
setHeaderImage(int column,
java.awt.Image image)
Sets the image for the specified header field. |
void |
setHeaderLabel(int index,
java.lang.String label)
Sets the specified header field. |
void |
setHeaderOn(boolean on)
Turns the header on or off. |
void |
setImage(int column,
int row,
java.awt.Image image)
Sets an image to be used in a cell or column. |
void |
setLabelCacheOn(boolean on)
Turns on or off the label cache for textual columns. |
void |
setLocale(java.util.Locale locale)
Sets the locale to use when formatting numbers and currency columns. |
void |
setMouseOverCellOn(boolean on)
Turns on or off display of hidden cells when the mouse moves over it (off by default). |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets a parameter in the chart. |
void |
setParameterPrefix(java.lang.String prefix)
Sets the applet parameter prefix. |
void |
setParameters(java.util.Hashtable parameters)
Sets the parameters found in the specified table. |
void |
setParentApplet(java.applet.Applet applet)
Sets the parent applet if this applet is used as a component in another applet. |
void |
setPostfix(int column,
java.lang.String postfix)
Sets the postfix of the labels in the specified column. |
void |
setPreferredSize(int width,
int height)
Sets the preferred size of the table. |
void |
setPrefix(int column,
java.lang.String prefix)
Sets the prefix of the labels in the specified column. |
void |
setProgressiveFilterOn(boolean on)
Turns on progressive filtering. |
int |
setRow(int index,
java.lang.Object[] fields)
Sets a row in the table at the specified row index. |
int |
setRow(int index,
java.lang.Object key,
java.lang.Object[] fields)
Sets a row in the table at the specified row index using the given key. |
void |
setRowBackground(int index,
java.awt.Color color)
Sets the background color of the rows. |
void |
setRowFont(int row,
java.awt.Font font)
Sets the font used for the specific row. |
void |
setRowForeground(int index,
java.awt.Color color)
Sets the row text color. |
void |
setSelectionBackground(java.awt.Color color)
Sets the background color of selected rows. |
void |
setSelectionCellBackground(java.awt.Color color)
Sets the cell selection background color. |
void |
setSelectionForeground(java.awt.Color color)
Sets the foreground color of selected rows. |
void |
setSelectionMode(int mode)
Sets the selection mode. |
void |
setSortingOn(int column,
boolean on)
Turns on or off interactiv sorting for the specified column. |
void |
setTableData(TableData tableData)
Sets the data of the table. |
void |
setThousandsDelimiter(java.lang.String delimiter)
Sets the delimiter for use in the display of numbers. |
void |
setTooltip(java.lang.String name,
java.lang.String tooltip)
Sets the header tooltip label. |
void |
setTooltipBackground(java.awt.Color color)
Sets the tooltip background color. |
void |
|