|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| 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
javax.swing.plaf.synth.SynthListUI
public class SynthListUI extends BasicListUI implements PropertyChangeListener, SynthUI
Provides the Synth L&F UI delegate for
JList.
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI |
|---|
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler |
| Modifier and Type | Field and Description |
|---|
| 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 and Description |
|---|
SynthListUI()
|
| Modifier and Type | Method and Description |
|---|---|
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 to repaint 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)
BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent) method.
In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the paint method.
update in class ComponentUIg - the Graphics object used for paintingc - the component being paintedBasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)
public void paintBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
SynthUI
paintBorder in interface SynthUIcontext - 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 BasicListUIBasicListUI.installUI(javax.swing.JComponent),
BasicListUI.uninstallListeners()public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
propertyChange in interface PropertyChangeListenere - A PropertyChangeEvent object describing the event source
and the property that has changed.protected void uninstallListeners()
BasicListUI
uninstallListeners in class BasicListUIBasicListUI.uninstallUI(javax.swing.JComponent),
BasicListUI.installListeners()protected void installDefaults()
BasicListUI
installDefaults in class BasicListUIBasicListUI.uninstallDefaults(),
BasicListUI.installUI(javax.swing.JComponent),
CellRendererPaneprotected void uninstallDefaults()
BasicListUInull. A property is considered overridden if its current value
is not a UIResource.
uninstallDefaults in class BasicListUIBasicListUI.installDefaults(),
BasicListUI.uninstallUI(javax.swing.JComponent),
CellRendererPanepublic SynthContext getContext(JComponent c)
SynthUI
getContext in interface SynthUIc - Component requesting SynthContext.
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.