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"
|| ((propertyName == "font" || propertyName == "foreground")
&& oldValue != newValue
&& getClientProperty(javax.swing.plaf.basic.BasicHTML.propertyKey) != null)) {
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());
Color bg = null;
Color fg = null;
JList.DropLocation dropLocation = list.getDropLocation();
if (dropLocation != null
&& !dropLocation.isInsert()
&& dropLocation.getIndex() == index) {
bg = UIManager.getColor("List.dropCellBackground");
fg = UIManager.getColor("List.dropCellForeground");
isSelected = true;
}
if (isSelected) {
setBackground(bg == null ? list.getSelectionBackground() : bg);
setForeground(fg == null ? list.getSelectionForeground() : fg);
}
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 = getNoFocusBorder();
}
setBorder(border);
return this;
|
private static javax.swing.border.Border | getNoFocusBorder()
if (System.getSecurityManager() != null) {
return SAFE_NO_FOCUS_BORDER;
} else {
return noFocusBorder;
}
|
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(java.awt.Rectangle r)Overridden for performance reasons.
See the Implementation Note
for more information.
|
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 | 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.
|