|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI net.sf.sbcc.componentcombo.plaf.ComponentComboBoxUI net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI net.sf.sbcc.componentcombo.plaf.metal.MetalComponentComboBoxUI
public class MetalComponentComboBoxUI
ComboBox motif look and feel
* Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence. SimpleComboBoxUIs are based on a copy of the corresponding ComboBoxUI, just having a few modifications. The behavior is about similar, but without managing the list in the popup. the developer of the specific component must handle the popup closure himself. based on MotifComboBoxUI 1.39, 12/19/03 by Arnaud Weber
Nested Class Summary | |
---|---|
class |
MetalComponentComboBoxUI.MetalComboBoxLayoutManager
This inner class is marked "public" due to a compiler bug. |
class |
MetalComponentComboBoxUI.MetalComboPopup
Deprecated. As of Java 2 platform v1.4. |
class |
MetalComponentComboBoxUI.MetalComponentComboBoxButton
JButton subclass to help out MetalComboBoxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. |
class |
MetalComponentComboBoxUI.MetalPropertyChangeListener
This inner class is marked "public" due to a compiler bug. |
Nested classes/interfaces inherited from class net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI |
---|
BasicComponentComboBoxUI.ComboBoxLayoutManager, BasicComponentComboBoxUI.FocusHandler, BasicComponentComboBoxUI.ItemHandler, BasicComponentComboBoxUI.KeyHandler, BasicComponentComboBoxUI.PropertyChangeHandler, BasicComponentComboBoxUI.SimpleDataHandler |
Field Summary | |
---|---|
private static java.lang.Object |
NO_BUTTON_ROLLOVER
|
Fields inherited from class net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI |
---|
arrowButton, cachedMinimumSize, comboBox, currentValuePane, dataListener, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, popup, popupComponent, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener |
Constructor Summary | |
---|---|
MetalComponentComboBoxUI()
|
Method Summary | |
---|---|
private boolean |
_isLeftToRight(javax.swing.JComponent P_component)
some additional methods required by my implementation |
private boolean |
_usingOcean()
|
void |
configureEditor()
This protected method is implementation specific and should be private. |
protected javax.swing.JButton |
createArrowButton()
Creates an button which will be used as the control to show or hide the popup portion of the combo box. |
protected javax.swing.ComboBoxEditor |
createEditor()
Creates the default editor that will be used in editable combo boxes. |
protected java.awt.LayoutManager |
createLayoutManager()
Creates a layout manager for managing the components which make up the combo box. |
protected ComponentComboPopup |
createPopup()
Creates the popup portion of the combo box. |
java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates a PropertyChangeListener which will be added to
the combo box. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
protected void |
editablePropertyChanged(java.beans.PropertyChangeEvent e)
Deprecated. As of Java 2 platform v1.4. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
The minumum size is the size of the display area plus insets plus the button. |
void |
layoutComboBox(java.awt.Container parent,
MetalComponentComboBoxUI.MetalComboBoxLayoutManager manager)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
If necessary paints the currently selected item. |
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
If necessary paints the background of the currently selected item. |
protected void |
removeListeners()
Deprecated. As of Java 2 platform v1.4. |
void |
unconfigureEditor()
This protected method is implementation specific and should be private. |
private void |
updateButtonForOcean(javax.swing.JButton button)
Resets the necessary state on the ComboBoxButton for ocean. |
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 |
Field Detail |
---|
private static java.lang.Object NO_BUTTON_ROLLOVER
Constructor Detail |
---|
public MetalComponentComboBoxUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class BasicComponentComboBoxUI
public void paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)
paintCurrentValue
in class BasicComponentComboBoxUI
g
- Graphics to paint tobounds
- Region to paint current value tohasFocus
- whether or not the JComboBox has focus
java.lang.NullPointerException
- if any of the arguments are null.public void paintCurrentValueBackground(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)
paintCurrentValueBackground
in class BasicComponentComboBoxUI
g
- Graphics to paint tobounds
- Region to paint background tohasFocus
- whether or not the JComboBox has focus
java.lang.NullPointerException
- if any of the arguments are null.protected javax.swing.ComboBoxEditor createEditor()
BasicComponentComboBoxUI
setEditor
.
createEditor
in class BasicComponentComboBoxUI
ComboBoxEditor
used for the combo boxjavax.swing.JAbstractComponentComboBox#setEditor
protected ComponentComboPopup createPopup()
BasicComponentComboBoxUI
createPopup
in class BasicComponentComboBoxUI
ComboPopup
ComponentComboPopup
protected javax.swing.JButton createArrowButton()
BasicComponentComboBoxUI
createArrowButton
in class BasicComponentComboBoxUI
private void updateButtonForOcean(javax.swing.JButton button)
public java.beans.PropertyChangeListener createPropertyChangeListener()
BasicComponentComboBoxUI
PropertyChangeListener
which will be added to
the combo box. If this method returns null then it will not
be added to the combo box.
createPropertyChangeListener
in class BasicComponentComboBoxUI
PropertyChangeListener
or null@Deprecated protected void editablePropertyChanged(java.beans.PropertyChangeEvent e)
protected java.awt.LayoutManager createLayoutManager()
BasicComponentComboBoxUI
createLayoutManager
in class BasicComponentComboBoxUI
public void layoutComboBox(java.awt.Container parent, MetalComponentComboBoxUI.MetalComboBoxLayoutManager manager)
@Deprecated protected void removeListeners()
public void configureEditor()
BasicComponentComboBoxUI
configureEditor
in class BasicComponentComboBoxUI
BasicComponentComboBoxUI.addEditor()
public void unconfigureEditor()
BasicComponentComboBoxUI
unconfigureEditor
in class BasicComponentComboBoxUI
BasicComponentComboBoxUI.addEditor()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
BasicComponentComboBoxUI
getMinimumSize
in class BasicComponentComboBoxUI
private boolean _isLeftToRight(javax.swing.JComponent P_component)
private boolean _usingOcean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |