|
ElegantJ Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
com.elegantj.jfc.table.JFCTable
This bean component allows the user to get the look and feel of JTable.
This bean provides powerful designing aspects by providing following user friendly properties
ColumnNames the vector containing the column names of this table
Data the double dimension vector containing the data of this table
AutoResizeMode determines whether the table automatically resizes the width of the table's columns to take up the entire width of the table, and how it does the resizing
ColumnCount the total number of columns
ColumnMargin the width in pixels of the margin between the cells in each column
ColumnSelectionAllowed determines whether column selection is allowed in this table
RowCount the total number of rows
RowHeight the height in pixels of each row in the table
RowMargin the height in pixels of the margin between the cells in each row
RowSelectionAllowed determines whether row selection is allowed in this table
SelectionMode the selection mode for the table
SelectedColumns the selected columns indices
SelectedRows the selected rows indices
ShowHorizontalLines determines whether the table draws horizontal lines between cells
ShowVerticalLines determines whether the table draws vertical lines between cells
GridColor the color of the grid
ManagingFocus determines whether tab traversal on/off once focus gained
AddRowOnEnterKey determines whether row is added on enter key stroke
removeRowOnDeleteKey determines whether row is removed on delete key stroke
InsertOnInsertKey determines whether row is inserted on insert key stroke
PopupVisible determines the visibility of the popup menu
SortColumnOnClick determines whether column data is sorted by clicking the column header
SearchMode the search criteria
TableColumnsAttributes the cell attributes of the each column
TableRowsAttributes the cell attributes of the each row
DefaultTableAttributes the default cell attributes
AdjustColumnOnClick determines whether the column can be adjustable by clicking
ColumnReorderingAllowed determines whether reordering of columns are allowed
ColumnResizingAllowed determines whether resizing of columns are allowed
ColumnHeaderBackground the background color of the column header
ColumnHeaderForeground the foreground color of the column header
ColumnHeaderFont the font of the column header
ColumnHeaderHeight the height of the column header
ColumnHeaderVisible the visibility of the column header
AdjustRowOnClick determines whether the row can be adjustable by clicking
RowResizingAllowed determines whether resizing of rows are allowed
RowHeaderBackground the background color of the row header
RowHeaderForeground the foreground color of the row header
RowHeaderFont the font of the row header
RowHeaderHeight the height of the row header
RowHeaderVisible the visibility of the row header
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTable |
javax.swing.JTable.AccessibleJTable |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| 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 | |
com.elegantj.editors.C1 |
c1
|
protected DefaultJFCTableColumnModel |
columnModel
Specifies the column model of the table. |
static int |
COMPARE_CONTAINS
Specifies the compare mode as compare the cell which contains with specified string |
static int |
COMPARE_ENDS_WITH
Specifies the compare mode as compare the cell which ends with specified string |
static int |
COMPARE_EQUALS
Specifies the compare mode as compare the cell which equals to string |
static int |
COMPARE_STARTS_WITH
Specifies the compare mode as compare the cell which starts with specified string |
protected DefaultJFCTableModel |
dataModel
Specifies the data model of the table |
static int |
MULTIPLE_INTERVAL_SELECTION
Specifies a value for the selectionMode property: select one or more contiguous ranges of indices at a time. |
protected TablePopupMenu |
popupMenu
Specifies the data model of the table |
static int |
SEARCH_FROM_FIRST_CELL
Specifies the search mode as search downwards |
static int |
SEARCH_FROM_LAST_CELL
Specifies the search mode as search upwards |
static int |
SEARCH_FROM_SELECTED_CELL_TO_DOWN
Specifies the search mode as search downwards from last selected cell |
static int |
SEARCH_FROM_SELECTED_CELL_TO_UP
Specifies the search mode as search upwards from last selected cell |
static int |
SINGLE_INTERVAL_SELECTION
Specifies a value for the selectionMode property: select one contiguous range of indices at a time. |
static int |
SINGLE_SELECTION
Specifies a value for the selectionMode property: select one list index at a time. |
protected JTableColumnHeader |
tableColumnHeader
The TableRowHeader working with the table. |
protected JTableRowHeader |
tableRowHeader
The TableRowHeader working with the table. |
| Fields inherited from class javax.swing.JTable |
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader |
| 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.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 | |
JFCTable()
Creates a JFCTable with 20 rows and 5 columns of empty cells using DefaultJFCTableModel. |
|
JFCTable(int numRows,
int numColumns)
Creates a JFCTable with numRows and numColumns of empty cells using DefaultJFCTableModel. |
|
JFCTable(java.lang.Object[][] rowData,
java.lang.Object[] columnNames)
Creates a JFCTable to display the values in the two dimensional array, rowData, with column names, columnNames |
|
JFCTable(javax.swing.table.TableModel dm)
|
|
JFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm)
|
|
JFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm,
javax.swing.ListSelectionModel sm)
Creates a JFCTable with specified data model, column model and row selection model |
|
JFCTable(java.util.Vector rowData,
java.util.Vector columnNames)
Creates a JFCTable to display the values in the Vector of Vectors, rowData, with column names, columnNames |
|
| Method Summary | |
void |
addColumn()
|
void |
addColumn(java.lang.Object[] columnData)
|
void |
addColumn(java.lang.String columnName)
|
void |
addColumn(java.lang.String columnName,
java.lang.Object[] columnData)
Adds a column to the model. |
void |
addColumn(java.lang.String columnName,
java.util.Vector columnData)
Adds a column to the model. |
void |
addColumn(javax.swing.table.TableColumn aColumn)
Appends aColumn to the end of the array of columns held by this JFCTable's column model. |
void |
addColumn(java.util.Vector columnData)
|
void |
addColumnAboveSelection()
Adds a column to the model above the selected column, The new column will have the default identifier |
void |
addColumnModelListener(javax.swing.event.TableColumnModelListener l)
Adds a listener for table column model events. |
void |
addColumnSelectionInterval(int index0,
int index1)
Adds the columns from index0 to index1, inclusive, to the current selection. |
void |
addColumnSelectionListener(javax.swing.event.ListSelectionListener l)
Adds a listener to the list that's notified each time a change to the column selection occurs. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. |
void |
addRow()
|
void |
addRow(java.lang.Object[] rowData)
Adds a row to the end of the model. |
void |
addRow(java.util.Vector rowData)
Adds a row to the end of the model. |
void |
addRowAboveSelection()
Adds a row to the model above the selected row, |
void |
addRowSelectionInterval(int index0,
int index1)
Adds the rows from index0 to index1, inclusive, to the current selection. |
void |
addRowSelectionListener(javax.swing.event.ListSelectionListener l)
Adds a listener to the list that's notified each time a change to the row selection occurs. |
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener to the list that's notified each time a change to the data model occurs |
TableCell |
cellAtPoint(java.awt.Point point)
Returns the table cell that point lies in, or null if the result is not in the table range. |
void |
changeSelection(int rowIndex,
int columnIndex,
boolean toggle,
boolean extend)
Updates the selection models of the table, depending on the state of the two flags: toggle and extend. |
void |
clearTableColumnsAttributes()
Clears the cell attributes at each column. |
void |
clearTableRowsAttributes()
Clears the cell attributes at each row. |
void |
columnAdded(javax.swing.event.TableColumnModelEvent e)
Invoked when a column is added to the table column model. |
void |
columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Invoked when the selection model of the TableColumnModel is changed. |
protected void |
configureEnclosingScrollPane()
If this JFCTable is the viewportView of an enclosing JScrollPane (the usual situation), configure this ScrollPane by, amongst other things, installing the table's tableColumnHeader as the columnHeaderView and tableRowHeader as the rowHeaderView of the scroll pane. |
static java.util.Hashtable |
convertAttributesArrayToTable(java.lang.Object[][] attributesArray)
Converts the Object array contains the cell attributes into Hashtable. |
static java.lang.Object[][] |
convertAttributesTableToArray(java.util.Hashtable attributesTable)
Converts the Hashtable contains the cell attributes into Object array. |
static java.lang.Object[] |
convertToArray(java.util.Vector theVector)
Returns an array that contains the same objects as the vector. |
static java.util.Vector |
convertToVector(java.lang.Object[] anArray)
Returns a vector of vectors that contains the same objects as the array. |
protected javax.swing.table.TableColumnModel |
createDefaultColumnModel()
Returns the default column model object, which is a DefaultJFCTableColumnModel. |
protected java.util.Hashtable |
createDefaultColumnsAttributes()
Returns the default table cell attributes for each column, which is a Hashtable. |
void |
createDefaultColumnsFromModel()
Creates default columns for the table from the data model using the getColumnCount method defined in the TableModel interface. |
protected javax.swing.table.TableModel |
createDefaultDataModel()
Returns the default table model object, which is a DefaultJFCTableModel. |
protected void |
createDefaultEditors()
Creates default cell editors for objects, numbers, and boolean values. |
protected TablePopupMenu |
createDefaultPopupMenu()
Creates the default popup menu for the JFCTable |
protected void |
createDefaultRenderers()
Creates default cell renderers for objects, numbers, doubles, dates, booleans, and icons. |
protected java.util.Hashtable |
createDefaultRowsAttributes()
Returns the default table cell attributes for each row, which is a Hashtable. |
protected TableCellAttributes |
createDefaultTableAttributes()
Returns the default table cell attributes object, which is a TableCellAttributes. |
protected javax.swing.table.JTableHeader |
createDefaultTableHeader()
Returns the default table header object, which is a JColumnTableHeader. |
protected JTableRowHeader |
createDefaultTableRowHeader()
Returns the default table row header object, which is a JTableRowHeader. |
boolean |
editTableCell(TableCell tableCell)
|
boolean |
editTableCell(TableCell tableCell,
java.util.EventObject e)
Programmatically starts editing the table cell, if the cell is editable. |
java.awt.Color |
getCellBackgroundNonSelectionColor(int row,
int column)
Returns the cell background non selection color at given row and column |
java.awt.Color |
getCellBackgroundSelectionColor(int row,
int column)
Returns the cell background selection color at given row and column |
java.awt.Color |
getCellBorderSelectionColor(int row,
int column)
Returns the cell border selection color at given row and column |
javax.swing.table.TableCellEditor |
getCellEditor(int row,
int column)
Returns an appropriate editor for the cell specified by row and column. |
java.awt.Font |
getCellFont(int row,
int column)
Returns the cell font at given row and column |
javax.swing.Icon |
getCellIcon(int row,
int column)
Returns the cell icon at given row and column |
java.lang.String |
getCellIconPath(int row,
int column)
Returns the cell icon path at given row and column |
javax.swing.table.TableCellRenderer |
getCellRenderer(int row,
int column)
Returns an appropriate renderer for the cell specified by this row and column. |
java.awt.Color |
getCellTextNonSelectionColor(int row,
int column)
Returns the cell text non selection color at given row and column |
java.awt.Color |
getCellTextSelectionColor(int row,
int column)
Returns the cell text selection color at given row and column |
javax.swing.table.TableColumn |
getColumn(int column)
Returns the TableColumn object for the column at column index |
java.awt.Color |
getColumnBackgroundNonSelectionColor(int column)
Gets the deselected background color at column |
java.awt.Color |
getColumnBackgroundSelectionColor(int column)
Gets the selected background color at column |
java.awt.Color |
getColumnBorderSelectionColor(int column)
Gets the selected border color at column |
javax.swing.table.TableCellEditor |
getColumnCellEditor(int column)
Gets the cell editor at column |
javax.swing.table.TableCellRenderer |
getColumnCellRenderer(int column)
Gets the cell renderer at column |
java.lang.Object[] |
getColumnData(int index)
Returns an array containing the column data at specified index |
java.lang.Boolean |
getColumnEditable(int column)
Gets the cell editable at column |
java.awt.Color |
getColumnFocusCellBackground(int column)
Gets the focus cell background at column |
java.awt.Color |
getColumnFocusCellForeground(int column)
Gets the focus cell foreground at column |
java.awt.Font |
getColumnFont(int column)
Gets the cell font at column |
java.awt.Color |
getColumnHeaderBackground()
Gets the background color of the column header |
java.awt.Font |
getColumnHeaderFont()
Gets the font of the column header |
java.awt.Color |
getColumnHeaderForeground()
Gets the foreground color of the column header |
int |
getColumnHeaderHeight()
Gets the column header height |
javax.swing.Icon |
getColumnIcon(int column)
Gets the icon at column |
java.lang.String |
getColumnIconPath(int column)
Gets the icon path at column |
int |
getColumnIndex(java.lang.Object identifier)
Returns the index of the first column in the tableColumns array whose identifier is equal to identifier, when compared using equals. |
int |
getColumnMargin()
Returns the width margin for TableColumn. |
java.util.Vector |
getColumnNames()
Gets the column names in the data model |
java.util.Enumeration |
getColumns()
Returns an Enumeration of all the columns in the model. |
java.awt.Color |
getColumnTextNonSelectionColor(int column)
Gets the deselected text color at column |
java.awt.Color |
getColumnTextSelectionColor(int column)
Gets the selected text color at column |
java.util.Vector |
getData()
Gets the Vector of Vectors that contains the table's data values. |
java.awt.Color |
getDefaultBackgroundNonSelectionColor()
Gets the default deselected background color |
java.awt.Color |
getDefaultBackgroundSelectionColor()
Gets the default selected background color |
java.awt.Color |
getDefaultBorderSelectionColor()
Gets the default selected border color |
javax.swing.table.TableCellEditor |
getDefaultCellEditor()
Gets the default cell editor |
javax.swing.table.TableCellRenderer |
getDefaultCellRenderer()
Gets the default cell renderer |
java.lang.Boolean |
getDefaultEditable()
Gets the default cell editable |
java.awt.Color |
getDefaultFocusCellBackground()
Gets the default focus cell background |
java.awt.Color |
getDefaultFocusCellForeground()
Gets the default focus cell foreground |
java.awt.Font |
getDefaultFont()
Gets the default cell font |
javax.swing.Icon |
getDefaultIcon()
Gets the default icon |
java.lang.String |
getDefaultIconPath()
Gets the default icon path |
TableCellAttributes |
getDefaultTableAttributes()
Gets the default table cell attributes for each cell in the table, |
java.awt.Color |
getDefaultTextNonSelectionColor()
Gets the default deselected text color |
java.awt.Color |
getDefaultTextSelectionColor()
Gets the default selected text color |
java.awt.Color |
getFocusCellBackground(int row,
int column)
Returns the cell focus background color at given row and column |
java.awt.Color |
getFocusCellForeground(int row,
int column)
Returns the cell focus foreground color at given row and column |
java.lang.String |
getLicenseKey()
Gets the license key |
java.util.Locale |
getLocale()
Returns the value of locale. |
TablePopupMenu |
getPopupMenu()
Returns the TablePopupMenu used by JFCTable. |
java.awt.Color |
getRowBackgroundNonSelectionColor(int row)
Gets the deselected background color at row |
java.awt.Color |
getRowBackgroundSelectionColor(int row)
Gets the selected background color at row |
java.awt.Color |
getRowBorderSelectionColor(int row)
Gets the selected border color at row |
javax.swing.table.TableCellEditor |
getRowCellEditor(int row)
Gets the cell editor at row |
javax.swing.table.TableCellRenderer |
getRowCellRenderer(int row)
Gets the cell renderer at row |
java.lang.Object[] |
getRowData(int index)
Returns an array containing the row data at specified index |
java.lang.Boolean |
getRowEditable(int row)
Gets the cell editable at row |
java.awt.Color |
getRowFocusCellBackground(int row)
Gets the focus cell background at row |
java.awt.Color |
getRowFocusCellForeground(int row)
Gets the focus cell foreground at row |
java.awt.Font |
getRowFont(int row)
Gets the cell font at row |
java.awt.Color |
getRowHeaderBackground()
Gets the background color of the row header |
java.awt.Font |
getRowHeaderFont()
Gets the font of the row header |
java.awt.Color |
getRowHeaderForeground()
Gets the foreground color of the row header |
int |
getRowHeaderWidth()
Gets the row header height |
int |
getRowHeight(int row)
Returns the height, in pixels, of the cells in row. |
javax.swing.Icon |
getRowIcon(int row)
Gets the icon at row |
java.lang.String |
getRowIconPath(int row)
Gets the icon path at row |
java.awt.Color |
getRowTextNonSelectionColor(int row)
Gets the deselected text color at row |
java.awt.Color |
getRowTextSelectionColor(int row)
Gets the selected text color at row |
int |
getSearchMode()
Gets the table's search mode |
protected java.lang.Object |
getSearchValueAt(int row,
int column)
Returns the searching object at given row and column A subclass can override this method to return a different searching object. |
java.lang.Object |
getSelectedCellObject()
Returns the object of the selected table cell |
TableCell |
getSelectedTableCell()
Gets the selected table cell |
int |
getSelectionMode()
Gets the current table selection mode |
TableCellAttributes |
getTableColumnAttributes(int column)
Gets the cell attributes at specified column of the table |
java.util.Hashtable |
getTableColumnsAttributes()
Gets the cell attributes at each column of the table |
TableCellAttributes |
getTableRowAttributes(int row)
Gets the cell attributes at specified row of the table |
JTableRowHeader |
getTableRowHeader()
Returns the TableRowHeader used by JFCTable. |
java.util.Hashtable |
getTableRowsAttributes()
Gets the cell attributes at each row of the table |
int |
getVisibleFirstColumn()
Returns the first visible column index |
int |
getVisibleFirstRow()
Returns the first visible row index |
int |
getVisibleLastColumn()
Returns the last visible column index |
int |
getVisibleLastRow()
Returns the last visible row index |
protected void |
initializeLocalVars()
Initializes table properties to their default values. |
void |
insertColumn(int column)
|
void |
insertColumn(int column,
java.lang.Object[] columnData)
|
void |
insertColumn(int column,
java.lang.String columnName)
|
void |
insertColumn(int column,
java.lang.String columnName,
java.lang.Object[] columnData)
Inserts a column to the model. |
void |
insertColumn(int column,
java.lang.String columnName,
java.util.Vector columnData)
Inserts a column to the model. |
void |
insertColumn(int column,
java.util.Vector columnData)
|
void |
insertColumn(javax.swing.table.TableColumn aColumn,
int column)
Inserts aColumn to the column index of the array of columns held by this JFCTable's column model. |
void |
insertRow(int row)
|
void |
insertRow(int row,
java.lang.Object[] rowData)
Inserts a row at specified index in the model. |
void |
insertRow(int row,
java.util.Vector rowData)
Inserts a row at specified index in the model. |
boolean |
isAddRowOnEnterKey()
Gets the enter key stroke's enability |
boolean |
isAdjustColumnOnClick()
Gets whether the column can be adjustable by clicking on it. |
boolean |
isAdjustRowOnClick()
Gets whether the row can be adjustable by clicking on it. |
boolean |
isCellEditable(int row,
int column)
Returns true if the cell at row and column is editable. |
boolean |
isCellSelected(TableCell tableCell)
Returns true if the specified table cell is selected |
boolean |
isColumnCellsSelected(int column)
Returns true if the all column cells at the specified index is selected |
boolean |
isColumnHeaderVisible()
Gets the column header visibility |
boolean |
isColumnReorderingAllowed()
Gets whether the user is allowed to rearrange columns by dragging their column headers |
boolean |
isColumnResizingAllowed()
Gets whether the user is allowed to resize columns by dragging between their column headers |
boolean |
isInsertRowOnInsertKey()
Gets the insert key stroke's enability |
boolean |
isLightweight()
Returns whether this component has a lightweight peer, native peer or no peer. |
boolean |
isManagingFocus()
Gets tab traversal on/off once focus gained. |
boolean |
isPopupVisible()
Gets the popup menu visibility |
boolean |
isRemoveRowOnDeleteKey()
Gets the delete key stroke's enability |
boolean |
isRowCellsSelected(int row)
Returns true if the all row cells at the specified index is selected |
boolean |
isRowHeaderVisible()
Gets the row header visibility |
boolean |
isRowResizingAllowed()
Gets whether the user is allowed to resize rows by dragging between their row headers |
boolean |
isSortColumnOnClick()
Gets the enability to sort the column data by clicking the column header |
void |
moveColumn(int columnIndex,
int newIndex)
Moves the column column to the position currently occupied by the column targetColumn in the view. |
void |
moveRow(int startIndex,
int endIndex,
int toIndex)
Moves one or more rows starting at startIndex to endIndex in the model to the toIndex |
java.awt.Component |
prepareRenderer(javax.swing.table.TableCellRenderer renderer,
int row,
int column)
Prepares the renderer by querying the data model for the value and selection state of the cell at row, column. |
protected void |
processKeyEvent(java.awt.event.KeyEvent e)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects. |
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects. |
void |
readExternal(java.io.ObjectInput in)
Externalizable interface implementation to save and retrieve the state of this bean |
void |
removeColumn(int column)
Removes the column at column index from the model |
void |
removeColumn(java.lang.String columnName)
Removes the column columnName from the model |
void |
removeColumn(javax.swing.table.TableColumn aColumn)
Removes aColumn from this JFCTable's array of columns and also removes the column from the data model. |
void |
removeColumnModelListener(javax.swing.event.TableColumnModelListener l)
Removes a listener for table column model events. |
void |
removeColumns(int[] colIndices)
Removes the columns at specified column indexes from the model |
void |
removeColumns(java.lang.String[] columnNames)
Removes the columns with specified column names from the model |
void |
removeColumnSelectionInterval(int index0,
int index1)
Deselects the columns from index0 to index1, inclusive. |
void |
removeColumnSelectionListener(javax.swing.event.ListSelectionListener l)
Removes a listener from the list that's notified each time a change to the column selection occurs. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. |
void |
removeRow(int row)
Removes the row at specified index from the model |
void |
removeRows(int[] indices)
Removes the rows at specified indexes from the model |
void |
removeRowSelectionInterval(int index0,
int index1)
Deselects the rows from index0 to index1, inclusive. |
void |
removeRowSelectionListener(javax.swing.event.ListSelectionListener l)
Removes a listener from the list that's notified each time a change to the row selection occurs. |
void |
removeSelectedColumns()
Removes the selected columns from the model |
void |
removeSelectedRows()
Removes the selected rows from the model. |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener from the list that's notified each time a change to the data model occurs |
void |
repaint()
Repaints this component. |
protected void |
resizeAndRepaint()
Equivalent to revalidate followed by repaint. |
void |
scrollCellToVisible(int row,
int column)
Scrolls the table to visible the cell at specified row and column. |
void |
scrollCellToVisible(TableCell tableCell)
Scrolls the table to visible the specified table cell. |
void |
scrollColumnToVisible(int column)
Scrolls the table to visible the column at specified column index. |
void |
scrollRowToVisible(int row)
Scrolls the table to visible the row at specified row index. |
TableCell |
searchTableCell(java.lang.Object value)
|
TableCell |
searchTableCell(java.lang.Object value,
int nColumn)
Searches the table cell by given object at specified column index |
TableCell |
searchTableCell(java.lang.Object value,
int[] nColumns)
Searches the table cell by given object at one of the specified column indexes |
TableCell |
searchTableCell(java.lang.String sCell,
int[] nSearchColumns,
int nCompareMode,
boolean bCaseSensitive)
|
TableCell |
searchTableCell(java.lang.String sCell,
int[] nSearchColumns,
int nSearchMode,
int nCompareMode,
boolean bCaseSensitive)
Seraches the table cell by specifying cell string, and search options. |
TableCell |
searchTableCell(java.lang.String sCell,
int nSearchColumn,
int nCompareMode,
boolean bCaseSensitive)
|
TableCell |
searchTableCell(java.lang.String sCell,
int nSearchColumn,
int nSearchMode,
int nCompareMode,
boolean bCaseSensitive)
Seraches the table cell by specifying cell string, and search options. |
void |
selectColumnCells(int column)
Selects the all column cells at specified column index |
void |
selectRowCells(int row)
Selects the all row cells at specified row index |
void |
setAddRowOnEnterKey(boolean b)
Sets the enter key stroke's enability to add the row at last index in the data model |
void |
setAdjustColumnOnClick(boolean b)
Sets whether the column can be adjustable by clicking on it. |
void |
setAdjustRowOnClick(boolean b)
Sets whether the row can be adjustable by clicking on it. |
void |
setAutoCreateColumnsFromModel(boolean b)
Sets this table's autoCreateColumnsFromModel flag. |
void |
setAutoResizeMode(int n)
Sets the table's auto resize mode when the table is resized. |
void |
setAutoscrolls(boolean b)
Sets whether this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBorder(javax.swing.border.Border b)
Sets the border of this component. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setColumnBackgroundNonSelectionColor(java.awt.Color color,
int column)
Sets the deselected background color at column |
void |
setColumnBackgroundSelectionColor(java.awt.Color color,
int column)
Sets the selected background color at column |
void |
setColumnBorderSelectionColor(java.awt.Color color,
int column)
Sets the selected border color at column |
void |
setColumnCellEditor(javax.swing.table.TableCellEditor editor,
int column)
Sets the cell editor at column |
void |
setColumnCellRenderer(javax.swing.table.TableCellRenderer renderer,
int column)
Sets the cell renderer at column |
void |
setColumnCount(int n)
Sets the number of columns in the model. |
void |
setColumnEditable(java.lang.Boolean editable,
int column)
Sets the cell editable at column |
void |
setColumnFocusCellBackground(java.awt.Color color,
int column)
Sets the focus cell background at column |
void |
setColumnFocusCellForeground(java.awt.Color color,
int column)
Sets the focus cell foreground at column |
void |
setColumnFont(java.awt.Font font,
int column)
Sets the cell font at column |
void |
setColumnHeaderBackground(java.awt.Color color)
Sets the background color of the column header |
void |
setColumnHeaderFont(java.awt.Font font)
Sets the font of the column header |
void |
setColumnHeaderForeground(java.awt.Color color)
Sets the foreground color of the column header |
void |
setColumnHeaderHeight(int n)
Sets the column header height |
void |
setColumnHeaderVisible(boolean b)
Sets the column header visibility |
void |
setColumnIcon(javax.swing.Icon icon,
int column)
Sets the icon at column |
void |
setColumnIconPath(java.lang.String path,
int column)
Sets the icon path at column |
void |
setColumnMargin(int n)
Sets the column margin for TableColumn. |
void |
setColumnModel(javax.swing.table.TableColumnModel columnModel)
Sets the column model for this table to newModel and registers for listener notifications from the new column model. |
void |
setColumnName(java.lang.String name,
int column)
Sets the name of the column appearing in the view at column position column. |
void |
setColumnNames(java.util.Vector columnNames)
Sets the column names in the data model. |
void |
setColumnReorderingAllowed(boolean b)
Sets whether the user can drag column headers to reorder columns |
void |
setColumnResizingAllowed(boolean b)
Sets whether the user can resize columns by dragging between column headers. |
void |
setColumnSelectionAllowed(boolean b)
Sets whether the columns in this model can be selected. |
void |
setColumnSelectionInterval(int index0,
int index1)
Selects the columns from index0 to index1, inclusive. |
void |
setColumnTextNonSelectionColor(java.awt.Color color,
int column)
Sets the deselected text color at column |
void |
setColumnTextSelectionColor(java.awt.Color color,
int column)
Sets the selected text color at column |
void |
setColumnWidth(int width)
|
void |
setColumnWidth(int column,
int width)
|
void |
setCursor(java.awt.Cursor c)
Sets value of the cursor. |
void |
setData(java.util.Vector dataVector)
Sets the current dataVector instance variable with the new Vector of rows, newData. |
void |
setDefaultBackgroundNonSelectionColor(java.awt.Color color)
Sets the default deselected background color |
void |
setDefaultBackgroundSelectionColor(java.awt.Color color)
Sets the default selected background color |
void |
setDefaultBorderSelectionColor(java.awt.Color color)
Sets the default selected border color |
void |
setDefaultCellEditor(javax.swing.table.TableCellEditor editor)
Sets the default cell editor |
void |
setDefaultCellRenderer(javax.swing.table.TableCellRenderer renderer)
Sets the default cell renderer |
void |
setDefaultEditable(java.lang.Boolean editable)
Sets the default cell editable |
void |
setDefaultFocusCellBackground(java.awt.Color color)
Sets the default focus cell background |
void |
setDefaultFocusCellForeground(java.awt.Color color)
Sets the default focus cell foreground |
void |
setDefaultFont(java.awt.Font font)
Sets the default cell font |
void |
setDefaultIcon(javax.swing.Icon icon)
Sets default the icon |
void |
setDefaultIconPath(java.lang.String path)
Sets the default icon path |
void |
setDefaultTableAttributes(TableCellAttributes tableAttributes)
Sets the default table cell attributes for each cell in the table, it can be applicable if the row cell attributes and column cell attributes are not set. |
void |
setDefaultTextNonSelectionColor(java.awt.Color color)
Sets the default deselected text color |
void |
setDefaultTextSelectionColor(java.awt.Color color)
Sets the deafult selected text color |
void |
setDoubleBuffered(boolean b)
Sets whether the receiving component should use a buffer to paint. |
void |
setEnabled(boolean b)
sets Enablity. |
void |
setFont(java.awt.Font f)
Sets the font. |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
void |
setGridColor(java.awt.Color color)
Sets the color used to draw grid lines and redisplays. |
void |
setInsertRowOnInsertKey(boolean b)
Sets the insert key stroke's enability to insert the row in the data model |
void |
setLayout(java.awt.LayoutManager mgr)
Sets the layout manager for this component. |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setLightweight(boolean b)
Sets whether this component has a lightweight peer, native peer or no peer. |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setManagingFocus(boolean b)
Sets tab traversal on/off once focus gained. |
void |
setModel(javax.swing.table.TableModel model)
Sets the data model for this table to newModel and registers with it for listener notifications from the new data model. |
void |
setOpaque(boolean b)
Sets whether this component paints every pixel within its bounds. |
void |
setPopupMenu(TablePopupMenu popupMenu)
Sets the TablePopupMenu working with JFCTable to newHeader. |
void |
setPopupVisible(boolean b)
Sets the popup menu visibility |
void |
setRemoveRowOnDeleteKey(boolean b)
Sets the delete key stroke's enability to remove the row from the data model |
void |
setRequestFocusEnabled(boolean b)
Sets whether the receiving component can obtain the focus by calling requestFocus. |
void |
setRowBackgroundNonSelectionColor(java.awt.Color color,
int row)
Sets the deselected background color at row |
void |
setRowBackgroundSelectionColor(java.awt.Color color,
int row)
Sets the selected background color at row |
void |
setRowBorderSelectionColor(java.awt.Color color,
int row)
Sets the selected border color at row |
void |
setRowCellEditor(javax.swing.table.TableCellEditor editor,
int row)
Sets the cell editor at row |
void |
setRowCellRenderer(javax.swing.table.TableCellRenderer renderer,
int row)
Sets the cell renderer at row |
void |
setRowCount(int n)
|
void |
setRowEditable(java.lang.Boolean editable,
int row)
Sets the cell editable at row |
void |
setRowFocusCellBackground(java.awt.Color color,
int row)
Sets the focus cell background at row |
void |
setRowFocusCellForeground(java.awt.Color color,
int row)
Sets the focus cell foreground at row |
void |
setRowFont(java.awt.Font font,
int row)
Sets the cell font at row |
void |
setRowHeaderBackground(java.awt.Color color)
Sets the background color of the row header |
void |
setRowHeaderFont(java.awt.Font font)
Sets the font of the row header |
void |
setRowHeaderForeground(java.awt.Color color)
Sets the foreground color of the row header |
void |
setRowHeaderVisible(boolean b)
Sets the row header visibility |
void |
setRowHeaderWidth(int n)
Sets the row header height |
void |
setRowHeight(int n)
Sets the height, in pixels, of all cells, revalidates, and repaints. |
void |
setRowHeight(int row,
int rowHeight)
Sets the height for row to rowHeight, revalidates, and repaints. |
void |
setRowIcon(javax.swing.Icon icon,
int row)
Sets the icon at row |
void |
setRowIconPath(java.lang.String path,
int row)
Sets the icon path at row |
void |
setRowMargin(int n)
Sets the amount of empty space between cells in adjacent rows. |
void |
setRowResizingAllowed(boolean b)
Sets whether the user can resize rows by dragging between row headers. |
void |
setRowSelectionAllowed(boolean b)
Sets whether the rows in this model can be selected. |
void |
setRowSelectionInterval(int index0,
int index1)
Selects the rows from index0 to index1, inclusive. |
void |
setRowTextNonSelectionColor(java.awt.Color color,
int row)
Sets the deselected text color at row |
void |
setRowTextSelectionColor(java.awt.Color color,
int row)
Sets the selected text color at row |
void |
setSearchMode(int n)
Sets the table's search mode to allow search from first cell, from last cell, from selected cell to down or from selected cell to up. |
void |
setSelectedCellObject(java.lang.Object value)
|
void |
setSelectedCellObject(java.lang.Object value,
int nColumn)
Sets the table cell to be selected with given object at specified column index |
void |
setSelectedCellObject(java.lang.Object value,
int[] nColumns)
Sets the table cell to be selected with given object at one of the specified column indexes |
void |
setSelectedColumn(int n)
Sets the column to be selected at given column index |
void |
setSelectedColumns(int[] nArray)
Sets the columns to be selected at given indexes |
void |
setSelectedRow(int n)
Sets the row to be selected at given row index |
void |
setSelectedRows(int[] nArray)
Sets the rows to be selected at given row indexes |
void |
setSelectedTableCell(TableCell tableCell)
Sets the table cell to be selected |
void |
setSelectionMode(int n)
Sets the table's selection mode to allow only single selections, a single contiguous interval, or multiple intervals. |
void |
setShowHorizontalLines(boolean b)
Sets whether the table draws horizontal lines between cells. |
void |
setShowVerticalLines(boolean b)
Sets whether the table draws vertical lines between cells. |
void |
setSortColumnOnClick(boolean b)
Sets the enability to sort the column data by clicking the column header |
void |
setTableColumnAttributes(TableCellAttributes columnAttributes,
int column)
Sets the cell attributes at specified column of the table |
void |
setTableColumnsAttributes(java.util.Hashtable attributesTable)
Sets the cell attributes at each column of the table, It can be applicable if the row attributes are not set. |
void |
setTableHeader(javax.swing.table.JTableHeader tableColumnHeader)
Sets the tableColumnHeader working with JFCTable to newHeader. |
void |
setTableRowAttributes(TableCellAttributes rowAttributes,
int row)
Sets the cell attributes at specified row of the table |
void |
setTableRowHeader(JTableRowHeader tableRowHeader)
Sets the TableRowHeader working with JFCTable to newHeader. |
void |
setTableRowsAttributes(java.util.Hashtable attributesTable)
Sets the cell attributes at each row of the table, It has the maximum priority. |
void |
setToolTipText(java.lang.String s)
Sets the text to display in a tool tip. |
void |
setVisible(boolean b)
sets Visiblity. |
void |
sortColumn(int index)
Sorts the column data at specified index Sorting criteria (ascending or descending) is determined by x-or logic (ascending-descending-ascending-descending....) |
void |
sortColumn(int index,
boolean flag)
Sorts the column data at specified index |
void |
sortColumns(int[] indices)
Sorts the columns data at specified indices Sorting criteria (ascending or descending) is determined by x-or logic (ascending-descending-ascending-descending....) |
void |
sortColumns(int[] indices,
boolean[] flags)
Sorts the columns data at specified indices |
void |
tableChanged(javax.swing.event.TableModelEvent e)
Invoked when this table's TableModel generates a TableModelEvent. |
protected void |
unconfigureEnclosingScrollPane()
Reverses the effect of configureEnclosingScrollPane by replacing the columnHeaderView and rowHeaderView of the enclosing scroll pane with null. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Invoked when the row selection changes -- repaints to show the new selection. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class javax.swing.JTable |
addNotify, clearSelection, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, convertColumnIndexToModel, convertColumnIndexToView, createDefaultSelectionModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoResizeMode, getCellEditor, getCellRect, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getEditingColumn, getEditingRow, getEditorComponent, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getValueAt, isCellSelected, isColumnSelected, isEditing, isRowSelected, paramString, prepareEditor, processKeyBinding, removeEditor, removeNotify, rowAtPoint, selectAll, setCellEditor, setCellSelectionEnabled, setDefaultEditor, setDefaultRenderer, setDragEnabled, setEditingColumn, setEditingRow, setIntercellSpacing, setPreferredScrollableViewportSize, setSelectionBackground, setSelectionForeground, setSelectionModel, setShowGrid, setSurrendersFocusOnKeystroke, setUI, setValueAt, sizeColumnsToFit, sizeColumnsToFit, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, setDefaultLocale, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, 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, 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, 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, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, 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 |
public static final int SINGLE_SELECTION
public static final int SINGLE_INTERVAL_SELECTION
public static final int MULTIPLE_INTERVAL_SELECTION
public static final int SEARCH_FROM_FIRST_CELL
public static final int SEARCH_FROM_LAST_CELL
public static final int SEARCH_FROM_SELECTED_CELL_TO_DOWN
public static final int SEARCH_FROM_SELECTED_CELL_TO_UP
public static final int COMPARE_STARTS_WITH
public static final int COMPARE_ENDS_WITH
public static final int COMPARE_CONTAINS
public static final int COMPARE_EQUALS
protected transient TablePopupMenu popupMenu
protected transient DefaultJFCTableModel dataModel
protected transient DefaultJFCTableColumnModel columnModel
protected transient JTableColumnHeader tableColumnHeader
protected transient JTableRowHeader tableRowHeader
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public JFCTable()
public JFCTable(javax.swing.table.TableModel dm)
public JFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm)
public JFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm,
javax.swing.ListSelectionModel sm)
dm - the data model for the tablecm - the column model for the tablesm - the row selection model for the table
public JFCTable(int numRows,
int numColumns)
numRows - the number of rows the table holdsnumColumns - the number of columns the table holds
public JFCTable(java.lang.Object[][] rowData,
java.lang.Object[] columnNames)
rowData - the data for the new tablecolumnNames - names of each column
public JFCTable(java.util.Vector rowData,
java.util.Vector columnNames)
rowData - the data for the new tablecolumnNames - names of each column| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
protected JTableRowHeader createDefaultTableRowHeader()
public void setTableRowHeader(JTableRowHeader tableRowHeader)
tableRowHeader - new TableRowHeaderpublic JTableRowHeader getTableRowHeader()
protected TablePopupMenu createDefaultPopupMenu()
public void setPopupMenu(TablePopupMenu popupMenu)
popupMenu - new TablePopupMenupublic TablePopupMenu getPopupMenu()
public void setPopupVisible(boolean b)
b - the popup menu visibilitypublic boolean isPopupVisible()
protected TableCellAttributes createDefaultTableAttributes()
public void setDefaultTableAttributes(TableCellAttributes tableAttributes)
tableAttributes - the default table cell attributespublic TableCellAttributes getDefaultTableAttributes()
public void setDefaultTextSelectionColor(java.awt.Color color)
color - the default selected text colorpublic java.awt.Color getDefaultTextSelectionColor()
public void setDefaultTextNonSelectionColor(java.awt.Color color)
color - the default deselected text colorpublic java.awt.Color getDefaultTextNonSelectionColor()
public void setDefaultBackgroundSelectionColor(java.awt.Color color)
color - the default selected background colorpublic java.awt.Color getDefaultBackgroundSelectionColor()
public void setDefaultBackgroundNonSelectionColor(java.awt.Color color)
color - the default deselected background colorpublic java.awt.Color getDefaultBackgroundNonSelectionColor()
public void setDefaultBorderSelectionColor(java.awt.Color color)
color - the default selected border colorpublic java.awt.Color getDefaultBorderSelectionColor()
public void setDefaultFocusCellBackground(java.awt.Color color)
color - the default focus cell backgroundpublic java.awt.Color getDefaultFocusCellBackground()
public void setDefaultFocusCellForeground(java.awt.Color color)
color - the default focus cell foregroundpublic java.awt.Color getDefaultFocusCellForeground()
public void setDefaultFont(java.awt.Font font)
font - default the cell fontpublic java.awt.Font getDefaultFont()
public void setDefaultIcon(javax.swing.Icon icon)
icon - the default iconpublic javax.swing.Icon getDefaultIcon()
public void setDefaultIconPath(java.lang.String path)
path - the default icon pathpublic java.lang.String getDefaultIconPath()
public void setDefaultCellRenderer(javax.swing.table.TableCellRenderer renderer)
renderer - the default cell rendererpublic javax.swing.table.TableCellRenderer getDefaultCellRenderer()
public void setDefaultCellEditor(javax.swing.table.TableCellEditor editor)
editor - the default cell editorpublic javax.swing.table.TableCellEditor getDefaultCellEditor()
public void setDefaultEditable(java.lang.Boolean editable)
editable - true to set the table editablepublic java.lang.Boolean getDefaultEditable()
protected java.util.Hashtable createDefaultColumnsAttributes()
public void setTableColumnsAttributes(java.util.Hashtable attributesTable)
attributesTable - the cell attributes at each columnpublic java.util.Hashtable getTableColumnsAttributes()
public void clearTableColumnsAttributes()
public void setTableColumnAttributes(TableCellAttributes columnAttributes,
int column)
columnAttributes - the cell attributes at specified columnpublic TableCellAttributes getTableColumnAttributes(int column)
public void setColumnTextSelectionColor(java.awt.Color color,
int column)
color - the selected text colorcolumn - the columnpublic java.awt.Color getColumnTextSelectionColor(int column)
column - the column
public void setColumnTextNonSelectionColor(java.awt.Color color,
int column)
color - the deselected text colorcolumn - the columnpublic java.awt.Color getColumnTextNonSelectionColor(int column)
column - the column
public void setColumnBackgroundSelectionColor(java.awt.Color color,
int column)
color - the selected background colorcolumn - the columnpublic java.awt.Color getColumnBackgroundSelectionColor(int column)
column - the column
public void setColumnBackgroundNonSelectionColor(java.awt.Color color,
int column)
color - the deselected background colorcolumn - the columnpublic java.awt.Color getColumnBackgroundNonSelectionColor(int column)
column - the column
public void setColumnBorderSelectionColor(java.awt.Color color,
int column)
color - the selected border colorcolumn - the columnpublic java.awt.Color getColumnBorderSelectionColor(int column)
column - the column
public void setColumnFocusCellBackground(java.awt.Color color,
int column)
color - the focus cell backgroundcolumn - the column indexpublic java.awt.Color getColumnFocusCellBackground(int column)
column - the column index
public void setColumnFocusCellForeground(java.awt.Color color,
int column)
color - the focus cell foregroundcolumn - the column indexpublic java.awt.Color getColumnFocusCellForeground(int column)
column - the column index
public void setColumnFont(java.awt.Font font,
int column)
font - the cell fontcolumn - the column indexpublic java.awt.Font getColumnFont(int column)
column - the column index
public void setColumnIcon(javax.swing.Icon icon,
int column)
icon - the iconcolumn - the columnpublic javax.swing.Icon getColumnIcon(int column)
column - the column
public void setColumnIconPath(java.lang.String path,
int column)
path - the icon pathcolumn - the columnpublic java.lang.String getColumnIconPath(int column)
column - the column
public void setColumnCellRenderer(javax.swing.table.TableCellRenderer renderer,
int column)
renderer - the cell renderercolumn - the columnpublic javax.swing.table.TableCellRenderer getColumnCellRenderer(int column)
column - the column
public void setColumnCellEditor(javax.swing.table.TableCellEditor editor,
int column)
editor - the cell editorcolumn - the columnpublic javax.swing.table.TableCellEditor getColumnCellEditor(int column)
column - the column
public void setColumnEditable(java.lang.Boolean editable,
int column)
editable - true to set the column editablecolumn - the columnpublic java.lang.Boolean getColumnEditable(int column)
column - the column
protected java.util.Hashtable createDefaultRowsAttributes()
public void setTableRowsAttributes(java.util.Hashtable attributesTable)
attributesTable - the cell attributes at each rowpublic java.util.Hashtable getTableRowsAttributes()
public void clearTableRowsAttributes()
public void setTableRowAttributes(TableCellAttributes rowAttributes,
int row)
rowAttributes - the cell attributes at specified rowpublic TableCellAttributes getTableRowAttributes(int row)
public void setRowTextSelectionColor(java.awt.Color color,
int row)
color - the selected text colorrow - the rowpublic java.awt.Color getRowTextSelectionColor(int row)
row - the row
public void setRowTextNonSelectionColor(java.awt.Color color,
int row)
color - the deselected text colorrow - the rowpublic java.awt.Color getRowTextNonSelectionColor(int row)
row - the row
public void setRowBackgroundSelectionColor(java.awt.Color color,
int row)
color - the selected background colorrow - the rowpublic java.awt.Color getRowBackgroundSelectionColor(int row)
row - the row
public void setRowBackgroundNonSelectionColor(java.awt.Color color,
int row)
color - the deselected background colorrow - the rowpublic java.awt.Color getRowBackgroundNonSelectionColor(int row)
row - the row
public void setRowBorderSelectionColor(java.awt.Color color,
int row)
color - the selected border colorrow - the rowpublic java.awt.Color getRowBorderSelectionColor(int row)
row - the row
public void setRowFocusCellBackground(java.awt.Color color,
int row)
color - the focus cell backgroundrow - the row indexpublic java.awt.Color getRowFocusCellBackground(int row)
row - the row index
public void setRowFocusCellForeground(java.awt.Color color,
int row)
color - the focus cell foregroundrow - the row indexpublic java.awt.Color getRowFocusCellForeground(int row)
row - the row index
public void setRowFont(java.awt.Font font,
int row)
font - the cell fontrow - the row indexpublic java.awt.Font getRowFont(int row)
row - the row index
public void setRowIcon(javax.swing.Icon icon,
int row)
icon - the iconrow - the rowpublic javax.swing.Icon getRowIcon(int row)
row - the row
public void setRowIconPath(java.lang.String path,
int row)
path - the icon pathrow - the rowpublic java.lang.String getRowIconPath(int row)
row - the row
public void setRowCellRenderer(javax.swing.table.TableCellRenderer renderer,
int row)
renderer - the cell rendererrow - the rowpublic javax.swing.table.TableCellRenderer getRowCellRenderer(int row)
row - the row
public void setRowCellEditor(javax.swing.table.TableCellEditor editor,
int row)
editor - the cell editorrow - the rowpublic javax.swing.table.TableCellEditor getRowCellEditor(int row)
row - the row
public void setRowEditable(java.lang.Boolean editable,
int row)
editable - true to set the row editablerow - the rowpublic java.lang.Boolean getRowEditable(int row)
row - the row
public java.awt.Color getCellBackgroundSelectionColor(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getCellBackgroundNonSelectionColor(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getCellTextSelectionColor(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getCellTextNonSelectionColor(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getCellBorderSelectionColor(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getFocusCellBackground(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Color getFocusCellForeground(int row,
int column)
row - the row indexcolumn - the column index
public java.awt.Font getCellFont(int row,
int column)
row - the row indexcolumn - the column index
public javax.swing.Icon getCellIcon(int row,
int column)
row - the row indexcolumn - the column index
public java.lang.String getCellIconPath(int row,
int column)
row - the row indexcolumn - the column index
public void addRowSelectionListener(javax.swing.event.ListSelectionListener l)
public void removeRowSelectionListener(javax.swing.event.ListSelectionListener l)
public void setSelectedColumn(int n)
n - the column index to be selectedpublic void setSelectedColumns(int[] nArray)
nArray - the column indexes to be selectedpublic void setSelectedRow(int n)
n - the row index to be selectedpublic void setSelectedRows(int[] nArray)
nArray - the row indexes to be selectedpublic int getSelectionMode()
public void setColumnNames(java.util.Vector columnNames)
columnNames - the vector of column names.
If null, set the data model to zero columnspublic java.util.Vector getColumnNames()
public void setColumnName(java.lang.String name,
int column)
name - the name of the column at position column
in the view where the first column is column 0column - the column in the view being queriedpublic void setData(java.util.Vector dataVector)
dataVector - the new data vectorpublic java.util.Vector getData()
public void setAddRowOnEnterKey(boolean b)
b - true, if enter key stroke is enablepublic boolean isAddRowOnEnterKey()
public void setRemoveRowOnDeleteKey(boolean b)
b - true, if delete key stroke is enablepublic boolean isRemoveRowOnDeleteKey()
public void setInsertRowOnInsertKey(boolean b)
b - true, if insert key stroke is enablepublic boolean isInsertRowOnInsertKey()
public void setSortColumnOnClick(boolean b)
b - true, if column data is sorted by clicking the column headerpublic boolean isSortColumnOnClick()
public void setSearchMode(int n)
n - an integer specifying the type of searching that are permissiblepublic int getSearchMode()
public void setManagingFocus(boolean b)
b - true, to indicate that the focus is being managedpublic java.lang.Object[] getColumnData(int index)
index - the index of the column
public java.lang.Object[] getRowData(int index)
index - the index of the row
public void sortColumn(int index)
index - the column index to be sorted
public void sortColumn(int index,
boolean flag)
index - the column index to be sortedflag - true if ascending sort is appliedpublic void sortColumns(int[] indices)
indices - an array of the column indices to be sorted
public void sortColumns(int[] indices,
boolean[] flags)
indices - an array of the column indices to be sortedflags - an array of the ordering criteria, true if ascending
protected java.lang.Object getSearchValueAt(int row,
int column)
public TableCell searchTableCell(java.lang.String sCell,
int nSearchColumn,
int nCompareMode,
boolean bCaseSensitive)
public TableCell searchTableCell(java.lang.String sCell,
int nSearchColumn,
int nSearchMode,
int nCompareMode,
boolean bCaseSensitive)
sCell - the searched stringnSearchColumn - the column index of the searched cell, -1 if searching on all columnsnSearchMode - the searching mode to be usednCompareMode - the comparing mode to be usedbCaseSensitive - the case sensitivity of the searched string
public TableCell searchTableCell(java.lang.String sCell,
int[] nSearchColumns,
int nCompareMode,
boolean bCaseSensitive)
public TableCell searchTableCell(java.lang.String sCell,
int[] nSearchColumns,
int nSearchMode,
int nCompareMode,
boolean bCaseSensitive)
sCell - the searched stringnSearchColumns - the column indexes of the searched cell, null if searching on all columnsnSearchMode - the searching mode to be usednCompareMode - the comparing mode to be usedbCaseSensitive - the case sensitivity of the searched string
public TableCell searchTableCell(java.lang.Object value)
public TableCell searchTableCell(java.lang.Object value,
int nColumn)
value - a object of the table cell to be searchednColumn - a column index of the cell object, -1 if searching on all columns, default -1
public TableCell searchTableCell(java.lang.Object value,
int[] nColumns)
value - a object of the table cell to be searchednColumns - a column indexes of the cell object, null if searching on all columns
public void setSelectedTableCell(TableCell tableCell)
public TableCell getSelectedTableCell()
public void setSelectedCellObject(java.lang.Object value)
public void setSelectedCellObject(java.lang.Object value,
int nColumn)
value - a object of the table cell to be searchednColumn - a column index of the cell object, -1 if cell on any columns, default -1
public void setSelectedCellObject(java.lang.Object value,
int[] nColumns)
value - a object of the table cell to be searchednColumns - a column indexes of the cell object, null if cell on all columnspublic java.lang.Object getSelectedCellObject()
public void setColumnWidth(int width)
public void setColumnWidth(int column,
int width)
public boolean editTableCell(TableCell tableCell)
public boolean editTableCell(TableCell tableCell,
java.util.EventObject e)
tableCell - the table cell to be editede - an event to pass into shouldSelectCell, default null
public boolean isCellSelected(TableCell tableCell)
tableCell - the TableCell
public TableCell cellAtPoint(java.awt.Point point)
point - the location of interest
public void selectColumnCells(int column)
column - the column indexpublic boolean isColumnCellsSelected(int column)
column - the column index
public void selectRowCells(int row)
row - the row indexpublic boolean isRowCellsSelected(int row)
row - the row index
public void scrollColumnToVisible(int column)
column - the column indexpublic void scrollRowToVisible(int row)
row - the row index
public void scrollCellToVisible(int row,
int column)
row - the row indexcolumn - the column indexpublic void scrollCellToVisible(TableCell tableCell)
tableCell - the table cell to be visiblepublic int getVisibleFirstColumn()
public int getVisibleLastColumn()
public int getVisibleFirstRow()
public int getVisibleLastRow()
public static java.lang.Object[] convertToArray(java.util.Vector theVector)
theVector - the vector to be converted
public static java.util.Vector convertToVector(java.lang.Object[] anArray)
anArray - the array to be converted
public static java.lang.Object[][] convertAttributesTableToArray(java.util.Hashtable attributesTable)
attributesTable - the Hashtable containing the cell attributes
public static java.util.Hashtable convertAttributesArrayToTable(java.lang.Object[][] attributesArray)
attributesArray - the Object array containing the cell attributes
public void setColumnMargin(int n)
n - the new margin width, in pixelspublic int getColumnMargin()
public void addColumnSelectionListener(javax.swing.event.ListSelectionListener l)
public void removeColumnSelectionListener(javax.swing.event.ListSelectionListener l)
public void addColumnModelListener(javax.swing.event.TableColumnModelListener l)
l - the TableColumnModelListenerpublic void removeColumnModelListener(javax.swing.event.TableColumnModelListener l)
l - the TableColumnModelListener
public void insertColumn(javax.swing.table.TableColumn aColumn,
int column)
To insert a column to this JFCTable to display the modelColumn'th column of data in the model with a given width, cellRenderer, and cellEditor you can use:
insertColumn(new TableColumn(modelColumn, width, cellRenderer, cellEditor));[Any of the TableColumn constructors can be used instead of this one.] The model column number is stored inside the TableColumn and is used during rendering and editing to locate the appropriates data values in the model. The model column number does not change when columns are reordered in the view.
aColumn - the TableColumn to be insertedcolumn - the TableColumn position in the array of columnspublic java.util.Enumeration getColumns()
public javax.swing.table.TableColumn getColumn(int column)
column - the index of the column desiredpublic int getColumnIndex(java.lang.Object identifier)
identifier - the identifier object
public void setAdjustColumnOnClick(boolean b)
b - true if the column can be adjustablepublic boolean isAdjustColumnOnClick()
public void setColumnReorderingAllowed(boolean b)
b - true if the table view should allow reordering; otherwise falsepublic boolean isColumnReorderingAllowed()
public void setColumnResizingAllowed(boolean b)
b - true if table view should allow resizingpublic boolean isColumnResizingAllowed()
public void setColumnHeaderBackground(java.awt.Color color)
color - the background color of the column headerpublic java.awt.Color getColumnHeaderBackground()
public void setColumnHeaderForeground(java.awt.Color color)
color - the foreground color of the column headerpublic java.awt.Color getColumnHeaderForeground()
public void setColumnHeaderFont(java.awt.Font font)
font - the font of the column headerpublic java.awt.Font getColumnHeaderFont()
public void setColumnHeaderHeight(int n)
n - the height of the column headerpublic int getColumnHeaderHeight()
public void setColumnHeaderVisible(boolean b)
b - true if the column header is visiblepublic boolean isColumnHeaderVisible()
public void setAdjustRowOnClick(boolean b)
b - true if the row can be adjustablepublic boolean isAdjustRowOnClick()
public void setRowResizingAllowed(boolean b)
b - true if table view should allow resizingpublic boolean isRowResizingAllowed()
public void setRowHeaderBackground(java.awt.Color color)
color - the background color of the row headerpublic java.awt.Color getRowHeaderBackground()
public void setRowHeaderForeground(java.awt.Color color)
color - the foreground color of the row headerpublic java.awt.Color getRowHeaderForeground()
public void setRowHeaderFont(java.awt.Font font)
font - the font of the row headerpublic java.awt.Font getRowHeaderFont()
public void setRowHeaderWidth(int n)
n - the height of the row headerpublic int getRowHeaderWidth()
public void setRowHeaderVisible(boolean b)
b - true if the row header is visiblepublic boolean isRowHeaderVisible()
public void setColumnCount(int n)
n - the new number of columns in the modelpublic void setRowCount(int n)
public void addColumnAboveSelection()
public void addColumn()
public void addColumn(java.lang.String columnName)
public void addColumn(java.lang.Object[] columnData)
public void addColumn(java.util.Vector columnData)
public void addColumn(java.lang.String columnName,
java.lang.Object[] columnData)
columnName - the identifier of the column being addedcolumnData - optional array of data for the column being added
public void addColumn(java.lang.String columnName,
java.util.Vector columnData)
columnName - the identifier of the column being addedcolumnData - optional data of the column being addedpublic void insertColumn(int column)
public void insertColumn(int column,
java.lang.Object[] columnData)
public void insertColumn(int column,
java.util.Vector columnData)
public void insertColumn(int column,
java.lang.String columnName)
public void insertColumn(int column,
java.lang.String columnName,
java.lang.Object[] columnData)
column - the index of the column being insertedcolumnName - the identifier of the column being insertedcolumnData - optional array of data for the column being inserted
public void insertColumn(int column,
java.lang.String columnName,
java.util.Vector columnData)
column - the index of the column being insertedcolumnName - the identifier of the column being insertedcolumnData - optional data of the column being insertedpublic void removeSelectedColumns()
public void removeColumn(java.lang.String columnName)
columnName - the column name of the column to be removedpublic void removeColumn(int column)
column - the column index of the column to be removedpublic void removeColumns(java.lang.String[] columnNames)
columnNames - the names of the columns to be removedpublic void removeColumns(int[] colIndices)
colIndices - the indexes of the columns to be removedpublic void addRowAboveSelection()
public void addRow()
public void addRow(java.lang.Object[] rowData)
rowData - optional array of data for the row being addedpublic void addRow(java.util.Vector rowData)
rowData - optional data of the row being addedpublic void insertRow(int row)
public void insertRow(int row,
java.lang.Object[] rowData)
row - the index of the row to be insertedrowData - optional array of data for the row being inserted
public void insertRow(int row,
java.util.Vector rowData)
row - the index of the row to be insertedrowData - optional data of the row being insertedpublic void removeSelectedRows()
public void removeRow(int row)
row - the index of the row to be removedpublic void removeRows(int[] indices)
indices - the indexes of the rows to be removed
public void moveRow(int startIndex,
int endIndex,
int toIndex)
startIndex - the starting row index to be movedendIndex - the ending row index to be movedtoIndex - the destination of the rows to be movedpublic void addTableModelListener(javax.swing.event.TableModelListener l)
l - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
l - the TableModelListenerprotected void initializeLocalVars()
protected void configureEnclosingScrollPane()
protected void unconfigureEnclosingScrollPane()
protected javax.swing.table.TableModel createDefaultDataModel()
protected javax.swing.table.TableColumnModel createDefaultColumnModel()
protected javax.swing.table.JTableHeader createDefaultTableHeader()
protected void createDefaultRenderers()
protected void createDefaultEditors()
public void createDefaultColumnsFromModel()
public void addColumn(javax.swing.table.TableColumn aColumn)
To add a column to this JFCTable to display the modelColumn'th column of data in the model with a given width, cellRenderer, and cellEditor you can use:
addColumn(new TableColumn(modelColumn, width, cellRenderer, cellEditor));[Any of the TableColumn constructors can be used instead of this one.] The model column number is stored inside the TableColumn and is used during rendering and editing to locate the appropriates data values in the model. The model column number does not change when columns are reordered in the view.
aColumn - the TableColumn to be addedpublic void removeColumn(javax.swing.table.TableColumn aColumn)
aColumn - the TableColumn to be removed
public void moveColumn(int columnIndex,
int newIndex)
public void setRowSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the interval
public void setColumnSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the interval
public void addRowSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the interval
public void addColumnSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the interval
public void removeRowSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the interval
public void removeColumnSelectionInterval(int index0,
int index1)
index0 - one end of the intervalindex1 - the other end of the intervalpublic void setColumnModel(javax.swing.table.TableColumnModel columnModel)
columnModel - the new data source for this tablepublic void setModel(javax.swing.table.TableModel model)
public void setTableHeader(javax.swing.table.JTableHeader tableColumnHeader)
tableColumnHeader - new tableColumnHeaderpublic void setAutoCreateColumnsFromModel(boolean b)
b - true if table should automatically create columnspublic void setAutoResizeMode(int n)
n - One of the following values:
AUTO_RESIZE_OFF,
AUTO_RESIZE_NEXT_COLUMN,
AUTO_RESIZE_SUBSEQUENT_COLUMNS,
AUTO_RESIZE_LAST_COLUMN,
AUTO_RESIZE_ALL_COLUMNSpublic void setColumnSelectionAllowed(boolean b)
b - true if this model will allow column selectionpublic void setGridColor(java.awt.Color color)
color - the new color of the grid linespublic void setRowHeight(int n)
n - new row height
public void setRowHeight(int row,
int rowHeight)
row - the row whose height is being changedrowHeight - new row height, in pixelspublic int getRowHeight(int row)
row - the row whose height is to be returned
public void setRowMargin(int n)
n - the number of pixels between cells in a rowpublic void setRowSelectionAllowed(boolean b)
b - true if this model will allow row selectionpublic void setSelectionMode(int n)
n - an integer specifying the type of selections that are permissiblepublic void setShowHorizontalLines(boolean b)
b - true if table view should draw horizontal linespublic void setShowVerticalLines(boolean b)
b - true if table view should draw vertical lines
public boolean isCellEditable(int row,
int column)
row - the row whose value is to be queriedcolumn - the column whose value is to be queried
public javax.swing.table.TableCellRenderer getCellRenderer(int row,
int column)
row - the row of the cell to rendercolumn - the column of the cell to render
public javax.swing.table.TableCellEditor getCellEditor(int row,
int column)
row - the row of the cell to editcolumn - the column of the cell to edit
public java.awt.Component prepareRenderer(javax.swing.table.TableCellRenderer renderer,
int row,
int column)
renderer - the TableCellRenderer to preparerow - the row of the cell to rendercolumn - the column of the cell to renderprotected void resizeAndRepaint()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged in interface javax.swing.event.ListSelectionListenere - the event receivedpublic void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
columnSelectionChanged in interface javax.swing.event.TableColumnModelListenere - the event receivedpublic void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenere - the tablemodel eventpublic void columnAdded(javax.swing.event.TableColumnModelEvent e)
columnAdded in interface javax.swing.event.TableColumnModelListener
public void changeSelection(int rowIndex,
int columnIndex,
boolean toggle,
boolean extend)
This implementation uses the following conventions:
rowIndex - affects the selection at rowcolumnIndex - affects the selection at columntoggle - see description aboveextend - if true, extend the current selectionpublic boolean isManagingFocus()
public void setLightweight(boolean b)
b - true if this component has a lightweight peer; false if it has a native peer or no peer.public boolean isLightweight()
public void setOpaque(boolean b)
b - true if this component paints every pixel within its bounds.public void setToolTipText(java.lang.String s)
public void setDoubleBuffered(boolean b)
b - if true, all the drawing from this component will be done
in an offscreen painting buffer. The offscreen painting buffer will
the be copied onto the screen.public void setBorder(javax.swing.border.Border b)
b - the border to be rendered for this componentpublic void setAutoscrolls(boolean b)
b - if true, this component will automatically scroll its contents when draggedpublic void setRequestFocusEnabled(boolean b)
b - if true the receiving component can obtain the focus by calling requestFocuspublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - the PropertyChangeListener to be removedpublic void setLayout(java.awt.LayoutManager mgr)
mgr - the specified layout managerpublic void repaint()
protected void processMouseEvent(java.awt.event.MouseEvent e)
e - the mouse eventprotected void processKeyEvent(java.awt.event.KeyEvent e)
e - the key event
public void setBounds(int x,
int y,
int width,
int height)
x - x-coordinate of this bean.y - y-coordinate of this bean.width - the new width of this bean.height - the new height of this bean.public void setForeground(java.awt.Color c)
public void setBackground(java.awt.Color c)
public void setFont(java.awt.Font f)
public void setVisible(boolean b)
b - flag representing visibility of bean.public void setEnabled(boolean b)
b - flag representing enability of bean.public void setLocale(java.util.Locale l)
l - current value of the locale.public java.util.Locale getLocale()
public void setCursor(java.awt.Cursor c)
c - current value of the cursor.
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.Externalizablejava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
ElegantJ Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||