Sky View Café - Java

org.shetline.gui.laf.zinc
Class ZincComboBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ComboBoxUI
          extended by javax.swing.plaf.basic.BasicComboBoxUI
              extended by javax.swing.plaf.metal.MetalComboBoxUI
                  extended by org.shetline.gui.laf.zinc.ZincComboBoxUI

public class ZincComboBoxUI
extends MetalComboBoxUI


Nested Class Summary
protected static class ZincComboBoxUI.ComboBoxButtonIcon
          The arrow button used in comboboxes.
protected  class ZincComboBoxUI.TableCellEditorPropertyChangeHandler
          Listens to changes in the table cell editor client property and updates the default editor - if any - to use the correct insets for this case.
protected  class ZincComboBoxUI.ZincComboBoxLayoutManager
          This layout manager handles the 'standard' layout of combo boxes.
protected static class ZincComboBoxUI.ZincComboPopup
          Differs from the BasicComboPopup in that it uses the standard popup menu border and honors an optional popup prototype display value.
protected  class ZincComboBoxUI.ZincPropertyChangeListener
          Overridden to use ZincComboBoxButton instead of a MetalComboBoxButton.
 
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalComboBoxUI
MetalComboBoxUI.MetalComboBoxLayoutManager, MetalComboBoxUI.MetalComboPopup, MetalComboBoxUI.MetalPropertyChangeListener
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler
 
Field Summary
protected  ActionListener hackActionListener
           
protected static boolean hackingMayBeRequired
           
protected static boolean hackingValidated
           
protected  ListSelectionListener hackListListener
           
protected  PopupMenuListener hackPopupListener
           
protected  Object lastSelection
           
protected  PropertyChangeListener propertyChangeListener
           
protected  boolean tableCellEditor
           
protected  boolean waitingForComboBoxAction
           
 
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener
 
Constructor Summary
ZincComboBoxUI()
           
 
Method Summary
protected  JButton createArrowButton()
           
protected  ComboBoxEditor createEditor()
           
protected  LayoutManager createLayoutManager()
           
protected  ComboPopup createPopup()
           
 PropertyChangeListener createPropertyChangeListener()
           
protected  ListCellRenderer createRenderer()
           
static ComponentUI createUI(JComponent b)
           
protected static int getEditableButtonWidth()
           
 Dimension getMinimumSize(JComponent c)
          The minimum size is the size of the display area plus insets plus the button.
 Dimension getPreferredSize(JComponent c)
           
protected  void installHackListeners()
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
protected  boolean isToolBarComboBox(JComponent c)
           
protected  Rectangle rectangleForCurrentValue()
          Returns the area that is reserved for drawing the currently selected item.
protected  void removeHackListeners()
           
protected  void uninstallListeners()
           
 void update(Graphics g, JComponent c)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalComboBoxUI
configureEditor, editablePropertyChanged, getBaseline, layoutComboBox, paint, paintCurrentValue, paintCurrentValueBackground, removeListeners, unconfigureEditor
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, installComponents, installDefaults, installKeyboardActions, isFocusTraversable, isNavigationKey, isPopupVisible, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeListener

protected PropertyChangeListener propertyChangeListener

tableCellEditor

protected boolean tableCellEditor

hackActionListener

protected ActionListener hackActionListener

hackListListener

protected ListSelectionListener hackListListener

hackPopupListener

protected PopupMenuListener hackPopupListener

lastSelection

protected Object lastSelection

waitingForComboBoxAction

protected boolean waitingForComboBoxAction

hackingMayBeRequired

protected static boolean hackingMayBeRequired

hackingValidated

protected static boolean hackingValidated
Constructor Detail

ZincComboBoxUI

public ZincComboBoxUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicComboBoxUI

installListeners

protected void installListeners()
Overrides:
installListeners in class BasicComboBoxUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class BasicComboBoxUI

createArrowButton

protected JButton createArrowButton()
Overrides:
createArrowButton in class MetalComboBoxUI

createEditor

protected ComboBoxEditor createEditor()
Overrides:
createEditor in class MetalComboBoxUI

createLayoutManager

protected LayoutManager createLayoutManager()
Overrides:
createLayoutManager in class MetalComboBoxUI

createPopup

protected ComboPopup createPopup()
Overrides:
createPopup in class MetalComboBoxUI

createRenderer

protected ListCellRenderer createRenderer()
Overrides:
createRenderer in class BasicComboBoxUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
The minimum size is the size of the display area plus insets plus the button.

Overrides:
getMinimumSize in class MetalComboBoxUI

getPreferredSize

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

rectangleForCurrentValue

protected Rectangle rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item.

Overrides:
rectangleForCurrentValue in class BasicComboBoxUI

update

public void update(Graphics g,
                   JComponent c)
Overrides:
update in class ComponentUI

isToolBarComboBox

protected boolean isToolBarComboBox(JComponent c)

getEditableButtonWidth

protected static int getEditableButtonWidth()

createPropertyChangeListener

public PropertyChangeListener createPropertyChangeListener()
Overrides:
createPropertyChangeListener in class MetalComboBoxUI

installHackListeners

protected void installHackListeners()

removeHackListeners

protected void removeHackListeners()

Sky View Café - Java