Adempiere 3.5.2a

org.adempiere.plaf
Class AdempiereComboBoxUI

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 com.jgoodies.looks.plastic.PlasticComboBoxUI
                      extended by org.adempiere.plaf.AdempiereComboBoxUI

public class AdempiereComboBoxUI
extends com.jgoodies.looks.plastic.PlasticComboBoxUI

Compiere ComboBox UI. The ComboBox is opaque - with opaque arrow button and textfield background

Version:
$Id: CompiereComboBoxUI.java,v 1.10 2005/10/09 19:01:37 jjanke Exp $
Author:
Jorg Janke

Nested Class Summary
 
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
 
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
AdempiereComboBoxUI()
           
 
Method Summary
protected  JButton createArrowButton()
          Create opaque button
protected  ComboPopup createPopup()
          Create Popup
static ComponentUI createUI(JComponent c)
          Create UI
 JButton getArrowButton()
           
 void installUI(JComponent c)
          Install UI - Set ComboBox opaque.
 void setIcon(Icon defaultIcon)
          Set Icon of arrow button
 
Methods inherited from class com.jgoodies.looks.plastic.PlasticComboBoxUI
createEditor, createLayoutManager, createPropertyChangeListener, createRenderer, getMinimumSize, getPreferredSize, installListeners, isToolBarComboBox, rectangleForCurrentValue, uninstallListeners, update
 
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
 

Constructor Detail

AdempiereComboBoxUI

public AdempiereComboBoxUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Create UI

Parameters:
c -
Returns:
new instance of CompiereComboBoxUI

installUI

public void installUI(JComponent c)
Install UI - Set ComboBox opaque. Bug in Metal: arrowButton gets Mouse Events, so add the JComboBox MouseListeners to the arrowButton

Overrides:
installUI in class com.jgoodies.looks.plastic.PlasticComboBoxUI
Parameters:
c - componrnt
See Also:
CComboBox.addMouseListener(MouseListener)

createArrowButton

protected JButton createArrowButton()
Create opaque button

Overrides:
createArrowButton in class com.jgoodies.looks.plastic.PlasticComboBoxUI
Returns:
opaque button

getArrowButton

public JButton getArrowButton()

setIcon

public void setIcon(Icon defaultIcon)
Set Icon of arrow button

Parameters:
defaultIcon -

createPopup

protected ComboPopup createPopup()
Create Popup

Overrides:
createPopup in class com.jgoodies.looks.plastic.PlasticComboBoxUI
Returns:
AdempiereComboPopup

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.