JIDE 3.5.15

com.jidesoft.grid
Class CategorizedTable

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTable
                  extended by com.jidesoft.grid.JideTable
                      extended by com.jidesoft.grid.ContextSensitiveTable
                          extended by com.jidesoft.grid.NavigableTable
                              extended by com.jidesoft.grid.CellStyleTable
                                  extended by com.jidesoft.grid.CellSpanTable
                                      extended by com.jidesoft.grid.CategorizedTable
All Implemented Interfaces:
IndexChangeListener, TableAdapter, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable
Direct Known Subclasses:
DataTable, HeaderTable, SortableTable

public class CategorizedTable
extends CellSpanTable

CategorizedTable is a table that has category rows. Category rows are those special rows which usually have a different foreground and background and allow expand/collapse.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jidesoft.grid.CellSpanTable
CellSpanTable.DelegateAction
 
Nested classes/interfaces inherited from class com.jidesoft.grid.JideTable
JideTable.NonContiguousTransferHandler
 
Nested classes/interfaces inherited from class javax.swing.JTable
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static ImageIcon DEFAULT_ASCENDING_ICON
           
static ImageIcon DEFAULT_DESCENDING_ICON
           
static String PROPERTY_EXPAND_ICON_VISIBLE
           
 
Fields inherited from class com.jidesoft.grid.CellSpanTable
AUTO_CELL_MERGE_COLUMNS, AUTO_CELL_MERGE_COLUMNS_LIMITED, AUTO_CELL_MERGE_OFF, AUTO_CELL_MERGE_ROWS, AUTO_CELL_MERGE_ROWS_LIMITED, PROPERTY_AUTO_CONVERT_CELL_SPAN, PROPERTY_PAINT_CELL_SPAN_AS_SELECTED
 
Fields inherited from class com.jidesoft.grid.CellStyleTable
_cellStyleList, PROPERTY_FILLS_SELECTION, PROPERTY_FILLS_VIEWPORT_WITH_STRIPE
 
Fields inherited from class com.jidesoft.grid.JideTable
_batchProcessing, _cellChangeEvent, _clickCountToStart, _columnAutoResizer, _columnResizer, _headerDraggingMouseMotionListener, _rolloverCellEditor, _rolloverCellEditorListener, _rolloverColumn, _rolloverEditorComp, _rolloverEditorRemover, _rolloverRow, _rowHeights, _rowResizer, ACTION_NAME_CANCEL_EDITING, AUTO_RESIZE_ALL_COLUMNS_FILL, AUTO_RESIZE_FILL, AUTO_RESIZE_LAST_COLUMN_FILL, AUTO_RESIZE_NEXT_COLUMN_FILL, AUTO_RESIZE_SUBSEQUENT_COLUMNS_FILL, CLIENT_PROPERTY_LAZY_CALCULATE_ROW_HEIGHT, EDITOR_AUTO_COMPLETION_MODE_COLUMN, EDITOR_AUTO_COMPLETION_MODE_NONE, EDITOR_AUTO_COMPLETION_MODE_ROW, EDITOR_AUTO_COMPLETION_MODE_TABLE, PROPERTY_CLEAR_SELECTION_ON_TABLE_DATA_CHANGES, PROPERTY_EDITOR_AUTO_COMPLETION_MODE, PROPERTY_FILLS_BOTTOM, PROPERTY_FILLS_GRIDS, PROPERTY_FILLS_RIGHT, PROPERTY_LOAD_SELECTION_ON_TABLE_DATA_CHANGES, PROPERTY_NON_CONTIGUOUS_CELL_SELECTION, PROPERTY_ROW_AUTO_RESIZES, PROPERTY_SCROLL_ROW_WHEN_ROW_HEIGHT_CHANGES, PROPERTY_TABLE_SELECTION_MODEL, ROW_AUTO_RESIZES_PROPERTY
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CategorizedTable()
           
CategorizedTable(int numRows, int numColumns)
           
CategorizedTable(Object[][] rowData, Object[] columnNames)
           
CategorizedTable(TableModel dm)
           
CategorizedTable(TableModel dm, TableColumnModel cm)
           
CategorizedTable(TableModel dm, TableColumnModel cm, ListSelectionModel sm)
           
CategorizedTable(Vector<?> rowData, Vector<?> columnNames)
           
 
Method Summary
 Icon getAscendingIcon()
          Gets the ascending icon used by sortable table header.
 Icon getCategoryCollapsedIcon()
          Gets the collapsed icon.
 Icon getCategoryExpandedIcon()
          Gets the expanded icon.
 Icon getCollapsedIcon()
          Gets the collapsed icon.
 Icon getCollapsedIcon(int row)
          Get the collapsed icon by row.
 Icon getDescendingIcon()
          Gets the descending icon used by sortable table header.
 Color getDisabledBackground()
          Gets the disabled cell background.
 Color getDisabledForeground()
          Gets the disabled cell foreground.
 Icon getExpandedIcon()
          Gets the expanded icon.
 Icon getExpandedIcon(int row)
          Get the expanded icon by row.
 Color getMarginBackground()
          Gets the background color that is used to paint the margin.
 boolean isExpandIconVisible()
          Get the flag indicating if the expandable icon is visible.
 boolean isPaintMarginBackground()
          Checks if paints the margin background.
 boolean isUseLnfDefaultSortIcon()
          Get the flag indicating if SortableTable will use look and feel default sort icon as its default sort icon.
 boolean isUseTableRendererForCategoryRow()
          A flag to decide if the category row should use the regular table cell renderer.
 void setAscendingIcon(Icon ascendingIcon)
          Sets the ascending icon used by sortable table header.
 void setCategoryCollapsedIcon(Icon collapsedIcon)
          Sets the collapsed icon.
 void setCategoryExpandedIcon(Icon expandedIcon)
          Sets the expanded icon.
 void setCollapsedIcon(Icon collapsedIcon)
          Sets the collapsed icon.
 void setDescendingIcon(Icon descendingIcon)
          Sets the descending icon used by sortable table header.
 void setDisabledBackground(Color disabledBackground)
          Sets the disabled cell background.
 void setDisabledForeground(Color disabledForeground)
          Sets the disabled cell foreground.
 void setExpandedIcon(Icon expandedIcon)
          Sets the expanded icon.
 void setExpandIconVisible(boolean expandIconVisible)
          set the flag indicating if the expandable icon is visible.
 void setMarginBackground(Color marginBackground)
          Sets the background color that is used to paint the margin.
 void setPaintMarginBackground(boolean paintMarginBackground)
           
 void setUseLnfDefaultSortIcon(boolean useLnfDefaultSortIcon)
          Set the flag indicating if SortableTable will use JDK default sort icon as its default sort icon.
 void setUseTableRendererForCategoryRow(boolean useTableRendererForCategoryRow)
          Set the flag if the category row should use the regular table cell renderer.
 void updateUI()
           
 
Methods inherited from class com.jidesoft.grid.CellSpanTable
binarySearch, calculateRowHeight, calculateRowHeight, calculateRowHeights, columnAdded, columnAtPoint, columnMoved, columnRemoved, convertModelCellSpanToView, convertViewCellSpanToModel, createCellSpanCache, createDelegateAction, editCellAt, getActualRowHeight, getActualUIClassID, getAutoCellMerge, getCache, getCacheEmpty, getCellEditor, getCellRect, getCellRenderer, getCellSpanAt, getCellSpanAt, getCellSpanFromAutoCellMerge, getCellSpanFromSpanModel, getDirtyRegion, getScrollableUnitIncrement, getSpanModel, getValueAt, invalidateCellSpanCache, isAutoConvertCellSpan, isCellFocused, isCellSelected, isCellSpanCacheEnabled, isCellSpanOn, isKeepColumnAtPoint, isKeepRowAtPoint, isPaintCellSpanAsSelected, muteDefaultKeyStroke, originalColumnAtPoint, originalGetCellRect, originalRowAtPoint, prepareEditor, replaceAction, replaceAction, restoreAction, restoreAction, rolloverCellAt, rowAtPoint, setAutoCellMerge, setAutoConvertCellSpan, setCellSpanCacheEnabled, setKeepColumnAtPoint, setKeepRowAtPoint, setPaintCellSpanAsSelected, shouldCellBePaintedAsFocused, shouldCellBePaintedAsSelected, tableChanged, valueChanged, verifyCellSpan, verifyCellSpan
 
Methods inherited from class com.jidesoft.grid.CellStyleTable
addCellStyleCustomizer, clearCellStyleCustomizers, collectCellStyles, configureEditorComponent, configureRendererComponent, customizeEditorComponent, customizeRendererComponent, getCellStyleAt, getCellStyleCustomizers, getCellStyleProvider, getCellStyles, getFocusCellStyle, getNextStyleModel, getStyleModel, getTableStyleProvider, isFillsSelection, isFillsViewportWithStripe, mergeCellStyle, mergeCellStyles, needPaintStripedBackground, paintCellOverlay, paintCellUnderlay, paintComponent, prepareRenderer, releaseRendererComponent, removeCellStyleCustomizer, setCellStyleProvider, setFillsSelection, setFillsViewportWithStripe, setFocusCellStyle, setTableStyleProvider
 
Methods inherited from class com.jidesoft.grid.NavigableTable
changeSelection, findNearestNavigableCellInColumn, findNearestNavigableCellInRow, findNextNavigableCell, findNextNavigableCellInColumn, findNextNavigableCellInRow, findNextNavigableCellVertically, findPreviousNavigableCell, findPreviousNavigableCellInColumn, findPreviousNavigableCellInRow, findPreviousNavigableCellVertically, getNavigableModel, getNextNavigableModel, isCellNavigable, isNavigationKey, processKeyBinding
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveTable
convertElementToString, createDefaultTransferHandler, getCellClassAt, getCellEditorFromManager, getCellRendererFromManager, getConverterContextAt, getDefaultCellRenderer, getEditorContextAt, invalidateCellRendererCache, isCellEditorManagerEnabled, isCellRendererManagerEnabled, setCellEditorManagerEnabled, setCellRendererManagerEnabled, setDefaultCellRenderer
 
Methods inherited from class com.jidesoft.grid.JideTable
addCellEditorListener, addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, addRowValidator, addUndo, addUndoableEditListener, addValidator, adjustSelectionWhenColumnMoved, alwaysCalculateCellRect, calculateAutoResizedRowHeights, calculateAutoResizedRowHeights, clearSelection, clearSelectionPermanently, columnSelectionChanged, configureEnclosingScrollPaneExplicitly, convertRowIndexToModel, convertRowIndexToView, createCellAutoCompletion, createDefaultColumnsFromModel, createDefaultSelectionModel, createDefaultTableHeader, createDefaultTableSelectionModel, createRowAutoScrollingListener, createRowHeights, createSortHeaderRenderer, editingCanceled, editingStopped, fireEditingCanceled, fireEditingStarted, fireEditingStarting, fireEditingStopped, fireEditingStopping, getCellEditorListeners, getClickCountToStart, getDefaultRenderer, getEditorAutoCompletionMode, getEditorAutoCompletionMode, getEditorCellRect, getGridColor, getGridColorProvider, getRolloverCellEditor, getRolloverColumn, getRolloverRow, getRowHeight, getRowHeights, getRowValidator, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getTableColumnWidthKeeper, getTableHeaderToolTipText, getTableHeaderToolTipText, getTableSelectionModel, getTextComponentForEditorComponent, getToolTipText, getUndoManager, getValidator, getVerticalGridColor, indexChanged, initTable, isAdjustEditorLocationOnModelChanged, isAlwaysRequestFocusForEditor, isAutoResizeFillMode, isAutoSelectTextWhenStartsEditing, isAutoStartCellEditing, isAutoStartCellEditingKey, isBatchProcessing, isCalculateRowHeightsOnWidthChange, isCellContentVisible, isClearPropertyAtStructureChange, isClearSelectionOnTableDataChanges, isColumnAutoResizable, isColumnResizable, isColumnSelected, isEnableIgnored, isFillBottom, isFillGrids, isFillRight, isFillsBottom, isFillsGrids, isFillsGridsBottom, isFillsGridsRight, isFillsRight, isKeepRowHeights, isLoadSelectionOnTableDataChanged, isNestedTableHeader, isNonContiguousCellSelection, isRollover, isRowAutoResizes, isRowHeightChanged, isRowResizable, isRowSelected, isScrollRowWhenRowHeightChanges, isSelectInsertedRows, isTablePrinting, isValidCellEditingKey, isVariousRowHeights, loadTableRowSettings, paintFillHeader, removeCellEditorListener, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRolloverEditor, removeRowSelectionInterval, removeRowValidator, removeUndoableEditListener, removeValidator, resetTransferHandler, saveTableRowSettings, scrollRowToVisible, selectAll, setAdjustEditorLocationOnModelChanged, setAlwaysRequestFocusForEditor, setAutoResizeMode, setAutoSelectTextWhenStartsEditing, setAutoStartCellEditing, setBatchProcessing, setCalculateRowHeightsOnWidthChange, setCellContentVisible, setClearPropertyAtStructureChange, setClearSelectionOnTableDataChanges, setClickCountToStart, setColumnAutoResizable, setColumnResizable, setColumnSelectionAllowed, setColumnSelectionInterval, setEditorAutoCompletionMode, setEnabled, setEnableIgnored, setFillBottom, setFillGrids, setFillRight, setFillsBottom, setFillsGrids, setFillsRight, setGridColorProvider, setKeepRowHeights, setLoadSelectionOnTableDataChanged, setModel, setNestedTableHeader, setNonContiguousCellSelection, setPreferredSize, setRowAutoResizes, setRowHeight, setRowHeight, setRowHeights, setRowResizable, setRowSelectionAllowed, setRowSelectionInterval, setScrollRowWhenRowHeightChanges, setSelectInsertedRows, setSortTableHeaderRenderer, setTableColumnWidthKeeper, setTableHeader, setTablePrinting, setTableSelectionModel, setVariousRowHeights, startCellEditing, validate, validateRow
 
