ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer.jfc.table
Class DataTable

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JTable
                  extended bycom.elegantj.jfc.table.JFCTable
                      extended bycom.elegantj.data.dataviewer.jfc.table.DataTable
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.event.CellEditorListener, java.util.EventListener, java.io.Externalizable, java.awt.image.ImageObserver, javax.swing.event.ListSelectionListener, java.awt.MenuContainer, javax.swing.Scrollable, java.io.Serializable, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener

public class DataTable
extends JFCTable

This bean component allows the user to get the look and feel of JFCTable.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JTable
javax.swing.JTable.AccessibleJTable
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.elegantj.jfc.table.JFCTable
c1, columnModel, COMPARE_CONTAINS, COMPARE_ENDS_WITH, COMPARE_EQUALS, COMPARE_STARTS_WITH, dataModel, MULTIPLE_INTERVAL_SELECTION, popupMenu, SEARCH_FROM_FIRST_CELL, SEARCH_FROM_LAST_CELL, SEARCH_FROM_SELECTED_CELL_TO_DOWN, SEARCH_FROM_SELECTED_CELL_TO_UP, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION, tableColumnHeader, tableRowHeader
 
Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DataTable()
          Creates a DataTable with 20 rows and 5 columns of empty cells using DefaultJFCTableModel.
DataTable(int numRows, int numColumns)
          Creates a DataTable with numRows and numColumns of empty cells using DefaultJFCTableModel.
DataTable(java.lang.Object[][] rowData, java.lang.Object[] columnNames)
          Creates a DataTable to display the values in the two dimensional array, rowData, with column names, columnNames
DataTable(javax.swing.table.TableModel dm)
           
DataTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm)
           
DataTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm, javax.swing.ListSelectionModel sm)
          Creates a DataTable with specified data model, column model and row selection model
DataTable(java.util.Vector rowData, java.util.Vector columnNames)
          Creates a DataTable to display the values in the Vector of Vectors, rowData, with column names, columnNames
 
Method Summary
protected  void initializeLocalVars()
          Initializes table properties to their default values.
 
Methods inherited from class com.elegantj.jfc.table.JFCTable
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnAboveSelection, addColumnModelListener, addColumnSelectionInterval, addColumnSelectionListener, addPropertyChangeListener, addRow, addRow, addRow, addRowAboveSelection, addRowSelectionInterval, addRowSelectionListener, addTableModelListener, cellAtPoint, changeSelection, clearTableColumnsAttributes, clearTableRowsAttributes, columnAdded, columnSelectionChanged, configureEnclosingScrollPane, convertAttributesArrayToTable, convertAttributesTableToArray, convertToArray, convertToVector, createDefaultColumnModel, createDefaultColumnsAttributes, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultPopupMenu, createDefaultRenderers, createDefaultRowsAttributes, createDefaultTableAttributes, createDefaultTableHeader, createDefaultTableRowHeader, editTableCell, editTableCell, getCellBackgroundNonSelectionColor, getCellBackgroundSelectionColor, getCellBorderSelectionColor, getCellEditor, getCellFont, getCellIcon, getCellIconPath, getCellRenderer, getCellTextNonSelectionColor, getCellTextSelectionColor, getColumn, getColumnBackgroundNonSelectionColor, getColumnBackgroundSelectionColor, getColumnBorderSelectionColor, getColumnCellEditor, getColumnCellRenderer, getColumnData, getColumnEditable, getColumnFocusCellBackground, getColumnFocusCellForeground, getColumnFont, getColumnHeaderBackground, getColumnHeaderFont, getColumnHeaderForeground, getColumnHeaderHeight, getColumnIcon, getColumnIconPath, getColumnIndex, getColumnMargin, getColumnNames, getColumns, getColumnTextNonSelectionColor, getColumnTextSelectionColor, getData, getDefaultBackgroundNonSelectionColor, getDefaultBackgroundSelectionColor, getDefaultBorderSelectionColor, getDefaultCellEditor, getDefaultCellRenderer, getDefaultEditable, getDefaultFocusCellBackground, getDefaultFocusCellForeground, getDefaultFont, getDefaultIcon, getDefaultIconPath, getDefaultTableAttributes, getDefaultTextNonSelectionColor, getDefaultTextSelectionColor, getFocusCellBackground, getFocusCellForeground, getLicenseKey, getLocale, getPopupMenu, getRowBackgroundNonSelectionColor, getRowBackgroundSelectionColor, getRowBorderSelectionColor, getRowCellEditor, getRowCellRenderer, getRowData, getRowEditable, getRowFocusCellBackground, getRowFocusCellForeground, getRowFont, getRowHeaderBackground, getRowHeaderFont, getRowHeaderForeground, getRowHeaderWidth, getRowHeight, getRowIcon, getRowIconPath, getRowTextNonSelectionColor, getRowTextSelectionColor, getSearchMode, getSearchValueAt, getSelectedCellObject, getSelectedTableCell, getSelectionMode, getTableColumnAttributes, getTableColumnsAttributes, getTableRowAttributes, getTableRowHeader, getTableRowsAttributes, getVisibleFirstColumn, getVisibleFirstRow, getVisibleLastColumn, getVisibleLastRow, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertRow, insertRow, insertRow, isAddRowOnEnterKey, isAdjustColumnOnClick, isAdjustRowOnClick, isCellEditable, isCellSelected, isColumnCellsSelected, isColumnHeaderVisible, isColumnReorderingAllowed, isColumnResizingAllowed, isInsertRowOnInsertKey, isLightweight, isManagingFocus, isPopupVisible, isRemoveRowOnDeleteKey, isRowCellsSelected, isRowHeaderVisible, isRowResizingAllowed, isSortColumnOnClick, moveColumn, moveRow, prepareRenderer, processKeyEvent, processMouseEvent, readExternal, removeColumn, removeColumn, removeColumn, removeColumnModelListener, removeColumns, removeColumns, removeColumnSelectionInterval, removeColumnSelectionListener, removePropertyChangeListener, removeRow, removeRows, removeRowSelectionInterval, removeRowSelectionListener, removeSelectedColumns, removeSelectedRows, removeTableModelListener, repaint, resizeAndRepaint, scrollCellToVisible, scrollCellToVisible, scrollColumnToVisible, scrollRowToVisible, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, selectColumnCells, selectRowCells, setAddRowOnEnterKey, setAdjustColumnOnClick, setAdjustRowOnClick, setAutoCreateColumnsFromModel, setAutoResizeMode, setAutoscrolls, setBackground, setBorder, setBounds, setColumnBackgroundNonSelectionColor, setColumnBackgroundSelectionColor, setColumnBorderSelectionColor, setColumnCellEditor, setColumnCellRenderer, setColumnCount, setColumnEditable, setColumnFocusCellBackground, setColumnFocusCellForeground, setColumnFont, setColumnHeaderBackground, setColumnHeaderFont, setColumnHeaderForeground, setColumnHeaderHeight, setColumnHeaderVisible, setColumnIcon, setColumnIconPath, setColumnMargin, setColumnModel, setColumnName, setColumnNames, setColumnReorderingAllowed, setColumnResizingAllowed, setColumnSelectionAllowed, setColumnSelectionInterval, setColumnTextNonSelectionColor, setColumnTextSelectionColor, setColumnWidth, setColumnWidth, setCursor, setData, setDefaultBackgroundNonSelectionColor, setDefaultBackgroundSelectionColor, setDefaultBorderSelectionColor, setDefaultCellEditor, setDefaultCellRenderer, setDefaultEditable, setDefaultFocusCellBackground, setDefaultFocusCellForeground, setDefaultFont, setDefaultIcon, setDefaultIconPath, setDefaultTableAttributes, setDefaultTextNonSelectionColor, setDefaultTextSelectionColor, setDoubleBuffered, setEnabled, setFont, setForeground, setGridColor, setInsertRowOnInsertKey, setLayout, setLicenseKey, setLightweight, setLocale, setManagingFocus, setModel, setOpaque, setPopupMenu, setPopupVisible, setRemoveRowOnDeleteKey, setRequestFocusEnabled, setRowBackgroundNonSelectionColor, setRowBackgroundSelectionColor, setRowBorderSelectionColor, setRowCellEditor, setRowCellRenderer, setRowCount, setRowEditable, setRowFocusCellBackground, setRowFocusCellForeground, setRowFont, setRowHeaderBackground, setRowHeaderFont, setRowHeaderForeground, setRowHeaderVisible, setRowHeaderWidth, setRowHeight, setRowHeight, setRowIcon, setRowIconPath, setRowMargin, setRowResizingAllowed, setRowSelectionAllowed, setRowSelectionInterval, setRowTextNonSelectionColor, setRowTextSelectionColor, setSearchMode, setSelectedCellObject, setSelectedCellObject, setSelectedCellObject, setSelectedColumn, setSelectedColumns, setSelectedRow, setSelectedRows, setSelectedTableCell, setSelectionMode, setShowHorizontalLines, setShowVerticalLines, setSortColumnOnClick, setTableColumnAttributes, setTableColumnsAttributes, setTableHeader, setTableRowAttributes, setTableRowHeader, setTableRowsAttributes, setToolTipText, setVisible, sortColumn, sortColumn, sortColumns, sortColumns, tableChanged, unconfigureEnclosingScrollPane, valueChanged, writeExternal
 
Methods inherited from class javax.swing.JTable
addNotify, clearSelection, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, convertColumnIndexToModel, convertColumnIndexToView, createDefaultSelectionModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoResizeMode, getCellEditor, getCellRect, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getEditingColumn, getEditingRow, getEditorComponent, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getValueAt, isCellSelected, isColumnSelected, isEditing, isRowSelected, paramString, prepareEditor, processKeyBinding, removeEditor, removeNotify, rowAtPoint, selectAll, setCellEditor, setCellSelectionEnabled, setDefaultEditor, setDefaultRenderer, setDragEnabled, setEditingColumn, setEditingRow, setIntercellSpacing, setPreferredScrollableViewportSize, setSelectionBackground, setSelectionForeground, setSelectionModel, setShowGrid, setSurrendersFocusOnKeystroke, setUI, setValueAt, sizeColumnsToFit, sizeColumnsToFit, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, setDefaultLocale, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataTable

public DataTable()
Creates a DataTable with 20 rows and 5 columns of empty cells using DefaultJFCTableModel. The columns will have names of the form "A", "B", "C", etc.


DataTable

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

DataTable

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

DataTable

public DataTable(javax.swing.table.TableModel dm,
                 javax.swing.table.TableColumnModel cm,
                 javax.swing.ListSelectionModel sm)
Creates a DataTable with specified data model, column model and row selection model

Parameters:
dm - the data model for the table
cm - the column model for the table
sm - the row selection model for the table

DataTable

public DataTable(int numRows,
                 int numColumns)
Creates a DataTable with numRows and numColumns of empty cells using DefaultJFCTableModel. The columns will have names of the form "A", "B", "C", etc.

Parameters:
numRows - the number of rows the table holds
numColumns - the number of columns the table holds

DataTable

public DataTable(java.lang.Object[][] rowData,
                 java.lang.Object[] columnNames)
Creates a DataTable to display the values in the two dimensional array, rowData, with column names, columnNames

Parameters:
rowData - the data for the new table
columnNames - names of each column

DataTable

public DataTable(java.util.Vector rowData,
                 java.util.Vector columnNames)
Creates a DataTable to display the values in the Vector of Vectors, rowData, with column names, columnNames

Parameters:
rowData - the data for the new table
columnNames - names of each column
Method Detail

initializeLocalVars

protected void initializeLocalVars()
Initializes table properties to their default values.

Overrides:
initializeLocalVars in class JFCTable

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.