Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.DefaultListCellRenderer
ListCellRenderer
. It provides a standard
renderer for data objects of all types via Object.toString()
.
Nested Class Summary | |
static class |
|
Nested classes/interfaces inherited from class javax.swing.JLabel | |
JLabel.AccessibleJLabel |
Nested classes/interfaces inherited from class javax.swing.JComponent | |
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container | |
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component | |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
Field Summary | |
protected static Border |
|
Fields inherited from class javax.swing.JComponent | |
TOOL_TIP_TEXT_KEY , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW , accessibleContext , listenerList , ui |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver | |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
Fields inherited from interface javax.swing.SwingConstants | |
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
void |
|
void |
|
Component |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
protected static Border noFocusBorder
This border is used whenever renderer doesn't have a focus.
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
Fires a property change for a primitive boolean property.
- Overrides:
- firePropertyChange in interface JComponent
- Parameters:
oldValue
- the old value of the propertynewValue
- the new value of the property
public void firePropertyChange(String propertyName, byte oldValue, byte newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public void firePropertyChange(String propertyName, char oldValue, char newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public void firePropertyChange(String propertyName, double oldValue, double newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public void firePropertyChange(String propertyName, float oldValue, float newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public void firePropertyChange(String propertyName, int oldValue, int newValue)
Fires a property change for a primitive integer property.
- Overrides:
- firePropertyChange in interface JComponent
- Parameters:
oldValue
- the old value of the propertynewValue
- the new value of the property
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
public void firePropertyChange(String propertyName, long oldValue, long newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public void firePropertyChange(String propertyName, short oldValue, short newValue)
Report a change in a bound property to any registered property listeners.
- Overrides:
- firePropertyChange in interface Component
- Parameters:
propertyName
- the property that changedoldValue
- the old property valuenewValue
- the new property value
- Since:
- 1.5
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
- Specified by:
- getListCellRendererComponent in interface ListCellRenderer
- Parameters:
list
- JList list for the 'value'value
- object that should be rendered in the cellindex
- index of the cellisSelected
- draw cell highlighted if isSelected is truecellHasFocus
- draw focus rectangle around cell if the cell has focus
- Returns:
- Component that will be painted to the desired cell.
public void repaint(Rectangle rect)
Mark the described region of this component as dirty in the currentRepaintManager
. This will queue an asynchronous repaint using the system painting thread in the near future.
- Overrides:
- repaint in interface JComponent
- Parameters:
public void repaint(long tm, int x, int y, int w, int h)
Mark the described region of this component as dirty in the currentRepaintManager
. This will queue an asynchronous repaint using the system painting thread in the near future.
- Overrides:
- repaint in interface JComponent
- Parameters:
tm
- ignoredx
- coordinate of the region to mark as dirtyy
- coordinate of the region to mark as dirty
public void revalidate()
Queue a an invalidation and revalidation of this component, usingRepaintManager.addInvalidComponent(JComponent)
.
- Overrides:
- revalidate in interface JComponent
public void validate()
Called to ensure that the layout for this component is valid. This is usually called on containers.