Methods inherited from class javax.swing.JTable
columnMarginChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, createDefaultColumnModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createScrollPaneForTable, doLayout, editCellAt, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getUI, getUIClassID, getUpdateSelectionOnSort, initializeLocalVars, isCellEditable, isEditing, moveColumn, paramString, print, print, print, print, print, resizeAndRepaint, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setCellEditor, setCellSelectionEnabled, setColumnModel, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, setRowMargin, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, unconfigureEnclosingScrollPane
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, 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, getPreferredSize, 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, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, 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
 
Methods inherited from interface com.jidesoft.grid.TableAdapter
getCellSelectionEnabled, getColumnClass, getColumnCount, getColumnName, getColumnSelectionAllowed, getRowCount, getRowSelectionAllowed, isCellEditable, setCellSelectionEnabled, setValueAt
 

Field Detail

DEFAULT_ASCENDING_ICON

public static final ImageIcon DEFAULT_ASCENDING_ICON

DEFAULT_DESCENDING_ICON

public static final ImageIcon DEFAULT_DESCENDING_ICON

PROPERTY_EXPAND_ICON_VISIBLE

public static final String PROPERTY_EXPAND_ICON_VISIBLE
See Also:
Constant Field Values
Constructor Detail

CategorizedTable

public CategorizedTable()

CategorizedTable

public CategorizedTable(TableModel dm)

CategorizedTable

public CategorizedTable(TableModel dm,
                        TableColumnModel cm)

CategorizedTable

public CategorizedTable(TableModel dm,
                        TableColumnModel cm,
                        ListSelectionModel sm)

CategorizedTable

public CategorizedTable(int numRows,
                        int numColumns)

CategorizedTable

public CategorizedTable(Vector<?> rowData,
                        Vector<?> columnNames)

CategorizedTable

public CategorizedTable(Object[][] rowData,
                        Object[] columnNames)
Method Detail

updateUI

public void updateUI()
Overrides:
updateUI in class ContextSensitiveTable

getDisabledBackground

public Color getDisabledBackground()
Gets the disabled cell background.

Returns:
the disabled cell background

setDisabledBackground

public void setDisabledBackground(Color disabledBackground)
Sets the disabled cell background.

Parameters:
disabledBackground - the disabled background

getDisabledForeground

public Color getDisabledForeground()
Gets the disabled cell foreground.

Returns:
the disabled cell foreground

setDisabledForeground

public void setDisabledForeground(Color disabledForeground)
Sets the disabled cell foreground.

Parameters:
disabledForeground - the disabled background

getCategoryExpandedIcon

public Icon getCategoryExpandedIcon()
Gets the expanded icon. If you never set it before, this method will return the icon of UIManagerLookup.getIcon("Tree.expandedIcon").

Returns:
the expanded icon

setCategoryExpandedIcon

public void setCategoryExpandedIcon(Icon expandedIcon)
Sets the expanded icon. If you didn't set your own icon, by default we get the icon from UIManagerLookup.getIcon("Tree.expandedIcon").

Parameters:
expandedIcon - expanded icon

getCategoryCollapsedIcon

public Icon getCategoryCollapsedIcon()
Gets the collapsed icon. If you never set it before, this method will return the icon of UIManagerLookup.getIcon("Tree.collapsedIcon").

Returns:
the collapsed icon

setCategoryCollapsedIcon

public void setCategoryCollapsedIcon(Icon collapsedIcon)
Sets the collapsed icon. If you didn't set your own icon, by default we get the icon from UIManagerLookup.getIcon("Tree.collapsedIcon").

Parameters:
collapsedIcon - collapsed icon

getExpandedIcon

public Icon getExpandedIcon()
Gets the expanded icon. If you never set it before, this method will return the icon of UIManagerLookup.getIcon("Tree.expandedIcon").

Returns:
the expanded icon

getExpandedIcon

public Icon getExpandedIcon(int row)
Get the expanded icon by row.

By default, it will invoke getExpandedIcon(). You could override this method to supply different icon for different row.

Parameters:
row - the row index in the table
Returns:
the expanded icon.
See Also:
getExpandedIcon()

getCollapsedIcon

public Icon getCollapsedIcon(int row)
Get the collapsed icon by row.

By default, it will invoke getCollapsedIcon(). You could override this method to supply different icon for different row.

Parameters:
row - the row index in the table
Returns:
the collapsed icon.
See Also:
getCollapsedIcon()

setExpandedIcon

public void setExpandedIcon(Icon expandedIcon)
Sets the expanded icon. If you didn't set your own icon, by default we get the icon from UIManagerLookup.getIcon("Tree.expandedIcon").

Parameters:
expandedIcon - expanded icon

getCollapsedIcon

public Icon getCollapsedIcon()
Gets the collapsed icon. If you never set it before, this method will return the icon of UIManagerLookup.getIcon("Tree.collapsedIcon").

Returns:
the collapsed icon

setCollapsedIcon

public void setCollapsedIcon(Icon collapsedIcon)
Sets the collapsed icon. If you didn't set your own icon, by default we get the icon from UIManagerLookup.getIcon("Tree.collapsedIcon").

Parameters:
collapsedIcon - collapsed icon

getAscendingIcon

public Icon getAscendingIcon()
Gets the ascending icon used by sortable table header. If it has never be set, it will use the default ascending icon which is a triangle pointing northward.

Returns:
the ascending icon

setAscendingIcon

public void setAscendingIcon(Icon ascendingIcon)
Sets the ascending icon used by sortable table header.

Parameters:
ascendingIcon - the icon

getDescendingIcon

public Icon getDescendingIcon()
Gets the descending icon used by sortable table header. If it has never be set, it will use the default descending icon which is a triangle pointing southward.

Returns:
the descending icon

setDescendingIcon

public void setDescendingIcon(Icon descendingIcon)
Sets the descending icon used by sortable table header.

Parameters:
descendingIcon - the icon

isUseTableRendererForCategoryRow

public boolean isUseTableRendererForCategoryRow()
A flag to decide if the category row should use the regular table cell renderer. Default is false which means category row will be rendered in its own. You can set it to true so that you can customize the renderer of category row using regular table cell renderer.

Returns:
true to use table cell renderer. Otherwise, false.

setUseTableRendererForCategoryRow

public void setUseTableRendererForCategoryRow(boolean useTableRendererForCategoryRow)
Set the flag if the category row should use the regular table cell renderer. Default is false which means category row will be rendered in its own. You can set it to true so that you can customize the renderer of category row using regular table cell renderer.

Parameters:
useTableRendererForCategoryRow - true to use table cell renderer. Otherwise, false.

isPaintMarginBackground

public boolean isPaintMarginBackground()
Checks if paints the margin background.

Returns:
true if margin background will be painted.

setPaintMarginBackground

public void setPaintMarginBackground(boolean paintMarginBackground)
Parameters:
paintMarginBackground - the background

getMarginBackground

public Color getMarginBackground()
Gets the background color that is used to paint the margin.

Returns:
the background color of margin.

setMarginBackground

public void setMarginBackground(Color marginBackground)
Sets the background color that is used to paint the margin.

Parameters:
marginBackground - the background

isExpandIconVisible

public boolean isExpandIconVisible()
Get the flag indicating if the expandable icon is visible.

By default, the value is true so that in TreeTable the +/- icon is visible. You could set it to false if you want to hide the icons.

Returns:
true if the expand icon is visible. Otherwise false.

setExpandIconVisible

public void setExpandIconVisible(boolean expandIconVisible)
set the flag indicating if the expandable icon is visible.

Parameters:
expandIconVisible - the flag
See Also:
isExpandIconVisible()

isUseLnfDefaultSortIcon

public boolean isUseLnfDefaultSortIcon()
Get the flag indicating if SortableTable will use look and feel default sort icon as its default sort icon.

By default, the flag is true so that we can have the same look and feel with other swing components. If your JDK version is earlier than JDK6, even you set this flag to true, we will still use our triangle sort icon as default since those JDK versions does not have any default look and feel sort icon.

Returns:
the flag.

setUseLnfDefaultSortIcon

public void setUseLnfDefaultSortIcon(boolean useLnfDefaultSortIcon)
Set the flag indicating if SortableTable will use JDK default sort icon as its default sort icon.

Parameters:
useLnfDefaultSortIcon - the flag

JIDE 3.5.15