Methods Summary |
---|
protected void | firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
// Strings get interned...
if (propertyName=="text")
super.firePropertyChange(propertyName, oldValue, newValue);
|
public void | firePropertyChange(java.lang.String propertyName, byte oldValue, byte newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, char oldValue, char newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, short oldValue, short newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public java.awt.Component | getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
setComponentOrientation(list.getComponentOrientation());
if (isSelected) {
setBackground(list.getSelectionBackground());
setForeground(list.getSelectionForeground());
}
else {
setBackground(list.getBackground());
setForeground(list.getForeground());
}
if (value instanceof Icon) {
setIcon((Icon)value);
setText("");
}
else {
setIcon(null);
setText((value == null) ? "" : value.toString());
}
setEnabled(list.isEnabled());
setFont(list.getFont());
Border border = null;
if (cellHasFocus) {
if (isSelected) {
border = UIManager.getBorder("List.focusSelectedCellHighlightBorder");
}
if (border == null) {
border = UIManager.getBorder("List.focusCellHighlightBorder");
}
} else {
border = noFocusBorder;
}
setBorder(border);
return this;
|
public void | invalidate()Overridden for performance reasons.
See the Implementation Note
for more information.
|
public boolean | isOpaque()Overridden for performance reasons.
See the Implementation Note
for more information.
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) &&
back.equals(p.getBackground()) &&
p.isOpaque();
return !colorMatch && super.isOpaque();
|
public void | repaint()Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | repaint(long tm, int x, int y, int width, int height)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | repaint(java.awt.Rectangle r)Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | revalidate()Overridden for performance reasons.
See the Implementation Note
for more information.
|
public void | validate()Overridden for performance reasons.
See the Implementation Note
for more information.
|