Implementation Note:
This class overrides
invalidate,
validate,
revalidate,
repaint,
isOpaque,
and
firePropertyChange
solely to improve performance.
If not overridden, these frequently called methods would execute code paths
that are unnecessary for the default list cell renderer.
If you write your own renderer,
take care to weigh the benefits and
drawbacks of overriding these methods.
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Class and Description |
|---|---|
| public static class | DefaultListCellRenderer.
A subclass of DefaultListCellRenderer that implements UIResource. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Border | DEFAULT_NO_FOCUS_BORDER
An empty |
| protected static Border | noFocusBorder
No focus border |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, byte oldValue, byte newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, char oldValue, char newValue)
Overrides javax. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, short oldValue, short newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, int oldValue, int newValue)
Overrides javax. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, long oldValue, long newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, float oldValue, float newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, double oldValue, double newValue)
Overrides java. Overridden for performance reasons. |
| public void | firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
Overrides javax. Overridden for performance reasons. |
| public Component | getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)
Implements javax. Return a component that has been configured to display the specified value. |
| private Border | |
| public void | |
| public boolean | Returns: true if the background is completely opaque
and differs from the JList's background;
false otherwiseOverrides javax. Overridden for performance reasons. |
| public void | |
| public void | repaint(long tm, int x, int y, int width, int height)
Overrides javax. Overridden for performance reasons. |
| public void | |
| public void | |
| public void |
| DEFAULT_NO_FOCUS_BORDER | back to summary |
|---|---|
| private static final Border DEFAULT_NO_FOCUS_BORDER An empty | |
| noFocusBorder | back to summary |
|---|---|
| protected static Border noFocusBorder No focus border | |
| DefaultListCellRenderer | back to summary |
|---|---|
| public DefaultListCellRenderer() Constructs a default renderer object for an item in a list. | |
| firePropertyChange | back to summary |
|---|---|
| protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, byte oldValue, byte newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, char oldValue, char newValue) Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, short oldValue, short newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, int oldValue, int newValue) Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, long oldValue, long newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, float oldValue, float newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, double oldValue, double newValue) Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| getListCellRendererComponent | back to summary |
|---|---|
| public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) Implements javax. Doc from javax. Return a component that has been configured to display the specified
value. That component's | |
| getNoFocusBorder | back to summary |
|---|---|
| private Border getNoFocusBorder() | |
| invalidate | back to summary |
|---|---|
| public void invalidate() Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| isOpaque | back to summary |
|---|---|
| public boolean isOpaque() Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| repaint | back to summary |
|---|---|
| public void repaint() Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
| repaint | back to summary |
|---|---|
| public void repaint(long tm, int x, int y, int width, int height) Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| repaint | back to summary |
|---|---|
| public void repaint(Rectangle r) Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| revalidate | back to summary |
|---|---|
| public void revalidate() Overrides javax. Overridden for performance reasons. See the Implementation Note for more information.
| |
| validate | back to summary |
|---|---|
| public void validate() Overrides java. Overridden for performance reasons. See the Implementation Note for more information.
| |
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Access | Constructor and Description |
|---|---|
| public |
| UIResource | back to summary |
|---|---|
| public UIResource() Constructs a | |