|
||||||||||
| 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
edu.utk.cs.icl.rest.swing.LocCellRenderer
List cell renderer for LocInfo objects. Displays the tiny icon with the name displayed to the right as the list row.
| Nested Class Summary | |
static class |
LocCellRenderer.UIResource
UI Resource class for LocCellRenderer, nothing special done so implemented here |
| Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected static Border |
noFocusBorder
Border of the Cell |
| 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 | |
LocCellRenderer()
Constructs a new list cell renderer for a LocInfo |
|
| Method Summary | |
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
char oldValue,
char newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
double oldValue,
double newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
float oldValue,
float newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
Performance improvment here to do nothing. |
void |
firePropertyChange(String propertyName,
long oldValue,
long newValue)
Performance improvment here to do nothing. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Performance improvment here to do nothing except if propertyName is text then passes the call to super |
void |
firePropertyChange(String propertyName,
short oldValue,
short newValue)
Performance improvment here to do nothing. |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Custom renderer returning the appropriate component for the passed values |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Performance improvment here to do nothing. |
void |
repaint(Rectangle r)
Performance improvment here to do nothing. |
void |
revalidate()
Performance improvment here to do nothing. |
void |
setCurrentGrp(String group)
Deprecated. Works correctly, however it make is more difficult to maintain the appropriate assocations between lists. |
void |
validate()
Performance improvment here to do nothing. |
| 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 LocCellRenderer()
| Method Detail |
public void setCurrentGrp(String group)
group - Group to diplay
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRendererlist - Used to match the component with the current lists default values, such as the default backgroud and selection background colors.value - Object to display in the list. Supported objects are String and LocInfo.
LocInfo displayed with Icon and then text while text is just displayed.index - Index of the object in the list. Can be used to alternate the colors and other such things.isSelected - Used to change the display values of the objectcellHasFocus - Again used to change the display attributes of the object
public void firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
char oldValue,
char newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
short oldValue,
short newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
int oldValue,
int newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
long oldValue,
long newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
float oldValue,
float newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
double oldValue,
double newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
public void repaint(long tm,
int x,
int y,
int width,
int height)
tm - none necessaryx - none necessaryy - none necessarywidth - none necessaryheight - none necessarypublic void repaint(Rectangle r)
r - none necessarypublic void revalidate()
public void validate()
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
propertyName - none necessaryoldValue - none necessarynewValue - none necessary
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||