javax.swing.table.JTableHeader .
| Modifier and Type | Class and Description |
|---|---|
| private class | SynthTableHeaderUI.
The |
| Modifier and Type | Field and Description |
|---|---|
| private TableCellRenderer | |
| private SynthStyle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: the UI objectcomponent to create UI object for h)Hides javax. Creates a new UI object for the given component. |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| protected void | installDefaults()
Overrides javax. Initializes JTableHeader properties such as font, foreground, and background. |
| protected void | installListeners()
Overrides javax. Attaches listeners to the JTableHeader. |
| public void | paint(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Paints the specified component according to the Look and Feel. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| public void | propertyChange(PropertyChangeEvent evt)
Implements java. This method gets called when a bound property is changed. |
| protected void | rolloverColumnUpdated(int oldColumn, int newColumn)
Overrides javax. This method gets called every time when a rollover column in the table header is updated. |
| protected void | uninstallDefaults()
Overrides javax. Uninstalls default properties |
| protected void | uninstallListeners()
Overrides javax. Unregisters listeners. |
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |
| prevRenderer | back to summary |
|---|---|
| private TableCellRenderer prevRenderer | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| SynthTableHeaderUI | back to summary |
|---|---|
| public SynthTableHeaderUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent h) Hides javax. Creates a new UI object for the given component.
| |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component.
| |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, int state) | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Initializes JTableHeader properties such as font, foreground, and background. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Attaches listeners to the JTableHeader.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Paints the specified component according to the Look and Feel. This method is not used by Synth Look and Feel.
Painting is handled by the
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the specified component.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the border.
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent evt) Implements java. Doc from java. This method gets called when a bound property is changed.
| |
| rolloverColumnUpdated | back to summary |
|---|---|
| protected void rolloverColumnUpdated(int oldColumn, int newColumn) Overrides javax. Doc from javax. This method gets called every time when a rollover column in the table header is updated. Every look and feel that supports a rollover effect in a table header should override this method and repaint the header.
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Uninstalls default properties
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Overrides javax. Doc from javax. Unregisters listeners.
| |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Notifies this UI delegate to repaint the specified component.
This method paints the component background, then calls
the In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JTableHeader c) | |
DefaultTableCellHeaderRenderer installed by the UI.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Component | getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Overrides sun. Implements javax. Returns the default table cell renderer. |
| public void | setBorder(Border border)
Overrides javax. Sets the border of this component. |
| HeaderRenderer | back to summary |
|---|---|
| pack-priv HeaderRenderer() | |
| getTableCellRendererComponent | back to summary |
|---|---|
| public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Overrides sun. Implements javax. Doc from javax. Returns the default table cell renderer.
During a printing operation, this method will be called with
| |
| setBorder | back to summary |
|---|---|
| public void setBorder(Border border) Overrides javax. Doc from javax. Sets the border of this component. The
Although technically you can set the border on any object
that inherits from This is a bound property.
| |