uic.themes
Class UICListUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ListUI
          extended by javax.swing.plaf.basic.BasicListUI
              extended by uic.themes.UICListUI

public class UICListUI
extends BasicListUI

The UICListUI implements a better (usability wise) method of selecting items in a multiitem list, plus fixes some Swing bugs.

Author:
Rick Oosterholt & Arian Bloemberg, Roy van der Kuil

Nested Class Summary
 class UICListUI.KeyInputListener
           
 class UICListUI.MouseInputHandler
          Mouse input, and focus handling for JList.
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, 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
 
Constructor Summary
UICListUI()
           
 
Method Summary
protected  KeyListener createKeyListener()
           
protected  MouseInputListener createMouseInputListener()
           
static ComponentUI createUI(JComponent l)
           
 Dimension getMaximumSize(JComponent c)
           
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
           
protected  void installListeners()
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicListUI
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createPropertyChangeListener, getCellBounds, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installUI, locationToIndex, maybeUpdateLayoutState, paint, paintCell, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateLayoutState
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICListUI

public UICListUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent l)

installListeners

protected void installListeners()
Overrides:
installListeners in class BasicListUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class BasicListUI

createMouseInputListener

protected MouseInputListener createMouseInputListener()
Overrides:
createMouseInputListener in class BasicListUI

createKeyListener

protected KeyListener createKeyListener()

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class BasicListUI

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence