|
||||||||||
| 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.motif.MotifComponentComboBoxUI
public class MotifComponentComboBoxUI
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 |
MotifComponentComboBoxUI.ComboBoxLayoutManager
This inner class is marked "public" due to a compiler bug. |
(package private) static class |
MotifComponentComboBoxUI.MotifComboBoxArrowIcon
|
protected class |
MotifComponentComboBoxUI.MotifComboPopup
Overriden to empty the MouseMotionListener. we also needed some modifications because we don't want to close the popup immediately.. |
| Nested classes/interfaces inherited from class net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI |
|---|
BasicComponentComboBoxUI.FocusHandler, BasicComponentComboBoxUI.ItemHandler, BasicComponentComboBoxUI.KeyHandler, BasicComponentComboBoxUI.PropertyChangeHandler, BasicComponentComboBoxUI.SimpleDataHandler |
| Field Summary | |
|---|---|
(package private) javax.swing.Icon |
arrowIcon
|
(package private) static int |
HORIZ_MARGIN
|
| 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 | |
|---|---|
MotifComponentComboBoxUI()
|
|
| Method Summary | |
|---|---|
private boolean |
_isLeftToRight(javax.swing.JComponent P_component)
some additional methods required by my implementation |
void |
configureEditor()
This protected method is implementation specific and should be private. |
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. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
The minumum size is the size of the display area plus insets plus the button. |
int |
iconAreaWidth()
|
protected void |
installComponents()
Creates and initializes the components which make up the aggregate combo box. |
void |
installUI(javax.swing.JComponent c)
|
private java.awt.Component |
motifGetEditor()
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
Paints the currently selected item. |
protected java.awt.Rectangle |
rectangleForArrowIcon()
|
protected java.awt.Rectangle |
rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item. |
protected void |
uninstallComponents()
The aggregate components which compise the combo box are unregistered and uninitialized. |
| 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 |
|---|
javax.swing.Icon arrowIcon
static final int HORIZ_MARGIN
| Constructor Detail |
|---|
public MotifComponentComboBoxUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI in class BasicComponentComboBoxUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
BasicComponentComboBoxUI
getMinimumSize in class BasicComponentComboBoxUIprotected ComponentComboPopup createPopup()
BasicComponentComboBoxUI
createPopup in class BasicComponentComboBoxUIComboPopupComponentComboPopupprotected void installComponents()
BasicComponentComboBoxUI
installComponents in class BasicComponentComboBoxUIprotected void uninstallComponents()
BasicComponentComboBoxUI
uninstallComponents in class BasicComponentComboBoxUI
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)
BasicComponentComboBoxUI
paintCurrentValue in class BasicComponentComboBoxUIprotected java.awt.Rectangle rectangleForArrowIcon()
protected java.awt.Rectangle rectangleForCurrentValue()
BasicComponentComboBoxUI
rectangleForCurrentValue in class BasicComponentComboBoxUIpublic int iconAreaWidth()
public void configureEditor()
BasicComponentComboBoxUI
configureEditor in class BasicComponentComboBoxUIBasicComponentComboBoxUI.addEditor()protected java.awt.LayoutManager createLayoutManager()
BasicComponentComboBoxUI
createLayoutManager in class BasicComponentComboBoxUIprivate java.awt.Component motifGetEditor()
private boolean _isLeftToRight(javax.swing.JComponent P_component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||