Class ITunesTableUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TableUI
-
- javax.swing.plaf.basic.BasicTableUI
-
- com.explodingpixels.macwidgets.plaf.ITunesTableUI
-
public class ITunesTableUI extends javax.swing.plaf.basic.BasicTableUIA UI delegate that renders an iTunes style table.
Sorting indicators will be rendered if a
TableUtils.SortDelegateis installed on the associatedJTablevia theTableUtils.makeSortable(javax.swing.JTable, com.explodingpixels.widgets.TableUtils.SortDelegate)method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.awt.ColorEVEN_ROW_COLORprotected static java.awt.ColorSELECTION_ACTIVE_BOTTOM_BORDER_COLORprotected static java.awt.ColorSELECTION_ACTIVE_SELECTION_BACKGROUND_COLORprotected static java.awt.ColorSELECTION_ACTIVE_SELECTION_FOREGROUND_COLORprotected static java.awt.ColorSELECTION_INACTIVE_BOTTOM_BORDER_COLORprotected static java.awt.ColorSELECTION_INACTIVE_SELECTION_BACKGROUND_COLORprotected static java.awt.ColorSELECTION_INACTIVE_SELECTION_FOREGROUND_COLORprotected static java.awt.ColorTABLE_GRID_COLORprotected static java.awt.ColorTRANSPARENT_COLOR
-
Constructor Summary
Constructors Constructor Description ITunesTableUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.CellRendererPanecreateCustomCellRendererPane()Creates a customCellRendererPanethat sets the renderer component to be non-opqaque if the associated row isn't selected.javax.swing.border.BordergetRowBorder()javax.swing.border.BordergetSelectedRowBorder()protected voidinstallListeners()voidinstallUI(javax.swing.JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicTableUI
createFocusListener, createKeyListener, createMouseInputListener, createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, paint, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
-
-
-
Field Detail
-
EVEN_ROW_COLOR
protected static final java.awt.Color EVEN_ROW_COLOR
-
TABLE_GRID_COLOR
protected static final java.awt.Color TABLE_GRID_COLOR
-
SELECTION_ACTIVE_SELECTION_FOREGROUND_COLOR
protected static final java.awt.Color SELECTION_ACTIVE_SELECTION_FOREGROUND_COLOR
-
SELECTION_ACTIVE_SELECTION_BACKGROUND_COLOR
protected static final java.awt.Color SELECTION_ACTIVE_SELECTION_BACKGROUND_COLOR
-
SELECTION_INACTIVE_SELECTION_FOREGROUND_COLOR
protected static final java.awt.Color SELECTION_INACTIVE_SELECTION_FOREGROUND_COLOR
-
SELECTION_INACTIVE_SELECTION_BACKGROUND_COLOR
protected static final java.awt.Color SELECTION_INACTIVE_SELECTION_BACKGROUND_COLOR
-
SELECTION_ACTIVE_BOTTOM_BORDER_COLOR
protected static final java.awt.Color SELECTION_ACTIVE_BOTTOM_BORDER_COLOR
-
SELECTION_INACTIVE_BOTTOM_BORDER_COLOR
protected static final java.awt.Color SELECTION_INACTIVE_BOTTOM_BORDER_COLOR
-
TRANSPARENT_COLOR
protected static final java.awt.Color TRANSPARENT_COLOR
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicTableUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicTableUI
-
getRowBorder
public javax.swing.border.Border getRowBorder()
-
getSelectedRowBorder
public javax.swing.border.Border getSelectedRowBorder()
-
createCustomCellRendererPane
protected javax.swing.CellRendererPane createCustomCellRendererPane()
Creates a customCellRendererPanethat sets the renderer component to be non-opqaque if the associated row isn't selected. This customCellRendererPaneis needed because a table UI delegate has no prepare renderer likeJTablehas.
-
-