|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTable com.metamatrix.toolbox.ui.widget.TableWidget
public class TableWidget
This class is intended to be used everywhere within the application that a table needs to be displayed. Changing a cell's value will not automatically cause sorted columns to be re-sorted nor cause the row to be removed from the view if it would now be filtered by the currently set filters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTable |
---|
javax.swing.JTable.AccessibleJTable, javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static java.lang.String |
CHECKBOX_BORDER_PROPERTY
|
static java.lang.String |
FOCUS_BACKGROUND_PROPERTY
|
static java.lang.String |
FOCUS_BORDER_PROPERTY
|
static java.lang.String |
NO_FOCUS_BORDER_PROPERTY
|
static java.lang.String |
PROPERTY_PREFIX
|
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, columnModel, dataModel, 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 com.metamatrix.toolbox.ui.UIConstants |
---|
DATE_FORMAT_PROPERTY, SPACER_HORIZONTAL_LENGTH_PROPERTY, WINDOW_BORDER_PROPERTY |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TableWidget()
|
|
TableWidget(boolean isSortable)
|
|
TableWidget(java.util.List columnNames)
|
|
TableWidget(java.util.List columnNames,
boolean isSortable)
|
|
TableWidget(javax.swing.table.TableModel model)
|
|
TableWidget(javax.swing.table.TableModel model,
boolean isSortable)
|
Method Summary | |
---|---|
void |
addColumn(javax.swing.table.TableColumn column)
Overridden to set the header renderer, minimum width, header value, and ID of the specified column. |
void |
addFilter(TableFilter filter)
|
boolean |
allowsMultipleColumnSorting()
Returns whether multiple column sorting is allowed. |
void |
clearFilters()
|
void |
columnMarginChanged(javax.swing.event.ChangeEvent event)
|
void |
columnSorted()
|
int |
convertRowIndexToModel(int row)
|
int |
convertRowIndexToView(int row)
|
protected javax.swing.table.TableColumnModel |
createDefaultColumnModel()
|
void |
createDefaultColumnsFromModel()
|
protected TableComparator |
createDefaultComparator()
|
protected javax.swing.table.TableModel |
createDefaultDataModel()
|
protected javax.swing.table.TableCellRenderer |
createDefaultHeaderRenderer()
|
protected PopupMenuFactory |
createDefaultPopupMenuFactory()
|
protected void |
createDefaultRenderers()
Overridden for performance reasons. |
protected TableSorter |
createDefaultSorter()
|
protected javax.swing.table.JTableHeader |
createDefaultTableHeader()
|
protected EnhancedTableColumnModel |
createEnhancedColumnModel()
|
protected EnhancedTableModel |
createEnhancedModel()
|
void |
createModelRowMap()
|
javax.swing.JToolTip |
createToolTip()
|
TableComparator |
getComparator()
|
EnhancedTableColumnModel |
getEnhancedColumnModel()
|
EnhancedTableModel |
getEnhancedModel()
|
java.util.List |
getFilters()
|
int |
getHiddenColumnCount()
|
java.util.List |
getHiddenColumns()
|
PopupMenuFactory |
getPopupMenuFactory()
|
java.awt.Dimension |
getPreferredSize()
Overridden to return the current width as the preferred width. |
int |
getRowCount()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getSortedColumnCount()
|
java.util.List |
getSortedColumns()
|
TableSorter |
getSorter()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
protected void |
increaseColumnSize(int index,
int width)
|
protected void |
initializeTableWidget()
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isColumnEditable(int columnIndex)
|
boolean |
isEditable()
|
protected boolean |
isFiltered(int rowIndex,
java.util.List row)
|
boolean |
isFilteredBy(TableFilter filter)
|
boolean |
isRowEditable(int rowIndex)
|
boolean |
isSortable()
|
boolean |
isSorted()
|
protected void |
mapModelRows(int firstRowIndex,
int rowCount)
|
void |
removeFilter(TableFilter filter)
|
void |
setAllowsMultipleColumnSorting(boolean allowsMultipleColumnSorting)
Sets whether multiple column sorting is allowed. |
void |
setCellEditable(int rowIndex,
int columnIndex,
boolean isEditable)
|
void |
setColumnEditable(int columnIndex,
boolean isEditable)
|
void |
setColumnHidden(EnhancedTableColumn column,
boolean isHidden)
|
void |
setColumnModel(javax.swing.table.TableColumnModel model)
|
void |
setColumnNotSorted(EnhancedTableColumn column)
|
void |
setColumnNotSorted(EnhancedTableColumn column,
boolean isCurrentColumnSortOrderKept)
|
void |
setColumnsHidden(boolean isHidden)
|
void |
setColumnsNotSorted()
|
void |
setColumnSortedAscending(EnhancedTableColumn column)
|
void |
setColumnSortedAscending(EnhancedTableColumn column,
boolean isCurrentColumnSortOrderKept)
|
void |
setColumnSortedDescending(EnhancedTableColumn column)
|
void |
setColumnSortedDescending(EnhancedTableColumn column,
boolean isCurrentColumnSortOrderKept)
|
void |
setComparator(TableComparator comparator)
|
void |
setEditable(boolean isEditable)
|
void |
setModel(javax.swing.table.TableModel model)
Overridden to enforce models to be instances of EnhancedTableModel and to reapply sorting to columns with the same identifiers in both the new and old models. |
void |
setPopupMenuFactory(PopupMenuFactory popupMenuFactory)
|
void |
setRowEditable(int rowIndex,
boolean isEditable)
|
void |
setSortable(boolean isSortable)
|
void |
setSorter(TableSorter sorter)
|
void |
setTableHeader(javax.swing.table.JTableHeader header)
|
void |
setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex)
|
void |
sizeColumnsToFit(int resizedColumnIndex)
Deprecated. |
void |
sizeColumnsToFitContainer(int resizedColumnIndex)
Expands the columns with indexes after the specified column to fit within the table's container when necessary. |
void |
sizeColumnsToFitData()
Changes the sizes of all columns to match the size of their longest cell contents (or the header value if they are longer than the longest cell contents). |
void |
sizeColumnsToFitData(int count)
Changes the sizes of all columns to match the size of their longest cell contents (or the header value if they are longer than the longest cell contents). |
protected void |
sizeColumnsToFitViewport(javax.swing.JScrollPane scroller)
Attempts to resize the columns when both the table is a view within a JScrollPane and the vertical scroll bar first appears, in order to eliminate the horizontal scroll bar. |
void |
sizeColumnToFitData(EnhancedTableColumn column)
Changes the size of the specified column to match the size of its longest cell contents (or the header value if its longer than the longest cell contents). |
void |
sizeColumnToFitData(EnhancedTableColumn column,
int count)
Changes the size of the specified column to match the size of its longest cell contents (or the header value if its longer than the longest cell contents). |
protected int |
sizeColumnToFitDataInternal(EnhancedTableColumn column,
int count)
Changes the size of the specified column to match the size of its longest cell contents (or the header value if its longer than the longest cell contents). |
void |
sort()
|
void |
tableChanged(javax.swing.event.TableModelEvent event)
|
void |
unsortAll()
Unsort the entire table. |
Methods inherited from class javax.swing.JTable |
---|
addColumnSelectionInterval, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, createDefaultEditors, createDefaultSelectionModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, initializeLocalVars, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setUI, setUpdateSelectionOnSort, sizeColumnsToFit, sorterChanged, unconfigureEnclosingScrollPane, updateUI, valueChanged |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, removePropertyChangeListener, removePropertyChangeListener, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_PREFIX
public static final java.lang.String CHECKBOX_BORDER_PROPERTY
public static final java.lang.String FOCUS_BORDER_PROPERTY
public static final java.lang.String FOCUS_BACKGROUND_PROPERTY
public static final java.lang.String NO_FOCUS_BORDER_PROPERTY
Constructor Detail |
---|
public TableWidget()
public TableWidget(java.util.List columnNames)
public TableWidget(javax.swing.table.TableModel model)
public TableWidget(boolean isSortable)
public TableWidget(java.util.List columnNames, boolean isSortable)
public TableWidget(javax.swing.table.TableModel model, boolean isSortable)
Method Detail |
---|
public void addColumn(javax.swing.table.TableColumn column)
addColumn
in class javax.swing.JTable
public void addFilter(TableFilter filter)
public boolean allowsMultipleColumnSorting()
public void clearFilters()
public void columnMarginChanged(javax.swing.event.ChangeEvent event)
columnMarginChanged
in interface javax.swing.event.TableColumnModelListener
columnMarginChanged
in class javax.swing.JTable
public void columnSorted()
columnSorted
in interface TableColumnSortListener
public int convertRowIndexToModel(int row)
convertRowIndexToModel
in class javax.swing.JTable
public int convertRowIndexToView(int row)
convertRowIndexToView
in class javax.swing.JTable
protected final javax.swing.table.TableColumnModel createDefaultColumnModel()
createDefaultColumnModel
in class javax.swing.JTable
public void createDefaultColumnsFromModel()
createDefaultColumnsFromModel
in class javax.swing.JTable
protected TableComparator createDefaultComparator()
protected final javax.swing.table.TableModel createDefaultDataModel()
createDefaultDataModel
in class javax.swing.JTable
protected javax.swing.table.TableCellRenderer createDefaultHeaderRenderer()
protected PopupMenuFactory createDefaultPopupMenuFactory()
protected void createDefaultRenderers()
createDefaultRenderers
in class javax.swing.JTable
protected TableSorter createDefaultSorter()
protected final javax.swing.table.JTableHeader createDefaultTableHeader()
createDefaultTableHeader
in class javax.swing.JTable
protected EnhancedTableColumnModel createEnhancedColumnModel()
protected EnhancedTableModel createEnhancedModel()
public void createModelRowMap()
public javax.swing.JToolTip createToolTip()
createToolTip
in class javax.swing.JComponent
public TableComparator getComparator()
public EnhancedTableColumnModel getEnhancedColumnModel()
public EnhancedTableModel getEnhancedModel()
public java.util.List getFilters()
public int getHiddenColumnCount()
public java.util.List getHiddenColumns()
public PopupMenuFactory getPopupMenuFactory()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public int getRowCount()
getRowCount
in class javax.swing.JTable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
getScrollableTracksViewportWidth
in class javax.swing.JTable
public int getSortedColumnCount()
public java.util.List getSortedColumns()
public TableSorter getSorter()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in class javax.swing.JTable
protected void increaseColumnSize(int index, int width)
protected void initializeTableWidget()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in class javax.swing.JTable
public boolean isColumnEditable(int columnIndex)
public boolean isEditable()
protected boolean isFiltered(int rowIndex, java.util.List row)
public boolean isFilteredBy(TableFilter filter)
public boolean isRowEditable(int rowIndex)
public boolean isSorted()
public boolean isSortable()
protected void mapModelRows(int firstRowIndex, int rowCount)
public void removeFilter(TableFilter filter)
public void setAllowsMultipleColumnSorting(boolean allowsMultipleColumnSorting)
allowsMultipleColumnSorting
- Indicates if multiple column sorting is allowedpublic void setCellEditable(int rowIndex, int columnIndex, boolean isEditable)
public void setColumnEditable(int columnIndex, boolean isEditable)
public void setColumnHidden(EnhancedTableColumn column, boolean isHidden)
public void setColumnModel(javax.swing.table.TableColumnModel model)
setColumnModel
in class javax.swing.JTable
public void setColumnNotSorted(EnhancedTableColumn column)
public void setColumnNotSorted(EnhancedTableColumn column, boolean isCurrentColumnSortOrderKept)
public void setColumnSortedAscending(EnhancedTableColumn column)
public void setColumnSortedAscending(EnhancedTableColumn column, boolean isCurrentColumnSortOrderKept)
public void setColumnSortedDescending(EnhancedTableColumn column)
public void setColumnSortedDescending(EnhancedTableColumn column, boolean isCurrentColumnSortOrderKept)
public void setColumnsHidden(boolean isHidden)
public void setColumnsNotSorted()
public void setComparator(TableComparator comparator)
public void setEditable(boolean isEditable)
public void setModel(javax.swing.table.TableModel model)
setModel
in class javax.swing.JTable
public void setPopupMenuFactory(PopupMenuFactory popupMenuFactory)
public void setRowEditable(int rowIndex, boolean isEditable)
public void setSortable(boolean isSortable)
public void setSorter(TableSorter sorter)
public void unsortAll()
public void setTableHeader(javax.swing.table.JTableHeader header)
setTableHeader
in class javax.swing.JTable
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in class javax.swing.JTable
protected int sizeColumnToFitDataInternal(EnhancedTableColumn column, int count)
column
- The column to be sizedcount
- The number of data cells to use when determining the longest cell
public void sizeColumnToFitData(EnhancedTableColumn column)
column
- The column to be sizedpublic void sizeColumnToFitData(EnhancedTableColumn column, int count)
column
- The column to be sizedcount
- The number of data cells to use when determining the longest cellpublic void sizeColumnsToFit(int resizedColumnIndex)
sizeColumnsToFit
in class javax.swing.JTable
public void sizeColumnsToFitContainer(int resizedColumnIndex)
resizedColumnIndex
- The index of the column just resized or -1 if the table's container was resizedpublic void sizeColumnsToFitData()
public void sizeColumnsToFitData(int count)
count
- The number of data cells to use when determining the longest cellprotected void sizeColumnsToFitViewport(javax.swing.JScrollPane scroller)
public void sort()
public void tableChanged(javax.swing.event.TableModelEvent event)
tableChanged
in interface javax.swing.event.TableModelListener
tableChanged
in class javax.swing.JTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |