Interface PopupButtonModel
- All Superinterfaces:
ButtonModel, ItemSelectable
- All Known Implementing Classes:
JCommandButton.DefaultPopupButtonModel
Model for the popup area of
JCommandButton component.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds anPopupActionListenerto the model.booleanReturns indication whether the associated popup is showing.voidRemoves anPopupActionListenerfrom the model.voidsetPopupShowing(boolean flag) Sets indication on the visibility status of the associated popup.Methods inherited from interface ButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelectedMethods inherited from interface ItemSelectable
getSelectedObjects
-
Method Details
-
addPopupActionListener
Adds anPopupActionListenerto the model.- Parameters:
l- the listener to add
-
removePopupActionListener
Removes anPopupActionListenerfrom the model.- Parameters:
l- the listener to remove
-
setPopupShowing
void setPopupShowing(boolean flag) Sets indication on the visibility status of the associated popup.- Parameters:
flag- The visibility status of the associated popup.
-
isPopupShowing
boolean isPopupShowing()Returns indication whether the associated popup is showing.- Returns:
trueif the associated popup is showing,falseotherwise.
-