public class ComplexButton
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ComplexButton.EmptyAction |
(package private) class |
ComplexButton.ItemAction |
Modifier and Type | Field and Description |
---|---|
private javax.swing.JButton |
actionComponent |
private ComplexButton.EmptyAction |
emptyItem |
private int |
iconSize |
private javax.swing.Action[] |
items |
private java.util.Collection<javax.swing.event.ChangeListener> |
listeners |
private javax.swing.JPopupMenu |
menu |
private int |
oldWidth |
private java.lang.String |
prefix |
private javax.swing.Action |
selectedItem |
private javax.swing.JButton |
selectionComponent |
private boolean |
showing |
Constructor and Description |
---|
ComplexButton(int iconSize) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javax.swing.event.ChangeListener listener) |
boolean |
contains(javax.swing.Action item) |
(package private) javax.swing.JPopupMenu |
createMenu() |
javax.swing.Action |
getAction() |
(package private) javax.swing.JButton |
getActionButton() |
javax.swing.JComponent |
getActionComponent() |
java.lang.Object |
getEmptyItem() |
(package private) javax.swing.JPopupMenu |
getMenu() |
java.lang.Object |
getSelectedItem() |
(package private) javax.swing.JButton |
getSelectionButton() |
javax.swing.JComponent |
getSelectionComponent() |
java.lang.Object |
getTopItem() |
boolean |
isEmptyItem() |
void |
removeListener(javax.swing.event.ChangeListener listener) |
void |
setAction(javax.swing.Action action) |
void |
setEmptyItem(java.lang.String text,
java.lang.String toolTip) |
void |
setEnabled(boolean b) |
void |
setItems(javax.swing.Action[] it) |
void |
setPrefix(java.lang.String s) |
void |
setSelectedItem(javax.swing.Action item) |
(package private) void |
update() |
private javax.swing.JButton selectionComponent
private javax.swing.JButton actionComponent
private javax.swing.Action[] items
private ComplexButton.EmptyAction emptyItem
private javax.swing.Action selectedItem
private java.lang.String prefix
private int iconSize
private java.util.Collection<javax.swing.event.ChangeListener> listeners
private boolean showing
private int oldWidth
private javax.swing.JPopupMenu menu
public javax.swing.JComponent getSelectionComponent()
public void setEnabled(boolean b)
public void addListener(javax.swing.event.ChangeListener listener)
public void removeListener(javax.swing.event.ChangeListener listener)
public javax.swing.JComponent getActionComponent()
public void setAction(javax.swing.Action action)
public javax.swing.Action getAction()
public java.lang.Object getSelectedItem()
public java.lang.Object getEmptyItem()
public void setEmptyItem(java.lang.String text, java.lang.String toolTip)
public void setPrefix(java.lang.String s)
public boolean isEmptyItem()
void update()
public boolean contains(javax.swing.Action item)
public void setSelectedItem(javax.swing.Action item)
javax.swing.JButton getSelectionButton()
javax.swing.JButton getActionButton()
javax.swing.JPopupMenu getMenu()
javax.swing.JPopupMenu createMenu()
public void setItems(javax.swing.Action[] it)
public java.lang.Object getTopItem()