ElegantJ Data Tables Java API Specification v1.1

com.elegantj.jfc.table
Class JFCTablePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.elegantj.jfc.table.JFCTablePanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
DataGrid

public class JFCTablePanel
extends javax.swing.JPanel
implements java.io.Externalizable

This class provides the scrollpane to the JFCTable. All the methods of the JFCTable are implemented by this, so user can use them.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
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
static int AUTO_RESIZE_ALL_COLUMNS
          During all resize operations, proportionately resize all columns.
static int AUTO_RESIZE_LAST_COLUMN
          During all resize operations, apply adjustments to the last column only.
static int AUTO_RESIZE_NEXT_COLUMN
          When a column is adjusted in the UI, adjust the next column the opposite way.
static int AUTO_RESIZE_OFF
          Do not adjust column widths automatically; use a scrollbar.
static int AUTO_RESIZE_SUBSEQUENT_COLUMNS
          During UI adjustment, change subsequent columns to preserve the total width; this is the default behavior.
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  JFCTable m_jfcTable
          Specifies a JFCTable object
static int MULTIPLE_INTERVAL_SELECTION
          Specifies a value for the selectionMode property: select one or more contiguous ranges of indices at a time.
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.
 
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
JFCTablePanel()
          Creates a JFCTablePanel with JFCTable as a view.
JFCTablePanel(int rows, int columns)
           
JFCTablePanel(java.lang.Object[][] rowData, java.lang.Object[] columnNames)
           
JFCTablePanel(javax.swing.table.TableModel dm)
           
JFCTablePanel(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm)
           
JFCTablePanel(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm, javax.swing.ListSelectionModel sm)
           
JFCTablePanel(java.util.Vector rowData, java.util.Vector 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 column)
          Appends aColumn to the end of the array of columns held by this JTable'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 addFocusListener(java.awt.event.FocusListener l)
          Adds the specified focus listener to receive focus events from this component when this component gains input focus.
 void addKeyListener(java.awt.event.KeyListener l)
          Adds the specified key listener to receive key events from this component.
 void addMouseListener(java.awt.event.MouseListener l)
          Adds the specified mouse listener to receive mouse events from this component.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component.
 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 clearSelection()
          Deselects all selected columns and rows
 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
 int columnAtPoint(java.awt.Point point)
          Returns the index of the column that point lies in, or -1 if the result is not in the range [0, getColumnCount()-1].
 void columnMarginChanged(javax.swing.event.ChangeEvent e)
          Invoked when a column is moved due to a margin change
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
          Invoked when a column is repositioned
 void columnRemoved(javax.swing.event.TableColumnModelEvent e)
          Invoked when a column is removed from the table column model
 void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
          Invoked when the selection model of the TableColumnModel is changed
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.
 int convertColumnIndexToModel(int viewColumnIndex)
          Maps the index of the column in the view at viewColumnIndex to the index of the column in the table model.
 int convertColumnIndexToView(int modelColumnIndex)
          Maps the index of the column in the table model at modelColumnIndex to the index of the column in the view
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.
 void createDefaultColumnsFromModel()
          Returns the default column model object, which is a DefaultTableColumnModel
protected  JFCTable createJFCTable()
          Creates the instance of JFCTable
protected  JFCTable createJFCTable(int rows, int columns)
           
protected  JFCTable createJFCTable(java.lang.Object[][] rowData, java.lang.Object[] columnNames)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm, javax.swing.ListSelectionModel sm)
           
protected  JFCTable createJFCTable(java.util.Vector rowData, java.util.Vector columnNames)
           
 boolean editCellAt(int row, int column)
          Programmatically starts editing the cell at row and column, if the cell is editable
 boolean editCellAt(int row, int column, java.util.EventObject e)
          Programmatically starts editing the cell at row and column, if the cell is editable
 void editingCanceled(javax.swing.event.ChangeEvent e)
          Invoked when editing is canceled
 void editingStopped(javax.swing.event.ChangeEvent e)
          Invoked when editing is finished
 boolean editTableCell(TableCell tableCell)
           
 boolean editTableCell(TableCell tableCell, java.util.EventObject e)
          Programmatically starts editing the table cell, if the cell is editable.
 boolean getAutoCreateColumnsFromModel()
          Determines whether the table will create default columns from the model.
 int getAutoResizeMode()
          Returns the auto resize mode of the table.
 boolean getAutoscrolls()
          Gets the autoscrolls property.
 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()
          Returns the cell editor
 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
 java.awt.Rectangle getCellRect(int row, int column, boolean includeSpacing)
          Returns a rectangle for the cell that lies at the intersection of 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
 boolean getCellSelectionEnabled()
          Returns true if both row and column selection models are enabled
 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
 javax.swing.table.TableColumn getColumn(java.lang.Object identifier)
          Returns the TableColumn object for the column in the table whose identifier is equal to identifier, when compared using equals
 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.Class getColumnClass(int column)
          Returns the type of the column appearing in the view at column position column
 int getColumnCount()
          Returns the number of columns in the column model
 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.
 javax.swing.table.TableColumnModel getColumnModel()
          Returns the TableColumnModel that contains all column information of this table
 java.lang.String getColumnName(int column)
          Returns the name of the column appearing in the view at column position column
 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.
 boolean getColumnSelectionAllowed()
          Returns true if columns can be selected
 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
 javax.swing.table.TableCellEditor getDefaultEditor(java.lang.Class className)
          Returns the editor to be used when no editor has been set in a TableColumn
 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
 javax.swing.table.TableCellRenderer getDefaultRenderer(java.lang.Class className)
          Returns the cell renderer to be used when no renderer has been set in a TableColumn
 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
 int getEditingColumn()
          Returns the index of the column that contains the cell currently being edited.
 int getEditingRow()
          Returns the index of the row that contains the cell currently being edited.
 java.awt.Component getEditorComponent()
          Returns the component that is handling the editing session
 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.awt.Color getGridColor()
          Returns the color used to draw grid lines
 java.awt.Dimension getIntercellSpacing()
          Returns the horizontal and vertical space between cells
 java.lang.String getLicenseKey()
          Gets the license key
 java.util.Locale getLocale()
          Returns the value of locale.
 javax.swing.table.TableModel getModel()
          Returns the TableModel that provides the data displayed by this JTable
 TablePopupMenu getPopupMenu()
          Returns the TablePopupMenu used by JFCTable.
 java.awt.Dimension getPreferredScrollableViewportSize()
          Returns the preferred size of the viewport for this table
 java.awt.Dimension getPreferredSize()
          Gets the preferred size of this component.
 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
 int getRowCount()
          Returns the number of rows in this table's model.
 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()
          Returns the height of a table row, in pixels
 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
 int getRowMargin()
          Gets the amount of empty space, in pixels, between cells
 boolean getRowSelectionAllowed()
          Returns true if rows can be selected
 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 getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
          Returns visibleRect.height or visibleRect.width, depending on this table's orientation
 boolean getScrollableTracksViewportHeight()
          Returns false to indicate that the height of the viewport does not determine the height of the table
 boolean getScrollableTracksViewportWidth()
          Returns false to indicate that the width of the viewport does not determine the width of the table
 int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
          Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation)
 int getSearchMode()
          Gets the table's search mode
 TableSearchPanel getSearchPanel()
          Returns the search panel which is TableSearchPanel object
 java.awt.Color getSearchPanelBackground()
          Gets the search panel background color.
 java.awt.Font getSearchPanelFont()
          Sets the search panel font.
 java.awt.Color getSearchPanelForeground()
          Gets the search panel foreground color.
 int getSearchPanelPlacement()
          Gets the search panel placement
 java.lang.Object getSelectedCellObject()
          Returns the object of the selected table cell
 int getSelectedColumn()
          Returns the index of the first selected column, -1 if no column is selected
 int getSelectedColumnCount()
          Returns the number of selected columns.
 int[] getSelectedColumns()
          Returns the indices of all selected columns
 int getSelectedRow()
          Returns the index of the first selected row, -1 if no row is selected.
 int getSelectedRowCount()
          Returns the number of selected rows.
 int[] getSelectedRows()
          Returns the indices of all selected rows
 TableCell getSelectedTableCell()
          Gets the selected table cell
 java.awt.Color getSelectionBackground()
          Returns the background color for selected cells
 java.awt.Color getSelectionForeground()
          Returns the foreground color for selected cells
 int getSelectionMode()
          Gets the current table selection mode
 javax.swing.ListSelectionModel getSelectionModel()
          Returns the ListSelectionModel that is used to maintain row selection state
 boolean getShowHorizontalLines()
          Returns true if the table draws horizontal lines between cells, false if it doesn't
 boolean getShowVerticalLines()
          Returns true if the table draws vertical lines between cells, false if it doesn't.
 JFCTable getTable()
          Returns the table which is JFCTable object
 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
 javax.swing.table.JTableHeader getTableHeader()
          Returns the tableHeader used by this JTable
 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
 java.lang.Object getValueAt(int row, int column)
          Returns the cell value at row and column
 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
 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(int row, int column)
          Returns true if the cell at the specified position is selected
 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 isColumnSelected(int column)
          Returns true if the column at the specified index is selected
 boolean isEditing()
          Returns true if a cell is being edited
 boolean isFocusTraversable()
          We override this method, whose implementation in JComponent returns false, to return true
 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 isRowSelected(int row)
          Returns true if the row at the specified index is selected
 boolean isSearchPanelVisible()
          Gets the visibility of the search panel
 boolean isSortColumnOnClick()
          Gets the enability to sort the column data by clicking the column header
 void moveColumn(int column, int targetColumn)
          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
protected  java.lang.String paramString()
          Returns a string representation of this table.
 java.awt.Component prepareEditor(javax.swing.table.TableCellEditor editor, int row, int column)
          Prepares the editor by querying the data model for the value and selection state of the cell at row, column
 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
 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 JTable's array of columns
 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 removeEditor()
          Discards the editor object and frees the real estate it used for cell rendering
 void removeFocusListener(java.awt.event.FocusListener l)
          Removes the specified focus listener so that it no longer receives focus events from this component.
 void removeKeyListener(java.awt.event.KeyListener l)
          Removes the specified key listener so that it no longer receives key events from this component.
 void removeMouseListener(java.awt.event.MouseListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this component.
 void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
          Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
 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
 int rowAtPoint(java.awt.Point point)
          Returns the index of the row that point lies in, or -1 if the result is not in the range [0, getRowCount()-1].
 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 returns null, if not found
 TableCell searchTableCell(java.lang.Object value, int[] nColumns)
          Searches the table cell by given object at one of the specified column indexes returns null, if not found
 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 selectAll()
          Selects all rows, columns, and cells in the table
 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 nMode)
          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 setCellEditor(javax.swing.table.TableCellEditor anEditor)
          Sets the cellEditor variable
 void setCellSelectionEnabled(boolean b)
          Sets whether this table allows both a column selection and a row selection to exist simultaneously
 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 setDefaultEditor(java.lang.Class columnClass, javax.swing.table.TableCellEditor editor)
          Sets a default cell editor to be used if no editor has been set in a TableColumn
 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 setDefaultRenderer(java.lang.Class columnClass, javax.swing.table.TableCellRenderer renderer)
          Sets a default cell renderer to be used if no renderer has been set in a TableColumn
 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 setEditingColumn(int nIndex)
          Sets the editingColumn variable
 void setEditingRow(int nIndex)
          Sets the editingRow variable
 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 to gridColor and redisplays
 void setInsertRowOnInsertKey(boolean b)
          Sets the insert key stroke's enability to insert the row in the data model
 void setIntercellSpacing(java.awt.Dimension d)
          Sets the rowMargin and the columnMargin -- the height and width of the space between cells -- to intercellSpacing
 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 dataModel)
          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 setPreferredScrollableViewportSize(java.awt.Dimension size)
           
 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 nHeight)
          Sets the height, in pixels, of all cells to rowHeight, 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 nMargin)
          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 bAllow)
          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 setSearchPanelBackground(java.awt.Color c)
          Sets the search panel background color.
 void setSearchPanelFont(java.awt.Font f)
          Sets the search panel font.
 void setSearchPanelForeground(java.awt.Color c)
          Sets the search panel foreground color.
 void setSearchPanelPlacement(int n)
          Sets the search panel placement
 void setSearchPanelVisible(boolean b)
          Sets the visibility of the search panel
 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 setSelectionBackground(java.awt.Color c)
          Sets the background color for selected cells
 void setSelectionForeground(java.awt.Color c)
          Sets the foreground color for selected cells
 void setSelectionMode(int selectionMode)
          Sets the table's selection mode to allow only single selections, a single contiguous interval, or multiple intervals
 void setSelectionModel(javax.swing.ListSelectionModel newModel)
          Sets the row selection model for this table to newModel and registers for listener notifications from the new selection model
 void setShowGrid(boolean showGrid)
          Sets whether the table draws grid lines around cells
 void setShowHorizontalLines(boolean bShow)
          Sets whether the table draws horizontal lines between cells
 void setShowVerticalLines(boolean bShow)
          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 tableHeader)
          Sets the tableHeader working with this JTable 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 setValueAt(java.lang.Object aValue, int row, int column)
          Sets the value for the cell in the table model at row and column
 void setVisible(boolean b)
          sets Visiblity.
 void sizeColumnsToFit(boolean lastColumnOnly)
          Resizes the table columns to fit the available space
 void sizeColumnsToFit(int resizingColumn)
          Resizes one or more of the columns in the table so that the total width of all of this JTable's columns is equal to the width of the table
 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
 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.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, 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, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, 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, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, 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, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, repaint, 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

SINGLE_SELECTION

public static final int SINGLE_SELECTION
Specifies a value for the selectionMode property: select one list index at a time.

See Also:
Constant Field Values

SINGLE_INTERVAL_SELECTION

public static final int SINGLE_INTERVAL_SELECTION
Specifies a value for the selectionMode property: select one contiguous range of indices at a time.

See Also:
Constant Field Values

MULTIPLE_INTERVAL_SELECTION

public static final int MULTIPLE_INTERVAL_SELECTION
Specifies a value for the selectionMode property: select one or more contiguous ranges of indices at a time.

See Also:
Constant Field Values

AUTO_RESIZE_ALL_COLUMNS

public static final int AUTO_RESIZE_ALL_COLUMNS
During all resize operations, proportionately resize all columns.

See Also:
Constant Field Values

AUTO_RESIZE_LAST_COLUMN

public static final int AUTO_RESIZE_LAST_COLUMN
During all resize operations, apply adjustments to the last column only.

See Also:
Constant Field Values

AUTO_RESIZE_NEXT_COLUMN

public static final int AUTO_RESIZE_NEXT_COLUMN
When a column is adjusted in the UI, adjust the next column the opposite way.

See Also:
Constant Field Values

AUTO_RESIZE_SUBSEQUENT_COLUMNS

public static final int AUTO_RESIZE_SUBSEQUENT_COLUMNS
During UI adjustment, change subsequent columns to preserve the total width; this is the default behavior.

See Also:
Constant Field Values

AUTO_RESIZE_OFF

public static final int AUTO_RESIZE_OFF
Do not adjust column widths automatically; use a scrollbar.

See Also:
Constant Field Values

SEARCH_FROM_FIRST_CELL

public static final int SEARCH_FROM_FIRST_CELL
Specifies the search mode as search downwards

See Also:
Constant Field Values

SEARCH_FROM_LAST_CELL

public static final int SEARCH_FROM_LAST_CELL
Specifies the search mode as search upwards

See Also:
Constant Field Values

SEARCH_FROM_SELECTED_CELL_TO_DOWN

public static final int SEARCH_FROM_SELECTED_CELL_TO_DOWN
Specifies the search mode as search downwards from last selected cell

See Also:
Constant Field Values

SEARCH_FROM_SELECTED_CELL_TO_UP

public static final int SEARCH_FROM_SELECTED_CELL_TO_UP
Specifies the search mode as search upwards from last selected cell

See Also:
Constant Field Values

COMPARE_STARTS_WITH

public static final int COMPARE_STARTS_WITH
Specifies the compare mode as compare the cell which starts with specified string

See Also:
Constant Field Values

COMPARE_ENDS_WITH

public static final int COMPARE_ENDS_WITH
Specifies the compare mode as compare the cell which ends with specified string

See Also:
Constant Field Values

COMPARE_CONTAINS

public static final int COMPARE_CONTAINS
Specifies the compare mode as compare the cell which contains with specified string

See Also:
Constant Field Values

COMPARE_EQUALS

public static final int COMPARE_EQUALS
Specifies the compare mode as compare the cell which equals to string

See Also:
Constant Field Values

m_jfcTable

protected transient JFCTable m_jfcTable
Specifies a JFCTable object

Constructor Detail

JFCTablePanel

public JFCTablePanel()
Creates a JFCTablePanel with JFCTable as a view.


JFCTablePanel

public JFCTablePanel(javax.swing.table.TableModel dm)

JFCTablePanel

public JFCTablePanel(javax.swing.table.TableModel dm,
                     javax.swing.table.TableColumnModel cm)

JFCTablePanel

public JFCTablePanel(javax.swing.table.TableModel dm,
                     javax.swing.table.TableColumnModel cm,
                     javax.swing.ListSelectionModel sm)

JFCTablePanel

public JFCTablePanel(int rows,
                     int columns)

JFCTablePanel

public JFCTablePanel(java.lang.Object[][] rowData,
                     java.lang.Object[] columnNames)

JFCTablePanel

public JFCTablePanel(java.util.Vector rowData,
                     java.util.Vector columnNames)
Method Detail

createJFCTable

protected JFCTable createJFCTable()
Creates the instance of JFCTable


createJFCTable

protected JFCTable createJFCTable(int rows,
                                  int columns)

createJFCTable

protected JFCTable createJFCTable(java.lang.Object[][] rowData,
                                  java.lang.Object[] columnNames)

createJFCTable

protected JFCTable createJFCTable(java.util.Vector rowData,
                                  java.util.Vector columnNames)

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm)

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
                                  javax.swing.table.TableColumnModel cm)

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
                                  javax.swing.table.TableColumnModel cm,
                                  javax.swing.ListSelectionModel sm)

getTable

public JFCTable getTable()
Returns the table which is JFCTable object

Returns:
the JFCTable

getSearchPanel

public TableSearchPanel getSearchPanel()
Returns the search panel which is TableSearchPanel object

Returns:
the TableSearchPanel

setSearchPanelPlacement

public void setSearchPanelPlacement(int n)
Sets the search panel placement

Parameters:
n - one of the constants : SwingConstants.TOP, SwingConstants.LEFT, SwingConstants.BOTTOM, SwingConstants.RIGHT

getSearchPanelPlacement

public int getSearchPanelPlacement()
Gets the search panel placement

Returns:
the search panel placement

setSearchPanelVisible

public void setSearchPanelVisible(boolean b)
Sets the visibility of the search panel

Parameters:
b - the visibility of the search panel

isSearchPanelVisible

public boolean isSearchPanelVisible()
Gets the visibility of the search panel

Returns:
the visibility of the search panel

setSearchPanelForeground

public void setSearchPanelForeground(java.awt.Color c)
Sets the search panel foreground color.

Parameters:
c - the search panel foreground color.

getSearchPanelForeground

public java.awt.Color getSearchPanelForeground()
Gets the search panel foreground color.

Returns:
the search panel foreground color.

setSearchPanelBackground

public void setSearchPanelBackground(java.awt.Color c)
Sets the search panel background color.

Parameters:
c - the search panel background color.

getSearchPanelBackground

public java.awt.Color getSearchPanelBackground()
Gets the search panel background color.

Returns:
the search panel background color.

setSearchPanelFont

public void setSearchPanelFont(java.awt.Font f)
Sets the search panel font.


getSearchPanelFont

public java.awt.Font getSearchPanelFont()
Sets the search panel font.


setLicenseKey

public void setLicenseKey(java.lang.String key)
Sets the license key


getLicenseKey

public java.lang.String getLicenseKey()
Gets the license key


setTableRowHeader

public void setTableRowHeader(JTableRowHeader tableRowHeader)
Sets the TableRowHeader working with JFCTable to newHeader. It is legal to have a null TableRowHeader.


getTableRowHeader

public JTableRowHeader getTableRowHeader()
Returns the TableRowHeader used by JFCTable.


setPopupMenu

public void setPopupMenu(TablePopupMenu popupMenu)
Sets the TablePopupMenu working with JFCTable to newHeader. It is legal to have a null TablePopupMenu.


getPopupMenu

public TablePopupMenu getPopupMenu()
Returns the TablePopupMenu used by JFCTable.


setPopupVisible

public void setPopupVisible(boolean b)
Sets the popup menu visibility


isPopupVisible

public boolean isPopupVisible()
Gets the popup menu visibility


setDefaultTableAttributes

public 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.


getDefaultTableAttributes

public TableCellAttributes getDefaultTableAttributes()
Gets the default table cell attributes for each cell in the table,


setDefaultTextSelectionColor

public void setDefaultTextSelectionColor(java.awt.Color color)
Sets the deafult selected text color


getDefaultTextSelectionColor

public java.awt.Color getDefaultTextSelectionColor()
Gets the default selected text color


setDefaultTextNonSelectionColor

public void setDefaultTextNonSelectionColor(java.awt.Color color)
Sets the default deselected text color


getDefaultTextNonSelectionColor

public java.awt.Color getDefaultTextNonSelectionColor()
Gets the default deselected text color


setDefaultBackgroundSelectionColor

public void setDefaultBackgroundSelectionColor(java.awt.Color color)
Sets the default selected background color


getDefaultBackgroundSelectionColor

public java.awt.Color getDefaultBackgroundSelectionColor()
Gets the default selected background color


setDefaultBackgroundNonSelectionColor

public void setDefaultBackgroundNonSelectionColor(java.awt.Color color)
Sets the default deselected background color


getDefaultBackgroundNonSelectionColor

public java.awt.Color getDefaultBackgroundNonSelectionColor()
Gets the default deselected background color


setDefaultBorderSelectionColor

public void setDefaultBorderSelectionColor(java.awt.Color color)
Sets the default selected border color


getDefaultBorderSelectionColor

public java.awt.Color getDefaultBorderSelectionColor()
Gets the default selected border color


setDefaultFocusCellBackground

public void setDefaultFocusCellBackground(java.awt.Color color)
Sets the default focus cell background


getDefaultFocusCellBackground

public java.awt.Color getDefaultFocusCellBackground()
Gets the default focus cell background


setDefaultFocusCellForeground

public void setDefaultFocusCellForeground(java.awt.Color color)
Sets the default focus cell foreground


getDefaultFocusCellForeground

public java.awt.Color getDefaultFocusCellForeground()
Gets the default focus cell foreground


setDefaultFont

public void setDefaultFont(java.awt.Font font)
Sets the default cell font


getDefaultFont

public java.awt.Font getDefaultFont()
Gets the default cell font


setDefaultIcon

public void setDefaultIcon(javax.swing.Icon icon)
Sets default the icon


getDefaultIcon

public javax.swing.Icon getDefaultIcon()
Gets the default icon


setDefaultIconPath

public void setDefaultIconPath(java.lang.String path)
Sets the default icon path


getDefaultIconPath

public java.lang.String getDefaultIconPath()
Gets the default icon path


setDefaultCellRenderer

public void setDefaultCellRenderer(javax.swing.table.TableCellRenderer renderer)
Sets the default cell renderer


getDefaultCellRenderer

public javax.swing.table.TableCellRenderer getDefaultCellRenderer()
Gets the default cell renderer


setDefaultCellEditor

public void setDefaultCellEditor(javax.swing.table.TableCellEditor editor)
Sets the default cell editor


getDefaultCellEditor

public javax.swing.table.TableCellEditor getDefaultCellEditor()
Gets the default cell editor


setDefaultEditable

public void setDefaultEditable(java.lang.Boolean editable)
Sets the default cell editable


getDefaultEditable

public java.lang.Boolean getDefaultEditable()
Gets the default cell editable


setTableColumnsAttributes

public 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.


getTableColumnsAttributes

public java.util.Hashtable getTableColumnsAttributes()
Gets the cell attributes at each column of the table


clearTableColumnsAttributes

public void clearTableColumnsAttributes()
Clears the cell attributes at each column.


