|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ComboBoxUI com.cosylab.gui.components.SimpleComboBox.SimpleComboBoxUI
public static class SimpleComboBox.SimpleComboBoxUI
The simplest implementation od ComboBoxUI displays no button in the comboBox. Items are selected from a drop down list activated on mouse click.
Nested Class Summary | |
---|---|
protected class |
SimpleComboBox.SimpleComboBoxUI.ComboBoxLayoutManager
|
Field Summary | |
---|---|
protected javax.swing.CellRendererPane |
cellRenderingPane
|
protected SimpleComboBox |
comboBox
|
protected java.awt.event.ItemListener |
itemListener
|
protected javax.swing.plaf.basic.BasicComboPopup |
popup
|
Constructor Summary | |
---|---|
SimpleComboBox.SimpleComboBoxUI()
Constructor for SimpleComboBoxUI. |
Method Summary | |
---|---|
protected void |
calculateLayout()
|
protected java.awt.Dimension |
calculatePreferredSize()
|
protected java.awt.Rectangle |
calculateRendererCellRectangle()
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Returns the maximum allowed layout size. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Returns the minimum allowed layout size. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns the preferred layout size. |
void |
installUI(javax.swing.JComponent c)
Installs this UI to the supplied SimpleComboBox |
boolean |
isFocusTraversable(javax.swing.JComboBox c)
Delegates to comboBox implementation. |
boolean |
isPopupVisible(javax.swing.JComboBox c)
Delegates to comboBox implementation. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent jc)
This method has been overriden to implement correct combo box painting. |
void |
setPopupVisible(javax.swing.JComboBox c,
boolean v)
Delegates to comboBox implementation. |
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls this UI from the supplied SimpleComboBox |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SimpleComboBox comboBox
protected javax.swing.plaf.basic.BasicComboPopup popup
protected javax.swing.CellRendererPane cellRenderingPane
protected java.awt.event.ItemListener itemListener
Constructor Detail |
---|
public SimpleComboBox.SimpleComboBoxUI()
Method Detail |
---|
public boolean isFocusTraversable(javax.swing.JComboBox c)
comboBox
implementation.
isFocusTraversable
in class javax.swing.plaf.ComboBoxUI
c
- JComboBox must be comboBox
ComboBoxUI.isFocusTraversable(JComboBox)
public boolean isPopupVisible(javax.swing.JComboBox c)
comboBox
implementation.
isPopupVisible
in class javax.swing.plaf.ComboBoxUI
c
- JComboBox must be comboBox
ComboBoxUI.isPopupVisible(JComboBox)
public void setPopupVisible(javax.swing.JComboBox c, boolean v)
comboBox
implementation.
setPopupVisible
in class javax.swing.plaf.ComboBoxUI
c
- JComboBox must be comboBox
v
- booleanComboBoxUI.setPopupVisible(JComboBox, boolean)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
c
- JComponent must be an instance of SimpleComboBoxComponentUI.installUI(JComponent)
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
c
- JComponent must be comboBox
ComponentUI.uninstallUI(JComponent)
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
c
- JComponent must be comboBox
ComponentUI.getMaximumSize(JComponent)
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
c
- JComponent must be comboBox
ComponentUI.getMinimumSize(JComponent)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
c
- JComponent must be comboBox
ComponentUI.getPreferredSize(JComponent)
,
calculatePreferredSize()
public void paint(java.awt.Graphics g, javax.swing.JComponent jc)
paint
in class javax.swing.plaf.ComponentUI
g
- Graphicsjc
- JComponent must be comboBox
ComponentUI.paint(Graphics, JComponent)
protected java.awt.Rectangle calculateRendererCellRectangle()
protected void calculateLayout()
protected java.awt.Dimension calculatePreferredSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |