|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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 BasicComponentComboBoxUIg - 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 BasicComponentComboBoxUIg - 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()
BasicComponentComboBoxUIsetEditor.
createEditor in class BasicComponentComboBoxUIComboBoxEditor used for the combo boxjavax.swing.JAbstractComponentComboBox#setEditorprotected ComponentComboPopup createPopup()
BasicComponentComboBoxUI
createPopup in class BasicComponentComboBoxUIComboPopupComponentComboPopupprotected javax.swing.JButton createArrowButton()
BasicComponentComboBoxUI
createArrowButton in class BasicComponentComboBoxUIprivate void updateButtonForOcean(javax.swing.JButton button)
public java.beans.PropertyChangeListener createPropertyChangeListener()
BasicComponentComboBoxUIPropertyChangeListener 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 BasicComponentComboBoxUIPropertyChangeListener 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 BasicComponentComboBoxUIBasicComponentComboBoxUI.addEditor()public void unconfigureEditor()
BasicComponentComboBoxUI
unconfigureEditor in class BasicComponentComboBoxUIBasicComponentComboBoxUI.addEditor()public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
BasicComponentComboBoxUI
getMinimumSize in class BasicComponentComboBoxUIprivate 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 | |||||||||