setTableColumnAttributes

public void setTableColumnAttributes(TableCellAttributes columnAttributes,
                                     int column)
Sets the cell attributes at specified column of the table


getTableColumnAttributes

public TableCellAttributes getTableColumnAttributes(int column)
Gets the cell attributes at specified column of the table


setColumnTextSelectionColor

public void setColumnTextSelectionColor(java.awt.Color color,
                                        int column)
Sets the selected text color at column


getColumnTextSelectionColor

public java.awt.Color getColumnTextSelectionColor(int column)
Gets the selected text color at column


setColumnTextNonSelectionColor

public void setColumnTextNonSelectionColor(java.awt.Color color,
                                           int column)
Sets the deselected text color at column


getColumnTextNonSelectionColor

public java.awt.Color getColumnTextNonSelectionColor(int column)
Gets the deselected text color at column


setColumnBackgroundSelectionColor

public void setColumnBackgroundSelectionColor(java.awt.Color color,
                                              int column)
Sets the selected background color at column


getColumnBackgroundSelectionColor

public java.awt.Color getColumnBackgroundSelectionColor(int column)
Gets the selected background color at column


setColumnBackgroundNonSelectionColor

public void setColumnBackgroundNonSelectionColor(java.awt.Color color,
                                                 int column)
Sets the deselected background color at column


getColumnBackgroundNonSelectionColor

public java.awt.Color getColumnBackgroundNonSelectionColor(int column)
Gets the deselected background color at column


setColumnBorderSelectionColor

public void setColumnBorderSelectionColor(java.awt.Color color,
                                          int column)
Sets the selected border color at column


getColumnBorderSelectionColor

public java.awt.Color getColumnBorderSelectionColor(int column)
Gets the selected border color at column


setColumnFocusCellBackground

public void setColumnFocusCellBackground(java.awt.Color color,
                                         int column)
Sets the focus cell background at column


getColumnFocusCellBackground

public java.awt.Color getColumnFocusCellBackground(int column)
Gets the focus cell background at column


setColumnFocusCellForeground

public void setColumnFocusCellForeground(java.awt.Color color,
                                         int column)
Sets the focus cell foreground at column


getColumnFocusCellForeground

public java.awt.Color getColumnFocusCellForeground(int column)
Gets the focus cell foreground at column


setColumnFont

public void setColumnFont(java.awt.Font font,
                          int column)
Sets the cell font at column


getColumnFont

public java.awt.Font getColumnFont(int column)
Gets the cell font at column


setColumnIcon

public void setColumnIcon(javax.swing.Icon icon,
                          int column)
Sets the icon at column


getColumnIcon

public javax.swing.Icon getColumnIcon(int column)
Gets the icon at column


setColumnIconPath

public void setColumnIconPath(java.lang.String path,
                              int column)
Sets the icon path at column


getColumnIconPath

public java.lang.String getColumnIconPath(int column)
Gets the icon path at column


setColumnCellRenderer

public void setColumnCellRenderer(javax.swing.table.TableCellRenderer renderer,
                                  int column)
Sets the cell renderer at column


getColumnCellRenderer

public javax.swing.table.TableCellRenderer getColumnCellRenderer(int column)
Gets the cell renderer at column


setColumnCellEditor

public void setColumnCellEditor(javax.swing.table.TableCellEditor editor,
                                int column)
Sets the cell editor at column


getColumnCellEditor

public javax.swing.table.TableCellEditor getColumnCellEditor(int column)
Gets the cell editor at column


setColumnEditable

public void setColumnEditable(java.lang.Boolean editable,
                              int column)
Sets the cell editable at column


getColumnEditable

public java.lang.Boolean getColumnEditable(int column)
Gets the cell editable at column


setTableRowsAttributes

public void setTableRowsAttributes(java.util.Hashtable attributesTable)
Sets the cell attributes at each row of the table, It has the maximum priority. If default cell attributes, column cell attributes and row cell attributes are set, the row cell attributes are applied to the table cell.


getTableRowsAttributes

public java.util.Hashtable getTableRowsAttributes()
Gets the cell attributes at each row of the table


setTableRowAttributes

public void setTableRowAttributes(TableCellAttributes rowAttributes,
                                  int row)
Sets the cell attributes at specified row of the table


getTableRowAttributes

public TableCellAttributes getTableRowAttributes(int row)
Gets the cell attributes at specified row of the table


clearTableRowsAttributes

public void clearTableRowsAttributes()
Clears the cell attributes at each row.


setRowTextSelectionColor

public void setRowTextSelectionColor(java.awt.Color color,
                                     int row)
Sets the selected text color at row


getRowTextSelectionColor

public java.awt.Color getRowTextSelectionColor(int row)
Gets the selected text color at row


setRowTextNonSelectionColor

public void setRowTextNonSelectionColor(java.awt.Color color,
                                        int row)
Sets the deselected text color at row


getRowTextNonSelectionColor

public java.awt.Color getRowTextNonSelectionColor(int row)
Gets the deselected text color at row


setRowBackgroundSelectionColor

public void setRowBackgroundSelectionColor(java.awt.Color color,
                                           int row)
Sets the selected background color at row


getRowBackgroundSelectionColor

public java.awt.Color getRowBackgroundSelectionColor(int row)
Gets the selected background color at row


setRowBackgroundNonSelectionColor

public void setRowBackgroundNonSelectionColor(java.awt.Color color,
                                              int row)
Sets the deselected background color at row


getRowBackgroundNonSelectionColor

public java.awt.Color getRowBackgroundNonSelectionColor(int row)
Gets the deselected background color at row


setRowBorderSelectionColor

public void setRowBorderSelectionColor(java.awt.Color color,
                                       int row)
Sets the selected border color at row


getRowBorderSelectionColor

public java.awt.Color getRowBorderSelectionColor(int row)
Gets the selected border color at row


setRowFocusCellBackground

public void setRowFocusCellBackground(java.awt.Color color,
                                      int row)
Sets the focus cell background at row


getRowFocusCellBackground

public java.awt.Color getRowFocusCellBackground(int row)
Gets the focus cell background at row


setRowFocusCellForeground

public void setRowFocusCellForeground(java.awt.Color color,
                                      int row)
Sets the focus cell foreground at row


getRowFocusCellForeground

public java.awt.Color getRowFocusCellForeground(int row)
Gets the focus cell foreground at row


setRowFont

public void setRowFont(java.awt.Font font,
                       int row)
Sets the cell font at row


getRowFont

public java.awt.Font getRowFont(int row)
Gets the cell font at row


setRowIcon

public void setRowIcon(javax.swing.Icon icon,
                       int row)
Sets the icon at row


getRowIcon

public javax.swing.Icon getRowIcon(int row)
Gets the icon at row


setRowIconPath

public void setRowIconPath(java.lang.String path,
                           int row)
Sets the icon path at row


getRowIconPath

public java.lang.String getRowIconPath(int row)
Gets the icon path at row


setRowCellRenderer

public void setRowCellRenderer(javax.swing.table.TableCellRenderer renderer,
                               int row)
Sets the cell renderer at row


getRowCellRenderer

public javax.swing.table.TableCellRenderer getRowCellRenderer(int row)
Gets the cell renderer at row


setRowCellEditor

public void setRowCellEditor(javax.swing.table.TableCellEditor editor,
                             int row)
Sets the cell editor at row


getRowCellEditor

public javax.swing.table.TableCellEditor getRowCellEditor(int row)
Gets the cell editor at row


setRowEditable

public void setRowEditable(java.lang.Boolean editable,
                           int row)
Sets the cell editable at row


getRowEditable

public java.lang.Boolean getRowEditable(int row)
Gets the cell editable at row


getCellBackgroundSelectionColor

public java.awt.Color getCellBackgroundSelectionColor(int row,
                                                      int column)
Returns the cell background selection color at given row and column


getCellBackgroundNonSelectionColor

public java.awt.Color getCellBackgroundNonSelectionColor(int row,
                                                         int column)
Returns the cell background non selection color at given row and column


getCellTextSelectionColor

public java.awt.Color getCellTextSelectionColor(int row,
                                                int column)
Returns the cell text selection color at given row and column


getCellTextNonSelectionColor

public java.awt.Color getCellTextNonSelectionColor(int row,
                                                   int column)
Returns the cell text non selection color at given row and column


getCellBorderSelectionColor

public java.awt.Color getCellBorderSelectionColor(int row,
                                                  int column)
Returns the cell border selection color at given row and column


getFocusCellBackground

public java.awt.Color getFocusCellBackground(int row,
                                             int column)
Returns the cell focus background color at given row and column


getFocusCellForeground

public java.awt.Color getFocusCellForeground(int row,
                                             int column)
Returns the cell focus foreground color at given row and column


getCellFont

public java.awt.Font getCellFont(int row,
                                 int column)
Returns the cell font at given row and column


getCellIcon

public javax.swing.Icon getCellIcon(int row,
                                    int column)
Returns the cell icon at given row and column


getCellIconPath

public java.lang.String getCellIconPath(int row,
                                        int column)
Returns the cell icon path at given row and column


addRowSelectionListener

public 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.


removeRowSelectionListener

public 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.


setSelectedColumn

public void setSelectedColumn(int n)
Sets the column to be selected at given column index


setSelectedColumns

public void setSelectedColumns(int[] nArray)
Sets the columns to be selected at given indexes


setSelectedRow

public void setSelectedRow(int n)
Sets the row to be selected at given row index


setSelectedRows

public void setSelectedRows(int[] nArray)
Sets the rows to be selected at given row indexes


getSelectionMode

public int getSelectionMode()
Gets the current table selection mode


setColumnName

public void setColumnName(java.lang.String name,
                          int column)
Sets the name of the column appearing in the view at column position column.


setColumnNames

public void setColumnNames(java.util.Vector columnNames)
Sets the column names in the data model. If the number of columnNames is greater than the current number of columns, new columns are added to the end of each row in the data model. If the number of columnNames is less than the current number of columns, all the extra columns at the end of a row are discarded. If null, set the data model to zero columns


getColumnNames

public java.util.Vector getColumnNames()
Gets the column names in the data model


setData

public void setData(java.util.Vector dataVector)
Sets the current dataVector instance variable with the new Vector of rows, newData. Each row in dataVector is adjusted to match the number of columns in columnNames either by truncating the Vector if it is too long, or adding null values if it is too short.


getData

public java.util.Vector getData()
Gets the Vector of Vectors that contains the table's data values. The vectors contained in the outer vector are each a single row of values


setAddRowOnEnterKey

public void setAddRowOnEnterKey(boolean b)
Sets the enter key stroke's enability to add the row at last index in the data model


isAddRowOnEnterKey

public boolean isAddRowOnEnterKey()
Gets the enter key stroke's enability


setRemoveRowOnDeleteKey

public void setRemoveRowOnDeleteKey(boolean b)
Sets the delete key stroke's enability to remove the row from the data model


isRemoveRowOnDeleteKey

public boolean isRemoveRowOnDeleteKey()
Gets the delete key stroke's enability


setInsertRowOnInsertKey

public void setInsertRowOnInsertKey(boolean b)
Sets the insert key stroke's enability to insert the row in the data model


isInsertRowOnInsertKey

public boolean isInsertRowOnInsertKey()
Gets the insert key stroke's enability


setSortColumnOnClick

public void setSortColumnOnClick(boolean b)
Sets the enability to sort the column data by clicking the column header


isSortColumnOnClick

public boolean isSortColumnOnClick()
Gets the enability to sort the column data by clicking the column header


setSearchMode

public 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. It may one of the constants : SEARCH_FROM_FIRST_CELL, SEARCH_FROM_LAST_CELL, SEARCH_FROM_SELECTED_CELL_TO_UP, SEARCH_FROM_SELECTED_CELL_TO_DOWN


getSearchMode

public int getSearchMode()
Gets the table's search mode


setManagingFocus

public void setManagingFocus(boolean b)
Sets tab traversal on/off once focus gained.


getColumnData

public java.lang.Object[] getColumnData(int index)
Returns an array containing the column data at specified index


getRowData

public java.lang.Object[] getRowData(int index)
Returns an array containing the row data at specified index


sortColumn

public 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....)


sortColumn

public void sortColumn(int index,
                       boolean flag)
Sorts the column data at specified index


sortColumns

public 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....)


sortColumns

public void sortColumns(int[] indices,
                        boolean[] flags)
Sorts the columns data at specified indices


searchTableCell

public TableCell searchTableCell(java.lang.String sCell,
                                 int nSearchColumn,
                                 int nCompareMode,
                                 boolean bCaseSensitive)

searchTableCell

public 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.


searchTableCell

public TableCell searchTableCell(java.lang.String sCell,
                                 int[] nSearchColumns,
                                 int nCompareMode,
                                 boolean bCaseSensitive)

searchTableCell

public 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.


searchTableCell

public TableCell searchTableCell(java.lang.Object value)

searchTableCell

public TableCell searchTableCell(java.lang.Object value,
                                 int nColumn)
Searches the table cell by given object at specified column index returns null, if not found


searchTableCell

public TableCell searchTableCell(java.lang.Object value,
                                 int[] nColumns)
Searches the table cell by given object at one of the specified column indexes returns null, if not found


setSelectedTableCell

public void setSelectedTableCell(TableCell tableCell)
Sets the table cell to be selected


getSelectedTableCell

public TableCell getSelectedTableCell()
Gets the selected table cell


setSelectedCellObject

public void setSelectedCellObject(java.lang.Object value)

setSelectedCellObject

public void setSelectedCellObject(java.lang.Object value,
                                  int nColumn)
Sets the table cell to be selected with given object at specified column index


setSelectedCellObject

public 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


getSelectedCellObject

public java.lang.Object getSelectedCellObject()
Returns the object of the selected table cell


setColumnWidth

public void setColumnWidth(int width)

setColumnWidth

public void setColumnWidth(int column,
                           int width)

editTableCell

public boolean editTableCell(TableCell tableCell)

editTableCell

public boolean editTableCell(TableCell tableCell,
                             java.util.EventObject e)
Programmatically starts editing the table cell, if the cell is editable.


isCellSelected

public boolean isCellSelected(TableCell tableCell)
Returns true if the specified table cell is selected


cellAtPoint

public 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.


selectColumnCells

public void selectColumnCells(int column)
Selects the all column cells at specified column index


isColumnCellsSelected

public boolean isColumnCellsSelected(int column)
Returns true if the all column cells at the specified index is selected


selectRowCells

public void selectRowCells(int row)
Selects the all row cells at specified row index


isRowCellsSelected

public boolean isRowCellsSelected(int row)
Returns true if the all row cells at the specified index is selected


scrollColumnToVisible

public void scrollColumnToVisible(int column)
Scrolls the table to visible the column at specified column index.


scrollRowToVisible

public void scrollRowToVisible(int row)
Scrolls the table to visible the row at specified row index.


scrollCellToVisible

public void scrollCellToVisible(int row,
                                int column)
Scrolls the table to visible the cell at specified row and column.


scrollCellToVisible

public void scrollCellToVisible(TableCell tableCell)
Scrolls the table to visible the specified table cell.


getVisibleFirstColumn

public int getVisibleFirstColumn()
Returns the first visible column index


getVisibleLastColumn

public int getVisibleLastColumn()
Returns the last visible column index


getVisibleFirstRow

public int getVisibleFirstRow()
Returns the first visible row index


getVisibleLastRow

public int getVisibleLastRow()
Returns the last visible row index


convertToArray

public static java.lang.Object[] convertToArray(java.util.Vector theVector)
Returns an array that contains the same objects as the vector. Each of the vector elements which is vector type, are converted to an array.


convertToVector

public static java.util.Vector convertToVector(java.lang.Object[] anArray)
Returns a vector of vectors that contains the same objects as the array. Each of the array elements which is array type, are converted to a vector.


convertAttributesTableToArray

public static java.lang.Object[][] convertAttributesTableToArray(java.util.Hashtable attributesTable)
Converts the Hashtable contains the cell attributes into Object array.


convertAttributesArrayToTable

public static java.util.Hashtable convertAttributesArrayToTable(java.lang.Object[][] attributesArray)
Converts the Object array contains the cell attributes into Hashtable.


setColumnMargin

public void setColumnMargin(int n)
Sets the column margin for TableColumn.


getColumnMargin

public int getColumnMargin()
Returns the width margin for TableColumn.


addColumnSelectionListener

public 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.


removeColumnSelectionListener

public 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.


addColumnModelListener

public void addColumnModelListener(javax.swing.event.TableColumnModelListener l)
Adds a listener for table column model events.


removeColumnModelListener

public void removeColumnModelListener(javax.swing.event.TableColumnModelListener l)
Removes a listener for table column model events.


insertColumn

public 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. If the column name of aColumn is null, sets the column name of aColumn to the name returned by getModel().getColumnName().


getColumns

public java.util.Enumeration getColumns()
Returns an Enumeration of all the columns in the model.


getColumn

public javax.swing.table.TableColumn getColumn(int column)
Returns the TableColumn object for the column at column index


getColumnIndex

public 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. whose identifier is equal to identifier


setAdjustColumnOnClick

public void setAdjustColumnOnClick(boolean b)
Sets whether the column can be adjustable by clicking on it. A column is resized to it's maximum cell prefferred width.


isAdjustColumnOnClick

public boolean isAdjustColumnOnClick()
Gets whether the column can be adjustable by clicking on it.


setColumnReorderingAllowed

public void setColumnReorderingAllowed(boolean b)
Sets whether the user can drag column headers to reorder columns


isColumnReorderingAllowed

public boolean isColumnReorderingAllowed()
Gets whether the user is allowed to rearrange columns by dragging their column headers


setColumnResizingAllowed

public void setColumnResizingAllowed(boolean b)
Sets whether the user can resize columns by dragging between column headers.


isColumnResizingAllowed

public boolean isColumnResizingAllowed()
Gets whether the user is allowed to resize columns by dragging between their column headers


setColumnHeaderBackground

public void setColumnHeaderBackground(java.awt.Color color)
Sets the background color of the column header


getColumnHeaderBackground

public java.awt.Color getColumnHeaderBackground()
Gets the background color of the column header


setColumnHeaderForeground

public void setColumnHeaderForeground(java.awt.Color color)
Sets the foreground color of the column header


getColumnHeaderForeground

public java.awt.Color getColumnHeaderForeground()
Gets the foreground color of the column header


setColumnHeaderFont

public void setColumnHeaderFont(java.awt.Font font)
Sets the font of the column header


getColumnHeaderFont

public java.awt.Font getColumnHeaderFont()
Gets the font of the column header


setColumnHeaderHeight

public void setColumnHeaderHeight(int n)
Sets the column header height


getColumnHeaderHeight

public int getColumnHeaderHeight()
Gets the column header height


setColumnHeaderVisible

public void setColumnHeaderVisible(boolean b)
Sets the column header visibility


isColumnHeaderVisible

public boolean isColumnHeaderVisible()
Gets the column header visibility


setAdjustRowOnClick

public void setAdjustRowOnClick(boolean b)
Sets whether the row can be adjustable by clicking on it. A row is resized to it's maximum cell prefferred height.


isAdjustRowOnClick

public boolean isAdjustRowOnClick()
Gets whether the row can be adjustable by clicking on it.


setRowResizingAllowed

public void setRowResizingAllowed(boolean b)
Sets whether the user can resize rows by dragging between row headers.


isRowResizingAllowed

public boolean isRowResizingAllowed()
Gets whether the user is allowed to resize rows by dragging between their row headers


setRowHeaderBackground

public void setRowHeaderBackground(java.awt.Color color)
Sets the background color of the row header


getRowHeaderBackground

public java.awt.Color getRowHeaderBackground()
Gets the background color of the row header


setRowHeaderForeground

public void setRowHeaderForeground(java.awt.Color color)
Sets the foreground color of the row header


getRowHeaderForeground

public java.awt.Color getRowHeaderForeground()
Gets the foreground color of the row header


setRowHeaderFont

public void setRowHeaderFont(java.awt.Font font)
Sets the font of the row header


getRowHeaderFont

public java.awt.Font getRowHeaderFont()
Gets the font of the row header


setRowHeaderWidth

public void setRowHeaderWidth(int n)
Sets the row header height


getRowHeaderWidth

public int getRowHeaderWidth()
Gets the row header height


setRowHeaderVisible

public void setRowHeaderVisible(boolean b)
Sets the row header visibility


isRowHeaderVisible

public boolean isRowHeaderVisible()
Gets the row header visibility


setColumnCount

public void setColumnCount(int n)
Sets the number of columns in the model. If the new size is greater than the current size, new columns are added to the end of the model with null cell values. If the new size is less than the current size, all columns at index and greater are discarded.


setRowCount

public void setRowCount(int n)

addColumnAboveSelection

public void addColumnAboveSelection()
Adds a column to the model above the selected column, The new column will have the default identifier


addColumn

public void addColumn()

addColumn

public void addColumn(java.lang.String columnName)

addColumn

public void addColumn(java.lang.Object[] columnData)

addColumn

public void addColumn(java.util.Vector columnData)

addColumn

public void addColumn(java.lang.String columnName,
                      java.lang.Object[] columnData)
Adds a column to the model. The new column will have the identifier columnName. columnName is the optional identifier for the column. columnData is the optional array of data for the column. If it is not specified or null, the column is filled with null values


addColumn

public void addColumn(java.lang.String columnName,
                      java.util.Vector columnData)
Adds a column to the model. The new column will have the identifier columnName. columnName is the optional identifier for the column. If it not specified or null, the new column will have the default identifier. columnData is the optional vector of data for the column. If it is not specified or null, the column is filled with null values


insertColumn

public void insertColumn(int column)

insertColumn

public void insertColumn(int column,
                         java.lang.Object[] columnData)

insertColumn

public void insertColumn(int column,
                         java.util.Vector columnData)

insertColumn

public void insertColumn(int column,
                         java.lang.String columnName)

insertColumn

public void insertColumn(int column,
                         java.lang.String columnName,
                         java.lang.Object[] columnData)
Inserts a column to the model. The new column will have the identifier columnName. columnName is the optional identifier for the column. If it not specified or null, the new column will have the default identifier. columnData is the optional array of data for the column. If it is not specified or null, the column is filled with null values


insertColumn

public void insertColumn(int column,
                         java.lang.String columnName,
                         java.util.Vector columnData)
Inserts a column to the model. The new column will have the identifier columnName. columnName is the optional identifier for the column. If it not specified or null, the new column will have the default identifier. columnData is the optional vector of data for the column. If it is not specified or null, the column is filled with null values


removeSelectedColumns

public void removeSelectedColumns()
Removes the selected columns from the model


removeColumn

public void removeColumn(int column)
Removes the column at column index from the model


removeColumn

public void removeColumn(java.lang.String columnName)
Removes the column columnName from the model


removeColumns

public void removeColumns(int[] colIndices)
Removes the columns at specified column indexes from the model


removeColumns

public void removeColumns(java.lang.String[] columnNames)
Removes the columns with specified column names from the model


addRowAboveSelection

public void addRowAboveSelection()
Adds a row to the model above the selected row,


addRow

public void addRow()

addRow

public void addRow(java.lang.Object[] rowData)
Adds a row to the end of the model. The new row will contain null values unless rowData is specified


addRow

public void addRow(java.util.Vector rowData)
Adds a row to the end of the model. The new row will contain null values unless rowData is specified


insertRow

public void insertRow(int row)

insertRow

public void insertRow(int row,
                      java.lang.Object[] rowData)
Inserts a row at specified index in the model. The new row will contain null values unless rowData is specified


insertRow

public void insertRow(int row,
                      java.util.Vector rowData)
Inserts a row at specified index in the model. The new row will contain null values unless rowData is specified


removeSelectedRows

public void removeSelectedRows()
Removes the selected rows from the model.


removeRow

public void removeRow(int row)
Removes the row at specified index from the model


removeRows

public void removeRows(int[] indices)
Removes the rows at specified indexes from the model


moveRow

public void moveRow(int startIndex,
                    int endIndex,
                    int toIndex)
Moves one or more rows starting at startIndex to endIndex in the model to the toIndex


addTableModelListener

public 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


removeTableModelListener

public 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


addColumn

public void addColumn(javax.swing.table.TableColumn column)
Appends aColumn to the end of the array of columns held by this JTable's column model.


addColumnSelectionInterval

public void addColumnSelectionInterval(int index0,
                                       int index1)
Adds the columns from index0 to index1, inclusive, to the current selection


addRowSelectionInterval

public void addRowSelectionInterval(int index0,
                                    int index1)
Adds the rows from index0 to index1, inclusive, to the current selection


changeSelection

public 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


clearSelection

public void clearSelection()
Deselects all selected columns and rows


columnAdded

public void columnAdded(javax.swing.event.TableColumnModelEvent e)
Invoked when a column is added to the table column model


columnAtPoint

public int columnAtPoint(java.awt.Point point)
Returns the index of the column that point lies in, or -1 if the result is not in the range [0, getColumnCount()-1].


columnMarginChanged

public void columnMarginChanged(javax.swing.event.ChangeEvent e)
Invoked when a column is moved due to a margin change


columnMoved

public void columnMoved(javax.swing.event.TableColumnModelEvent e)
Invoked when a column is repositioned


columnRemoved

public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
Invoked when a column is removed from the table column model


columnSelectionChanged

public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Invoked when the selection model of the TableColumnModel is changed


convertColumnIndexToModel

public int convertColumnIndexToModel(int viewColumnIndex)
Maps the index of the column in the view at viewColumnIndex to the index of the column in the table model.


convertColumnIndexToView

public int convertColumnIndexToView(int modelColumnIndex)
Maps the index of the column in the table model at modelColumnIndex to the index of the column in the view


createDefaultColumnsFromModel

public void createDefaultColumnsFromModel()
Returns the default column model object, which is a DefaultTableColumnModel


editCellAt

public boolean editCellAt(int row,
                          int column)
Programmatically starts editing the cell at row and column, if the cell is editable


editCellAt

public boolean editCellAt(int row,
                          int column,
                          java.util.EventObject e)
Programmatically starts editing the cell at row and column, if the cell is editable


editingCanceled

public void editingCanceled(javax.swing.event.ChangeEvent e)
Invoked when editing is canceled


editingStopped

public void editingStopped(javax.swing.event.ChangeEvent e)
Invoked when editing is finished


getAutoCreateColumnsFromModel

public boolean getAutoCreateColumnsFromModel()
Determines whether the table will create default columns from the model.


getAutoResizeMode

public int getAutoResizeMode()
Returns the auto resize mode of the table.


getCellEditor

public javax.swing.table.TableCellEditor getCellEditor()
Returns the cell editor


getCellEditor

public javax.swing.table.TableCellEditor getCellEditor(int row,
                                                       int column)
Returns an appropriate editor for the cell specified by row and column.


getCellRect

public java.awt.Rectangle getCellRect(int row,
                                      int column,
                                      boolean includeSpacing)
Returns a rectangle for the cell that lies at the intersection of row and column.


getCellRenderer

public javax.swing.table.TableCellRenderer getCellRenderer(int row,
                                                           int column)
Returns an appropriate renderer for the cell specified by this row and column


getCellSelectionEnabled

public boolean getCellSelectionEnabled()
Returns true if both row and column selection models are enabled


getColumn

public javax.swing.table.TableColumn getColumn(java.lang.Object identifier)
Returns the TableColumn object for the column in the table whose identifier is equal to identifier, when compared using equals


getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the type of the column appearing in the view at column position column


getColumnCount

public int getColumnCount()
Returns the number of columns in the column model


getColumnModel

public javax.swing.table.TableColumnModel getColumnModel()
Returns the TableColumnModel that contains all column information of this table


getColumnName

public java.lang.String getColumnName(int column)
Returns the name of the column appearing in the view at column position column


getColumnSelectionAllowed

public boolean getColumnSelectionAllowed()
Returns true if columns can be selected


getDefaultEditor

public javax.swing.table.TableCellEditor getDefaultEditor(java.lang.Class className)
Returns the editor to be used when no editor has been set in a TableColumn


getDefaultRenderer

public javax.swing.table.TableCellRenderer getDefaultRenderer(java.lang.Class className)
Returns the cell renderer to be used when no renderer has been set in a TableColumn


getEditingColumn

public int getEditingColumn()
Returns the index of the column that contains the cell currently being edited.


getEditingRow

public int getEditingRow()
Returns the index of the row that contains the cell currently being edited.


getEditorComponent

public java.awt.Component getEditorComponent()
Returns the component that is handling the editing session


getGridColor

public java.awt.Color getGridColor()
Returns the color used to draw grid lines


getIntercellSpacing

public java.awt.Dimension getIntercellSpacing()
Returns the horizontal and vertical space between cells


getModel

public javax.swing.table.TableModel getModel()
Returns the TableModel that provides the data displayed by this JTable


getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()
Returns the preferred size of the viewport for this table


getRowCount

public int getRowCount()
Returns the number of rows in this table's model.


getRowHeight

public int getRowHeight()
Returns the height of a table row, in pixels


getRowHeight

public int getRowHeight(int row)
Returns the height, in pixels, of the cells in row


getRowMargin

public int getRowMargin()
Gets the amount of empty space, in pixels, between cells


getRowSelectionAllowed

public boolean getRowSelectionAllowed()
Returns true if rows can be selected


getScrollableBlockIncrement

public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
                                       int orientation,
                                       int direction)
Returns visibleRect.height or visibleRect.width, depending on this table's orientation


getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Returns false to indicate that the height of the viewport does not determine the height of the table


getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Returns false to indicate that the width of the viewport does not determine the width of the table


getScrollableUnitIncrement

public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                      int orientation,
                                      int direction)
Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation)


getSelectedColumn

public int getSelectedColumn()
Returns the index of the first selected column, -1 if no column is selected


getSelectedColumnCount

public int getSelectedColumnCount()
Returns the number of selected columns.


getSelectedColumns

public int[] getSelectedColumns()
Returns the indices of all selected columns


getSelectedRow

public int getSelectedRow()
Returns the index of the first selected row, -1 if no row is selected.


getSelectedRowCount

public int getSelectedRowCount()
Returns the number of selected rows.


getSelectedRows

public int[] getSelectedRows()
Returns the indices of all selected rows


getSelectionBackground

public java.awt.Color getSelectionBackground()
Returns the background color for selected cells


getSelectionForeground

public java.awt.Color getSelectionForeground()
Returns the foreground color for selected cells


getSelectionModel

public javax.swing.ListSelectionModel getSelectionModel()
Returns the ListSelectionModel that is used to maintain row selection state


getShowHorizontalLines

public boolean getShowHorizontalLines()
Returns true if the table draws horizontal lines between cells, false if it doesn't


getShowVerticalLines

public boolean getShowVerticalLines()
Returns true if the table draws vertical lines between cells, false if it doesn't.


getTableHeader

public javax.swing.table.JTableHeader getTableHeader()
Returns the tableHeader used by this JTable


getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns the cell value at row and column


isCellEditable

public boolean isCellEditable(int row,
                              int column)
Returns true if the cell at row and column is editable


isCellSelected

public boolean isCellSelected(int row,
                              int column)
Returns true if the cell at the specified position is selected


isColumnSelected

public boolean isColumnSelected(int column)
Returns true if the column at the specified index is selected


isEditing

public boolean isEditing()
Returns true if a cell is being edited


isFocusTraversable

public boolean isFocusTraversable()
We override this method, whose implementation in JComponent returns false, to return true


isRowSelected

public boolean isRowSelected(int row)
Returns true if the row at the specified index is selected


moveColumn

public void moveColumn(int column,
                       int targetColumn)
Moves the column column to the position currently occupied by the column targetColumn in the view


paramString

protected java.lang.String paramString()
Returns a string representation of this table.


prepareEditor

public java.awt.Component prepareEditor(javax.swing.table.TableCellEditor editor,
                                        int row,
                                        int column)
Prepares the editor by querying the data model for the value and selection state of the cell at row, column


prepareRenderer

public 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


removeColumn

public void removeColumn(javax.swing.table.TableColumn aColumn)
Removes aColumn from this JTable's array of columns


removeColumnSelectionInterval

public void removeColumnSelectionInterval(int index0,
                                          int index1)
Deselects the columns from index0 to index1, inclusive


removeEditor

public void removeEditor()
Discards the editor object and frees the real estate it used for cell rendering


removeRowSelectionInterval

public void removeRowSelectionInterval(int index0,
                                       int index1)
Deselects the rows from index0 to index1, inclusive


rowAtPoint

public int rowAtPoint(java.awt.Point point)
Returns the index of the row that point lies in, or -1 if the result is not in the range [0, getRowCount()-1].


selectAll

public void selectAll()
Selects all rows, columns, and cells in the table


setAutoCreateColumnsFromModel

public void setAutoCreateColumnsFromModel(boolean b)
Sets this table's autoCreateColumnsFromModel flag


setAutoResizeMode

public void setAutoResizeMode(int nMode)
Sets the table's auto resize mode when the table is resized


setCellEditor

public void setCellEditor(javax.swing.table.TableCellEditor anEditor)
Sets the cellEditor variable


setCellSelectionEnabled

public void setCellSelectionEnabled(boolean b)
Sets whether this table allows both a column selection and a row selection to exist simultaneously


setColumnModel

public 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


setColumnSelectionAllowed

public void setColumnSelectionAllowed(boolean b)
Sets whether the columns in this model can be selected


setColumnSelectionInterval

public void setColumnSelectionInterval(int index0,
                                       int index1)
Selects the columns from index0 to index1, inclusive


setDefaultEditor

public void setDefaultEditor(java.lang.Class columnClass,
                             javax.swing.table.TableCellEditor editor)
Sets a default cell editor to be used if no editor has been set in a TableColumn


setDefaultRenderer

public void setDefaultRenderer(java.lang.Class columnClass,
                               javax.swing.table.TableCellRenderer renderer)
Sets a default cell renderer to be used if no renderer has been set in a TableColumn


setEditingColumn

public void setEditingColumn(int nIndex)
Sets the editingColumn variable


setEditingRow

public void setEditingRow(int nIndex)
Sets the editingRow variable


setGridColor

public void setGridColor(java.awt.Color color)
Sets the color used to draw grid lines to gridColor and redisplays


setIntercellSpacing

public void setIntercellSpacing(java.awt.Dimension d)
Sets the rowMargin and the columnMargin -- the height and width of the space between cells -- to intercellSpacing


setModel

public void setModel(javax.swing.table.TableModel dataModel)
Sets the data model for this table to newModel and registers with it for listener notifications from the new data model


setPreferredScrollableViewportSize

public void setPreferredScrollableViewportSize(java.awt.Dimension size)

setRowHeight

public void setRowHeight(int nHeight)
Sets the height, in pixels, of all cells to rowHeight, revalidates, and repaints


setRowHeight

public void setRowHeight(int row,
                         int rowHeight)
Sets the height for row to rowHeight, revalidates, and repaints


setRowMargin

public void setRowMargin(int nMargin)
Sets the amount of empty space between cells in adjacent rows


setRowSelectionAllowed

public void setRowSelectionAllowed(boolean bAllow)
Sets whether the rows in this model can be selected


setRowSelectionInterval

public void setRowSelectionInterval(int index0,
                                    int index1)
Selects the rows from index0 to index1, inclusive


setSelectionBackground

public void setSelectionBackground(java.awt.Color c)
Sets the background color for selected cells


setSelectionForeground

public void setSelectionForeground(java.awt.Color c)
Sets the foreground color for selected cells


setSelectionMode

public void setSelectionMode(int selectionMode)
Sets the table's selection mode to allow only single selections, a single contiguous interval, or multiple intervals


setSelectionModel

public void setSelectionModel(javax.swing.ListSelectionModel newModel)
Sets the row selection model for this table to newModel and registers for listener notifications from the new selection model


setShowGrid

public void setShowGrid(boolean showGrid)
Sets whether the table draws grid lines around cells


setShowHorizontalLines

public void setShowHorizontalLines(boolean bShow)
Sets whether the table draws horizontal lines between cells


setShowVerticalLines

public void setShowVerticalLines(boolean bShow)
Sets whether the table draws vertical lines between cells


setTableHeader

public void setTableHeader(javax.swing.table.JTableHeader tableHeader)
Sets the tableHeader working with this JTable to newHeader


setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Sets the value for the cell in the table model at row and column


sizeColumnsToFit

public void sizeColumnsToFit(boolean lastColumnOnly)
Resizes the table columns to fit the available space


sizeColumnsToFit

public void sizeColumnsToFit(int resizingColumn)
Resizes one or more of the columns in the table so that the total width of all of this JTable's columns is equal to the width of the table


tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Invoked when this table's TableModel generates a TableModelEvent


valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Invoked when the row selection changes -- repaints to show the new selection


isManagingFocus

public boolean isManagingFocus()
Gets tab traversal on/off once focus gained.

Returns:
true, to indicate that the focus is being managed

getAutoscrolls

public boolean getAutoscrolls()
Gets the autoscrolls property.

Returns:
the value of the autoscrolls property

setLightweight

public void setLightweight(boolean b)
Sets whether this component has a lightweight peer, native peer or no peer.

Parameters:
b - true if this component has a lightweight peer; false if it has a native peer or no peer.

isLightweight

public boolean isLightweight()
Returns whether this component has a lightweight peer, native peer or no peer.

Returns:
true if this component has a lightweight peer; false if it has a native peer or no peer.

setOpaque

public void setOpaque(boolean b)
Sets whether this component paints every pixel within its bounds. or the component does not paint some or all of its pixels, allowing the underlying pixels to show through.

Parameters:
b - true if this component paints every pixel within its bounds.

setToolTipText

public void setToolTipText(java.lang.String s)
Sets the text to display in a tool tip. The text displays when the cursor lingers over the component.


setDoubleBuffered

public void setDoubleBuffered(boolean b)
Sets whether the receiving component should use a buffer to paint.

Parameters:
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.

setBorder

public void setBorder(javax.swing.border.Border b)
Sets the border of this component.

Parameters:
b - the border to be rendered for this component

setAutoscrolls

public void setAutoscrolls(boolean b)
Sets whether this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling

Parameters:
b - if true, this component will automatically scroll its contents when dragged

setRequestFocusEnabled

public void setRequestFocusEnabled(boolean b)
Sets whether the receiving component can obtain the focus by calling requestFocus.

Parameters:
b - if true the receiving component can obtain the focus by calling requestFocus

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties.

Parameters:
l - the PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
l - the PropertyChangeListener to be removed

setLayout

public void setLayout(java.awt.LayoutManager mgr)
Sets the layout manager for this component.

Parameters:
mgr - the specified layout manager

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Moves and resizes this bean. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.

Parameters:
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.

setForeground

public void setForeground(java.awt.Color c)
Sets the Foreground color.


setBackground

public void setBackground(java.awt.Color c)
Sets the Background color.


setFont

public void setFont(java.awt.Font f)
Sets the font.


setVisible

public void setVisible(boolean b)
sets Visiblity.

Parameters:
b - flag representing visibility of bean.

setEnabled

public void setEnabled(boolean b)
sets Enablity.

Parameters:
b - flag representing enability of bean.

setLocale

public void setLocale(java.util.Locale l)
Sets value of the locale.

Parameters:
l - current value of the locale.

getLocale

public java.util.Locale getLocale()
Returns the value of locale.

Returns:
the current value of locale

setCursor

public void setCursor(java.awt.Cursor c)
Sets value of the cursor.

Parameters:
c - current value of the cursor.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferred size of this component.

Returns:
a dimension object indicating this component's preferred size.

addFocusListener

public void addFocusListener(java.awt.event.FocusListener l)
Adds the specified focus listener to receive focus events from this component when this component gains input focus. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the focus listener

removeFocusListener

public void removeFocusListener(java.awt.event.FocusListener l)
Removes the specified focus listener so that it no longer receives focus events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the focus listener

addKeyListener

public void addKeyListener(java.awt.event.KeyListener l)
Adds the specified key listener to receive key events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the key listener.

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener l)
Removes the specified key listener so that it no longer receives key events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the key listener.

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener.

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener.

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse motion listener.

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse motion listener.

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Externalizable interface implementation to save and retrieve the state of this bean

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.lang.ClassNotFoundException
java.io.IOException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.