org.openbp.swing.plaf.sky
Class SkyComboBoxUI

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.openbp.swing.plaf.sky.SkyComboBoxUI
All Implemented Interfaces:
SkyTheme

public class SkyComboBoxUI
extends javax.swing.plaf.metal.MetalComboBoxUI
implements SkyTheme

The ComboBoxUI - Button and Editor with a SimpleRoundBorder.

Author:
Jens Ferchland

Nested Class Summary
 class SkyComboBoxUI.ComboBoxButton
          Button with an arrow.
 class SkyComboBoxUI.ComboBoxIcon
          This utility class draws the horizontal bars which indicate a ComboBox.
 class SkyComboBoxUI.SkyPropertyChangeListener
          This inner class is marked "public" due to a compiler bug.
 
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalComboBoxUI
javax.swing.plaf.metal.MetalComboBoxUI.MetalComboBoxLayoutManager, javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup, javax.swing.plaf.metal.MetalComboBoxUI.MetalPropertyChangeListener
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler
 
Field Summary
 
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, propertyChangeListener
 
Fields inherited from interface org.openbp.swing.plaf.sky.SkyTheme
COLOR_BACKGROUND, COLOR_BACKGROUND_DARK, COLOR_BACKGROUND_DARK_DARK, COLOR_BACKGROUND_LIGHT, COLOR_BACKGROUND_LIGHT_LIGHT, COLOR_BORDER, COLOR_BORDER_BUTTON, COLOR_FOCUS, COLOR_FOCUS_OVERLAY, COLOR_HIGHLIGHT, COLOR_TABLE_HEADER, COLOR_TEXT_DISABLED, COLOR_TEXT_ENABLED, COLOR_TRANSPARENT, FONT_LARGE, FONT_NORMAL, FONT_SMALL
 
Constructor Summary
SkyComboBoxUI()
          Creates a new SkyComboBoxUI instance.
 
Method Summary
protected  javax.swing.JButton createArrowButton()
          Creates the Button with the Arrow and the choosen Object if it isn't editable.
protected  javax.swing.ComboBoxEditor createEditor()
          Creates the Editor with the correct Border.
 java.beans.PropertyChangeListener createPropertyChangeListener()
          Creates a new PropertyChangeListener for a Combobox.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns the UI - ComboBoxUI is no singelton!
 
Methods inherited from class javax.swing.plaf.metal.MetalComboBoxUI
configureEditor, createLayoutManager, createPopup, editablePropertyChanged, getBaseline, getMinimumSize, layoutComboBox, paint, paintCurrentValue, paintCurrentValueBackground, removeListeners, unconfigureEditor
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyComboBoxUI

public SkyComboBoxUI()
Creates a new SkyComboBoxUI instance.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns the UI - ComboBoxUI is no singelton!

Parameters:
c - a JComponent value
Returns:
a ComponentUI value

createEditor

protected javax.swing.ComboBoxEditor createEditor()
Creates the Editor with the correct Border.

Overrides:
createEditor in class javax.swing.plaf.metal.MetalComboBoxUI
Returns:
a ComboBoxEditor value

createArrowButton

protected javax.swing.JButton createArrowButton()
Creates the Button with the Arrow and the choosen Object if it isn't editable.

Overrides:
createArrowButton in class javax.swing.plaf.metal.MetalComboBoxUI
Returns:
a JButton value

createPropertyChangeListener

public java.beans.PropertyChangeListener createPropertyChangeListener()
Creates a new PropertyChangeListener for a Combobox.

Overrides:
createPropertyChangeListener in class javax.swing.plaf.metal.MetalComboBoxUI
See Also:
MetalComboBoxUI.createPropertyChangeListener()


Copyright © 2011. All Rights Reserved.