Interface PopupButtonModel
-
- All Superinterfaces:
javax.swing.ButtonModel,java.awt.ItemSelectable
public interface PopupButtonModel extends javax.swing.ButtonModelModel for the popup area ofJCommandButtoncomponent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPopupActionListener(PopupActionListener l)Adds anPopupActionListenerto the model.booleanisPopupShowing()Returns indication whether the associated popup is showing.voidremovePopupActionListener(PopupActionListener l)Removes anPopupActionListenerfrom the model.voidsetPopupShowing(boolean flag)Sets indication on the visibility status of the associated popup.-
Methods inherited from interface javax.swing.ButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelected
-
-
-
-
Method Detail
-
addPopupActionListener
void addPopupActionListener(PopupActionListener l)
Adds anPopupActionListenerto the model.- Parameters:
l- the listener to add
-
removePopupActionListener
void removePopupActionListener(PopupActionListener l)
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.
-
-