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. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
MetalComboBoxButton
| Modifier and Type | Field and Description |
|---|---|
| protected JComboBox | comboBox
The instance of |
| protected Icon | comboIcon
The icon. |
| protected boolean | iconOnly
The |
| protected JList | listBox
The instance of |
| protected CellRendererPane | rendererPane
The instance of |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | MetalComboBoxButton(JComboBox<Object>
an instance of cb, Icon JComboBoxan icon i, CellRendererPane an instance of pane, JList<Object> CellRendererPanean instance of list)JListConstructs a new instance of |
| public | MetalComboBoxButton(JComboBox<Object>
an instance of cb, Icon JComboBoxan icon i, boolean if onlyIcon, CellRendererPane true only icon is paintedan instance of pane, JList<Object> CellRendererPanean instance of list)JListConstructs a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public final JComboBox | |
| public final Icon | |
| public Dimension | getMinimumSize()
Overrides javax. If the minimum size has been set to a non- |
| public boolean | isFocusTraversable()
Overrides java. Returns whether this |
| public final boolean | |
| public void | paintComponent(Graphics g)
Overrides javax. Calls the UI delegate's paint method, if the UI delegate
is non- |
| public final void | |
| public final void | |
| public void | setEnabled(boolean enabled)
Overrides javax. Enables (or disables) the button. |
| public final void | setIconOnly(boolean
if isIconOnly)true then only icon is paintedIf |
| comboBox | back to summary |
|---|---|
| protected JComboBox<Object> comboBox The instance of | |
| comboIcon | back to summary |
|---|---|
| protected Icon comboIcon The icon. | |
| iconOnly | back to summary |
|---|---|
| protected boolean iconOnly The | |
| listBox | back to summary |
|---|---|
| protected JList<Object> listBox The instance of | |
| rendererPane | back to summary |
|---|---|
| protected CellRendererPane rendererPane The instance of | |
| MetalComboBoxButton | back to summary |
|---|---|
| pack-priv MetalComboBoxButton() | |
| MetalComboBoxButton | back to summary |
|---|---|
| public MetalComboBoxButton(JComboBox<Object> cb, Icon i, CellRendererPane pane, JList<Object> list) Constructs a new instance of | |
| MetalComboBoxButton | back to summary |
|---|---|
| public MetalComboBoxButton(JComboBox<Object> cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList<Object> list) Constructs a new instance of | |
| getComboBox | back to summary |
|---|---|
| public final JComboBox Returns the | |
| getComboIcon | back to summary |
|---|---|
| public final Icon getComboIcon() Returns the icon of the
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides javax. Doc from javax. If the minimum size has been set to a non- | |
| isFocusTraversable | back to summary |
|---|---|
| public boolean isFocusTraversable() Overrides java. Doc from java. Returns whether this
| |
| isIconOnly | back to summary |
|---|---|
| public final boolean isIconOnly() Returns the
| |
| paintComponent | back to summary |
|---|---|
| public void paintComponent(Graphics g) Overrides javax. Doc from javax. Calls the UI delegate's paint method, if the UI delegate
is non-
If you override this in a subclass you should not make permanent
changes to the passed in
The passed in | |
| setComboBox | back to summary |
|---|---|
| public final void setComboBox(JComboBox<Object> cb) Sets the | |
| setComboIcon | back to summary |
|---|---|
| public final void setComboIcon(Icon i) Sets the icon of the
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Overrides javax. Doc from javax. Enables (or disables) the button. | |
| setIconOnly | back to summary |
|---|---|
| public final void setIconOnly(boolean isIconOnly) If
| |