| javax.swing.plaf.basic.BasicTableUI org.jvnet.substance.SubstanceTableUI
Inner Class :protected class CellRepaintCallback extends FadeTrackerAdapter | |
Inner Class :protected class RowRepaintCallback extends FadeTrackerAdapter | |
Inner Class :protected class ColumnRepaintCallback extends FadeTrackerAdapter | |
Inner Class :protected static class TableCellId implements Comparable | |
Inner Class :protected static class TableColumnId implements Comparable | |
Inner Class :protected static class TableRowId implements Comparable | |
Method Summary | |
public static ComponentUI | createUI(JComponent c) | public ComponentState | getCellState(TableCellId cellIndex) Returns the current state for the specified cell.
Parameters: cellIndex - Cell index. | public Comparable> | getId(int row, int column) Returns a comparable ID for the specified location. | public ComponentState | getPrevCellState(TableCellId cellIndex) Returns the previous state for the specified cell.
Parameters: cellIndex - Cell index. | public int | getRolloverColumnIndex() Returns the index of the rollover column. | protected boolean | hasAnimations() Checks whether the table has animations. | public boolean | hasRolloverAnimations() Checks whether the table has rollover animations. | public boolean | hasSelectionAnimations() Checks whether the table has selection animations. | protected void | installDefaults() | protected void | installListeners() | protected void | installRendererIfNecessary(Class> clazz, TableCellRenderer renderer) Installs Substance-specific renderers for column classes that don't have
application-specific renderers installed by the user code. | public boolean | isFocusedCell(int row, int column) Returns indication whether the specified cell has focus.
Parameters: row - Cell row index. Parameters: column - Cell column index. | public void | paint(Graphics g, JComponent c) Paint a representation of the table instance that was set
in installUI(). | protected void | paintCell(Graphics g, Rectangle cellRect, int row, int column) | protected void | syncSelection() Synchronizes the current selection state. | protected void | uninstallDefaults() | protected void | uninstallListeners() | protected void | uninstallRendererIfNecessary(Class> clazz, TableCellRenderer renderer) Uninstalls default Substance renderers that were installed in
SubstanceTableUI.installRendererIfNecessary(Class,TableCellRenderer) . | public void | update(Graphics g, JComponent c) |
focusedColumn | protected int focusedColumn(Code) | | Column index of the focused cell.
|
focusedRow | protected int focusedRow(Code) | | Row index of the focused cell.
|
rolledOverColumn | protected int rolledOverColumn(Code) | | Holds the currently rolled-over column index, or -1 if
none such. This is used for the table header animations.
|
rolledOverId | protected Comparable> rolledOverId(Code) | | Holds the currently rolled-over row-column index, or null
if none such.
|
selectedIndices | protected Map<TableCellId, Object> selectedIndices(Code) | | Holds the list of currently selected row-column indexes.
|
substanceFadeRolloverListener | protected RolloverFadeListener substanceFadeRolloverListener(Code) | | Listener for fade animations on table rollovers.
|
substanceFadeSelectionListener | protected TableStateListener substanceFadeSelectionListener(Code) | | Listener for fade animations on list selections.
|
substancePropertyChangeListener | protected PropertyChangeListener substancePropertyChangeListener(Code) | | Listener that listens to changes on table properties.
|
SubstanceTableUI | public SubstanceTableUI()(Code) | | Creates a UI delegate for table.
|
getCellState | public ComponentState getCellState(TableCellId cellIndex)(Code) | | Returns the current state for the specified cell.
Parameters: cellIndex - Cell index. The current state for the specified cell. |
getId | public Comparable> getId(int row, int column)(Code) | | Returns a comparable ID for the specified location. The result will be
one of
TableRowId ,
TableColumnId or
TableCellId ,
based on the row and column selection modes of the table.
Parameters: row - Row index. Parameters: column - Column index. Comparable ID for the specified location. |
getPrevCellState | public ComponentState getPrevCellState(TableCellId cellIndex)(Code) | | Returns the previous state for the specified cell.
Parameters: cellIndex - Cell index. The previous state for the specified cell. |
getRolloverColumnIndex | public int getRolloverColumnIndex()(Code) | | Returns the index of the rollover column.
The index of the rollover column. |
hasAnimations | protected boolean hasAnimations()(Code) | | Checks whether the table has animations.
true if the table has animations,false otherwise. |
hasRolloverAnimations | public boolean hasRolloverAnimations()(Code) | | Checks whether the table has rollover animations.
true if the table has rollover animations,false otherwise. |
hasSelectionAnimations | public boolean hasSelectionAnimations()(Code) | | Checks whether the table has selection animations.
true if the table has selection animations,false otherwise. |
installDefaults | protected void installDefaults()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
installRendererIfNecessary | protected void installRendererIfNecessary(Class> clazz, TableCellRenderer renderer)(Code) | | Installs Substance-specific renderers for column classes that don't have
application-specific renderers installed by the user code.
Parameters: clazz - Column class. Parameters: renderer - Default renderer for the specified column class. |
isFocusedCell | public boolean isFocusedCell(int row, int column)(Code) | | Returns indication whether the specified cell has focus.
Parameters: row - Cell row index. Parameters: column - Cell column index. true If the focus is on the specified cell,false otherwise. |
paint | public void paint(Graphics g, JComponent c)(Code) | | Paint a representation of the table instance that was set
in installUI().
|
syncSelection | protected void syncSelection()(Code) | | Synchronizes the current selection state.
Parameters: e - Selection event. |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
|
|