|
Quaqua 5.4.1 2009-07-14 | ||||||||
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
ch.randelshofer.quaqua.QuaquaListUI
public class QuaquaListUI
QuaquaListUI for Java 1.4.
Nested Class Summary | |
---|---|
class |
QuaquaListUI.FocusHandler
This inner class is marked "public" due to a compiler bug. |
protected class |
QuaquaListUI.ListDataHandler
|
class |
QuaquaListUI.MouseInputHandler
Mouse input, and focus handling for JList. |
class |
QuaquaListUI.PropertyChangeHandler
The PropertyChangeListener that's added to the JList at installUI time. |
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI |
---|
javax.swing.plaf.basic.BasicListUI.ListSelectionHandler |
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 |
Constructor Summary | |
---|---|
QuaquaListUI()
Creates a new instance. |
Method Summary | |
---|---|
protected java.awt.event.FocusListener |
createFocusListener()
|
protected javax.swing.event.ListDataListener |
createListDataListener()
|
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
Creates a delegate that implements MouseInputListener. |
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 QuaquaListUI. |
protected void |
installDefaults()
Initialize JList properties, e.g. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint the rows that intersect the Graphics objects clipRect. |
protected void |
paintCell(java.awt.Graphics g,
int row,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
void |
paintStripes(java.awt.Graphics g,
javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.basic.BasicListUI |
---|
convertRowToY, convertYToRow, createListSelectionListener, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installListeners, installUI, locationToIndex, maybeUpdateLayoutState, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateLayoutState |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuaquaListUI()
Method Detail |
---|
public void paintStripes(java.awt.Graphics g, javax.swing.JComponent c)
protected void paintCell(java.awt.Graphics g, int row, java.awt.Rectangle rowBounds, javax.swing.ListCellRenderer cellRenderer, javax.swing.ListModel dataModel, javax.swing.ListSelectionModel selModel, int leadIndex)
paintCell
in class javax.swing.plaf.basic.BasicListUI
paint(java.awt.Graphics, javax.swing.JComponent)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicListUI
paintCell(java.awt.Graphics, int, java.awt.Rectangle, javax.swing.ListCellRenderer, javax.swing.ListModel, javax.swing.ListSelectionModel, int)
protected void installDefaults()
installDefaults
in class javax.swing.plaf.basic.BasicListUI
BasicListUI.uninstallDefaults()
,
BasicListUI.installUI(javax.swing.JComponent)
,
CellRendererPane
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent list)
protected javax.swing.event.MouseInputListener createMouseInputListener()
class MyListUI extends QuaquaListUI { protected MouseInputListener createMouseInputListener() { return new MyMouseInputHandler(); } public class MyMouseInputHandler extends MouseInputHandler { public void mouseMoved(MouseEvent e) { // do some extra work when the mouse moves super.mouseMoved(e); } } }
createMouseInputListener
in class javax.swing.plaf.basic.BasicListUI
QuaquaListUI.MouseInputHandler
,
BasicListUI.installUI(javax.swing.JComponent)
protected java.awt.event.FocusListener createFocusListener()
createFocusListener
in class javax.swing.plaf.basic.BasicListUI
protected javax.swing.event.ListDataListener createListDataListener()
createListDataListener
in class javax.swing.plaf.basic.BasicListUI
protected java.beans.PropertyChangeListener createPropertyChangeListener()
class MyListUI extends QuaquaListUI { 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); } } }
createPropertyChangeListener
in class javax.swing.plaf.basic.BasicListUI
PropertyChangeListener
,
BasicListUI.installUI(javax.swing.JComponent)
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |