planetj.gui
Class CMTableJ

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JTable
                          |
                          +--planetj.gui.CMTableJ
All Implemented Interfaces:
Accessible, CellEditorListener, EventListener, ImageObserver, ListSelectionListener, MenuContainer, Scrollable, Serializable, TableColumnModelListener, TableModelListener

public class CMTableJ
extends JTable

Supports column sorting Creation date: (6/15/00 10:15:50 AM)

See Also:
Serialized Form

Field Summary
 
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
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
CMTableJ()
          CMTableJ constructor comment.
CMTableJ(int numRows, int numColumns)
          CMTableJ constructor comment.
CMTableJ(Object[][] rowData, Object[] columnNames)
          CMTableJ constructor comment.
CMTableJ(TableModel dm)
          CMTableJ constructor comment.
CMTableJ(TableModel dm, TableColumnModel cm)
          CMTableJ constructor comment.
CMTableJ(TableModel dm, TableColumnModel cm, ListSelectionModel sm)
          CMTableJ constructor comment.
CMTableJ(Vector rowData, Vector columnNames)
          CMTableJ constructor comment.
 
Method Summary
 MasterMouseListener getMasterMouseListener()
          Insert the method's description here.
 TableSorter getSorter()
          Insert the method's description here.
 boolean isAllowColumnSorting()
          Insert the method's description here.
 void selectRows(int[] pRowIndices)
          Selects the specified rows.
 void setAllowColumnSorting(boolean newAllowColumnSorting)
          Insert the method's description here.
 void setMasterMouseListener(MasterMouseListener newMasterMouseListener)
          Sets the MasterMouseListener
 void setModel(TableModel newModel)
          overrides JTable.setModel to wraper the newModel with TableSorter if we are allowing column sorting Creation date: (6/15/00 11:19:00 AM)
 void setSelectedRows(int[] pRowIndices)
          Selects the specified rows.
 void setSorter(TableSorter newSorter)
          Insert the method's description here.
 
Methods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, convertColumnIndexToModel, convertColumnIndexToView, createDefaultColumnsFromModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getEditingColumn, getEditingRow, getEditorComponent, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getValueAt, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, prepareEditor, prepareRenderer, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setEditingColumn, setEditingRow, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setValueAt, sizeColumnsToFit, sizeColumnsToFit, tableChanged, updateUI, valueChanged
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMTableJ

public CMTableJ()
CMTableJ constructor comment.


CMTableJ

public CMTableJ(Object[][] rowData,
                Object[] columnNames)
CMTableJ constructor comment.

Parameters:
rowData - java.lang.Object[][]
columnNames - java.lang.Object[]

CMTableJ

public CMTableJ(int numRows,
                int numColumns)
CMTableJ constructor comment.

Parameters:
numRows - int
numColumns - int

CMTableJ

public CMTableJ(Vector rowData,
                Vector columnNames)
CMTableJ constructor comment.

Parameters:
rowData - java.util.Vector
columnNames - java.util.Vector

CMTableJ

public CMTableJ(TableModel dm)
CMTableJ constructor comment.

Parameters:
dm - javax.swing.table.TableModel

CMTableJ

public CMTableJ(TableModel dm,
                TableColumnModel cm)
CMTableJ constructor comment.

Parameters:
dm - javax.swing.table.TableModel
cm - javax.swing.table.TableColumnModel

CMTableJ

public CMTableJ(TableModel dm,
                TableColumnModel cm,
                ListSelectionModel sm)
CMTableJ constructor comment.

Parameters:
dm - javax.swing.table.TableModel
cm - javax.swing.table.TableColumnModel
sm - javax.swing.ListSelectionModel
Method Detail

getMasterMouseListener

public MasterMouseListener getMasterMouseListener()
Insert the method's description here. Creation date: (5/17/02 3:35:29 PM)

Returns:
planetj.gui.MasterMouseListener

getSorter

public TableSorter getSorter()
Insert the method's description here. Creation date: (6/15/00 11:04:21 AM)

Returns:
planetj.gui.TableSorter

isAllowColumnSorting

public boolean isAllowColumnSorting()
Insert the method's description here. Creation date: (6/15/00 11:04:21 AM)

Returns:
boolean

selectRows

public void selectRows(int[] pRowIndices)
Selects the specified rows. Rows not in the array which are already selected remain selected


setAllowColumnSorting

public void setAllowColumnSorting(boolean newAllowColumnSorting)
Insert the method's description here. Creation date: (6/15/00 11:04:21 AM)

Parameters:
newAllowColumnSorting - boolean

setMasterMouseListener

public void setMasterMouseListener(MasterMouseListener newMasterMouseListener)
Sets the MasterMouseListener


setModel

public void setModel(TableModel newModel)
overrides JTable.setModel to wraper the newModel with TableSorter if we are allowing column sorting Creation date: (6/15/00 11:19:00 AM)

Overrides:
setModel in class JTable

setSelectedRows

public void setSelectedRows(int[] pRowIndices)
Selects the specified rows. Rows not in the array which are already selected are deselected


setSorter

public void setSorter(TableSorter newSorter)
Insert the method's description here. Creation date: (6/15/00 11:04:21 AM)

Parameters:
newSorter - planetj.gui.TableSorter