|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.DefaultListCellRenderer
public class DefaultListCellRenderer
The default implementation ListCellRenderer. It provides a standard
renderer for data objects of all types via Object.toString().
| Nested Class Summary | |
|---|---|
static class |
DefaultListCellRenderer.UIResource
Subclasses DefaultListCellRenderers and implements
UIResource. |
| 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 |
noFocusBorder
This border is used whenever renderer doesn't have a focus. |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| 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 |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultListCellRenderer()
|
|
| Method Summary | |
|---|---|
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Fires a property change for a primitive boolean property. |
void |
firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(String propertyName,
char oldValue,
char newValue)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(String propertyName,
double oldValue,
double newValue)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(String propertyName,
float oldValue,
float newValue)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
Fires a property change for a primitive integer property. |
void |
firePropertyChange(String propertyName,
long oldValue,
long newValue)
Report a change in a bound property to any registered property listeners. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(String propertyName,
short oldValue,
short newValue)
Report a change in a bound property to any registered property listeners. |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent |
void |
repaint(long tm,
int x,
int y,
int w,
int h)
Mark the described region of this component as dirty in the current RepaintManager. |
void |
repaint(Rectangle rect)
Mark the described region of this component as dirty in the current RepaintManager. |
void |
revalidate()
Queue a an invalidation and revalidation of this component, using RepaintManager.addInvalidComponent(javax.swing.JComponent). |
void |
validate()
Re-lays out the components in this container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Border noFocusBorder
| Constructor Detail |
|---|
public DefaultListCellRenderer()
| Method Detail |
|---|
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRendererlist - 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
public void validate()
Container
validate in class ContainerComponent.invalidate(),
Component.doLayout(),
LayoutManager,
Container.validate()public void revalidate()
JComponentRepaintManager.addInvalidComponent(javax.swing.JComponent).
revalidate in class JComponent
public void repaint(long tm,
int x,
int y,
int w,
int h)
JComponentRepaintManager. This will queue an asynchronous repaint using
the system painting thread in the near future.
repaint in class JComponenttm - ignoredx - coordinate of the region to mark as dirtyy - coordinate of the region to mark as dirtyw - dimension of the region to mark as dirtyh - dimension of the region to mark as dirtyComponent.update(Graphics)public void repaint(Rectangle rect)
JComponentRepaintManager. This will queue an asynchronous repaint using
the system painting thread in the near future.
repaint in class JComponentrect - The rectangle to mark as dirty
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
char oldValue,
char newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
short oldValue,
short newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
int oldValue,
int newValue)
JComponent
firePropertyChange in class JComponentpropertyName - the name of the propertyoldValue - the old value of the propertynewValue - the new value of the property
public void firePropertyChange(String propertyName,
long oldValue,
long newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
float oldValue,
float newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
double oldValue,
double newValue)
Component
firePropertyChange in class ComponentpropertyName - the property that changedoldValue - the old property valuenewValue - the new property value
public void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
JComponent
firePropertyChange in class JComponentpropertyName - the name of the propertyoldValue - the old value of the propertynewValue - the new value of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||