|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
com.sun.java.swing.plaf.windows.WindowsComboBoxUI
com.jgoodies.looks.windows.WindowsComboBoxUI
public final class WindowsComboBoxUI
The JGoodies Windows Look&Feel implementation of
ComboBoxUI
.
Corrects the editor insets for editable combo boxes as well as the render insets for non-editable combos. Also, it has the same height as text fields - unless you change the renderer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.java.swing.plaf.windows.WindowsComboBoxUI |
---|
com.sun.java.swing.plaf.windows.WindowsComboBoxUI.WindowsComboBoxEditor, com.sun.java.swing.plaf.windows.WindowsComboBoxUI.WindowsComboPopup |
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, propertyChangeListener |
Constructor Summary | |
---|---|
WindowsComboBoxUI()
|
Method Summary | |
---|---|
protected JButton |
createArrowButton()
Creates the arrow button that is to be used in the combo box. |
protected ComboBoxEditor |
createEditor()
Creates the editor that is to be used in editable combo boxes. |
protected LayoutManager |
createLayoutManager()
Creates a layout manager for managing the components which make up the combo box. |
static ComponentUI |
createUI(JComponent b)
|
Dimension |
getMinimumSize(JComponent c)
The minumum size is the size of the display area plus insets plus the button. |
protected Rectangle |
rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item. |
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsComboBoxUI |
---|
createPopup, getPreferredSize, installKeyboardActions, installUI, paintCurrentValue, 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 |
---|
public WindowsComboBoxUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent b)
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
protected ComboBoxEditor createEditor()
createEditor
in class com.sun.java.swing.plaf.windows.WindowsComboBoxUI
protected LayoutManager createLayoutManager()
Overriden to use a layout that has a fixed width arrow button.
createLayoutManager
in class com.sun.java.swing.plaf.windows.WindowsComboBoxUI
protected JButton createArrowButton()
Overridden to paint black triangles.
createArrowButton
in class com.sun.java.swing.plaf.windows.WindowsComboBoxUI
protected Rectangle rectangleForCurrentValue()
rectangleForCurrentValue
in class BasicComboBoxUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |