|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
org.jdesktop.swingx.plaf.basic.core.BasicXListUI
org.jdesktop.swingx.plaf.synth.SynthXListUI
public class SynthXListUI
TODO add type doc
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.core.BasicXListUI |
---|
BasicXListUI.FocusHandler, BasicXListUI.ListDataHandler, BasicXListUI.ListSelectionHandler, BasicXListUI.MouseInputHandler, BasicXListUI.PropertyChangeHandler |
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.plaf.basic.core.BasicXListUI |
---|
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded |
Fields inherited from interface javax.swing.plaf.synth.SynthConstants |
---|
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED |
Constructor Summary | |
---|---|
SynthXListUI()
|
Method Summary | |
---|---|
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates an instance of PropertyChangeHandler that's added to the JList by installUI(). |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent list)
Returns a new instance of SynthXListUI. |
javax.swing.plaf.synth.SynthContext |
getContext(javax.swing.JComponent c)
|
protected void |
installDefaults()
Initialize JList properties, e.g. |
protected void |
installSynthBorder()
Installs a SynthBorder from the current style, if ui-installable. |
void |
paintBorder(javax.swing.plaf.synth.SynthContext context,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Paints border with the context's style's painter. |
protected void |
uninstallDefaults()
Set the JList properties that haven't been explicitly overridden to null. |
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynthXListUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent list)
public void update(java.awt.Graphics g, javax.swing.JComponent c)
Overridden to fill background, Synth-style.
update
in class javax.swing.plaf.ComponentUI
protected java.beans.PropertyChangeListener createPropertyChangeListener()
class MyListUI extends BasicXListUI { protected PropertyChangeListener createPropertyChangeListener() { return new MyPropertyChangeListener(); } public class MyPropertyChangeListener extends PropertyChangeHandler { public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { // do some extra work when the model changes } super.propertyChange(e); } } }
Overridden to update style if appropriate.
createPropertyChangeListener
in class BasicXListUI
PropertyChangeListener
,
BasicXListUI.installUI(javax.swing.JComponent)
protected void installDefaults()
Overridden to install properties, Synth-style.
installDefaults
in class BasicXListUI
BasicXListUI.uninstallDefaults()
,
BasicXListUI.installUI(javax.swing.JComponent)
,
CellRendererPane
protected void installSynthBorder()
context
- the contextprotected void uninstallDefaults()
Overridden to uninstall properties, Synth-style, after calling super.
uninstallDefaults
in class BasicXListUI
BasicXListUI.installDefaults()
,
BasicXListUI.uninstallUI(javax.swing.JComponent)
,
CellRendererPane
public void paintBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
paintBorder
in interface SynthUI
public javax.swing.plaf.synth.SynthContext getContext(javax.swing.JComponent c)
Returns a context for the component's current state. Implemented for SynthUI interface.
PENDING JW: not entirely sure if allowed ... but need to replace SynthUI anyway?.
getContext
in interface SynthUI
java.lang.IllegalArgumentException
- if the component is not controlled by this
delegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |