Compiere Looks 1.2.1

org.compiere.plaf
Class CompiereComboBoxUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ComboBoxUI
              |
              +--javax.swing.plaf.basic.BasicComboBoxUI
                    |
                    +--javax.swing.plaf.metal.MetalComboBoxUI
                          |
                          +--org.compiere.plaf.CompiereComboBoxUI

public class CompiereComboBoxUI
extends MetalComboBoxUI

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

Version:
$Id: CompiereComboBoxUI.java,v 1.4 2002/08/12 01:55:15 danb Exp $
Author:
Jorg Janke

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
 
Constructor Summary
CompiereComboBoxUI()
           
 
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 javax.swing.plaf.metal.MetalComboBoxUI
configureEditor, createEditor, createLayoutManager, createPropertyChangeListener, editablePropertyChanged, getMinimumSize, layoutComboBox, paint, removeListeners, unconfigureEditor
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, 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

CompiereComboBoxUI

public CompiereComboBoxUI()
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 BasicComboBoxUI
Parameters:
c -
See Also:
CComboBox#addMouseListener

createArrowButton

protected JButton createArrowButton()
Create opaque button

Overrides:
createArrowButton in class MetalComboBoxUI
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 MetalComboBoxUI
Returns:
CompiereComboPopup

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke