| GNU Classpath (0.91) | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.swing.plaf.ComponentUIjavax.swing.plaf.TableHeaderUIjavax.swing.plaf.basic.BasicTableHeaderUIpublic class BasicTableHeaderUIextends TableHeaderUINested Class Summary | |
class |
|
Field Summary | |
protected JTableHeader |
|
protected MouseInputListener |
|
protected CellRendererPane |
|
Constructor Summary | |
| |
Method Summary | |
protected MouseInputListener |
|
static ComponentUI |
|
Dimension |
|
protected void | |
protected void | |
protected void |
|
void |
|
void |
|
protected void | |
protected void | |
protected void |
|
void |
|
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update | |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | |
protected MouseInputListener mouseInputListener
The mouse input listener, responsible for mouse manipulations with the table header.
public BasicTableHeaderUI()
Construct a new BasicTableHeaderUI, create mouse listeners.
protected MouseInputListener createMouseInputListener()
Create and return the mouse input listener.
- Returns:
- the mouse listener (
BasicTableHeaderUI.MouseInputHandler, if not overridden.
public static ComponentUI createUI(JComponent h)
Creates a delegate object for the specified component. Users should use thecreateUImethod of a suitable subclass. The implementation ofComponentUIalways throws an error.
- Overrides:
- createUI in interface ComponentUI
- Parameters:
public Dimension getPreferredSize(JComponent ignored)
Get the preferred header size.
- Overrides:
- getPreferredSize in interface ComponentUI
- Parameters:
ignored- unused
- Returns:
- the preferred size of the associated header.
protected void installKeyboardActions() throws gnu.classpath.NotImplementedException
protected void installListeners()
Add the mouse listener and the mouse motion listener to the table header. The listeners support table column resizing and rearrangement by mouse.
public void installUI(JComponent c)
Sets up the specified component so it conforms the the design guidelines of the implemented look and feel. When the look and feel changes, aComponentUIdelegate is created. The delegate object then receives aninstallUImessage. This method should perform the following tasks:
- Set visual properties such as borders, fonts, colors, or icons. However, no change should be performed for those properties whose values have been directly set by the client application. To allow the distinction, LookAndFeels are expected to use values that implement the
UIResourcemarker interface, such asBorderUIResourceorColorUIResource.- If necessary, install a
LayoutManager.- Embed custom sub-components. For instance, the UI delegate for a
JSplitPanemight install a special component for the divider.- Register event listeners.
- Set up properties related to keyborad navigation, such as mnemonics or focus traversal policies.
- Overrides:
- installUI in interface ComponentUI
- Parameters:
c- the component for which this delegate will provide services.
public void paint(Graphics gfx, JComponent c)
Repaint the table header.
- Overrides:
- paint in interface ComponentUI
protected void uninstallKeyboardActions() throws gnu.classpath.NotImplementedException
public void uninstallUI(JComponent c)
Puts the specified component into the state it had beforeComponentUI.installUI(JComponent)was called.
- Overrides:
- uninstallUI in interface ComponentUI
- Parameters:
c- the component for which this delegate has provided services.
| GNU Classpath (0.91) |