|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ListUI javax.swing.plaf.basic.BasicListUI javax.swing.plaf.synth.SynthListUI
public class SynthListUI
Disabled: no SafeJ information.
Provides the Synth L&F UI delegate for
JList
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI |
---|
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler |
Field Summary |
---|
Fields inherited from class javax.swing.plaf.basic.BasicListUI |
---|
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 | |
---|---|
SynthListUI()
|
Method Summary | |
---|---|
static ComponentUI |
createUI(JComponent list)
Creates a new UI object for the given component. |
SynthContext |
getContext(JComponent c)
Returns the Context for the specified component. |
protected void |
installDefaults()
Initializes list properties such as font, foreground, and background, and adds the CellRendererPane. |
protected void |
installListeners()
Creates and installs the listeners for the JList, its model, and its selectionModel. |
void |
paintBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border. |
void |
propertyChange(PropertyChangeEvent e)
This method gets called when a bound property is changed. |
protected void |
uninstallDefaults()
Sets the list properties that have not been explicitly overridden to null . |
protected void |
uninstallListeners()
Removes the listeners from the JList, its model, and its selectionModel. |
void |
update(Graphics g,
JComponent c)
Notifies this UI delegate that it is time to paint the specified component. |
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 SynthListUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent list)
list
- component to create UI object for
public void update(Graphics g, JComponent c)
ComponentUI
JComponent
when the specified component is being painted.
By default this method fills the specified component with
its background color if its opaque
property is true
,
and then immediately calls paint
. In general this method need
not be overridden by subclasses; all look-and-feel rendering code should
reside in the paint
method.
update
in class ComponentUI
g
- the Graphics
context in which to paintc
- the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
,
JComponent.paintComponent(java.awt.Graphics)
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
SynthUI
paintBorder
in interface SynthUI
context
- a component contextg
- Graphics
to paint onx
- the X coordinatey
- the Y coordinatew
- width of the borderh
- height of the borderprotected void installListeners()
BasicListUI
installListeners
in class BasicListUI
BasicListUI.installUI(javax.swing.JComponent)
,
BasicListUI.uninstallListeners()
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
propertyChange
in interface PropertyChangeListener
e
- A PropertyChangeEvent object describing the event source
and the property that has changed.protected void uninstallListeners()
BasicListUI
uninstallListeners
in class BasicListUI
BasicListUI.uninstallUI(javax.swing.JComponent)
,
BasicListUI.installListeners()
protected void installDefaults()
BasicListUI
installDefaults
in class BasicListUI
BasicListUI.uninstallDefaults()
,
BasicListUI.installUI(javax.swing.JComponent)
,
CellRendererPane
protected void uninstallDefaults()
BasicListUI
null
. A property is considered overridden if its current value
is not a UIResource
.
uninstallDefaults
in class BasicListUI
BasicListUI.installDefaults()
,
BasicListUI.uninstallUI(javax.swing.JComponent)
,
CellRendererPane
public SynthContext getContext(JComponent c)
SynthUI
getContext
in interface SynthUI
c
- Component requesting SynthContext.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |