com.jidesoft.plaf.windows
Class WindowsCellStyleTableHeaderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
com.jidesoft.plaf.windows.WindowsCellStyleTableHeaderUI
- All Implemented Interfaces:
- DelegateTableHeaderUI
- Direct Known Subclasses:
- WindowsSortableTableHeaderUI
public class WindowsCellStyleTableHeaderUI
- extends com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
- implements DelegateTableHeaderUI
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsTableHeaderUI |
installUI, rolloverColumnUpdated, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_delegate
protected TableHeaderUIDelegate _delegate
WindowsCellStyleTableHeaderUI
public WindowsCellStyleTableHeaderUI()
createUI
public static ComponentUI createUI(JComponent h)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class BasicTableHeaderUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class BasicTableHeaderUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
paint
in class BasicTableHeaderUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class BasicTableHeaderUI
createDelegate
protected TableHeaderUIDelegate createDelegate()
- Creates a UI delegate instance to paint the header.
It will first try to get the class name from UIDefaults. You can custmoize the UI delegate class by setting class
name to the UIDefaults with corresponding key. If it's not configured,
createDefaultDelegate()
will be
used to create the UI delegate instance.
- Returns:
- the UI delegate instance
createDefaultDelegate
protected TableHeaderUIDelegate createDefaultDelegate()
- Creates the default UI delegate instance to paint the header.
- Returns:
- the default UI delegate instance
getHeaderUIDelegate
public TableHeaderUIDelegate getHeaderUIDelegate()
- Description copied from interface:
DelegateTableHeaderUI
- Gets the header UI delegate instance.
- Specified by:
getHeaderUIDelegate
in interface DelegateTableHeaderUI
- Returns:
- the header UI delegate instance.
getRolloverColumn
public int getRolloverColumn()
- Description copied from interface:
DelegateTableHeaderUI
- Gets the rollover column.
- Specified by:
getRolloverColumn
in interface DelegateTableHeaderUI
- Overrides:
getRolloverColumn
in class BasicTableHeaderUI
- Returns:
- the rollover column index. -1 if the mouse is not over the column or is dragging on the column.
setRolloverColumn
public void setRolloverColumn(int rolloverColumn)
- Description copied from interface:
DelegateTableHeaderUI
- Sets the rollover column.
- Specified by:
setRolloverColumn
in interface DelegateTableHeaderUI
- Parameters:
rolloverColumn
- the rollover column index
createMouseInputListener
protected MouseInputListener createMouseInputListener()
- Overrides:
createMouseInputListener
in class BasicTableHeaderUI