public interface DropDownViewItem extends MenuViewItem<javax.swing.JComponent>
DropDownViewItem
is a
wrapper for some DockAction
, although there may exist
exceptions.Modifier and Type | Method and Description |
---|---|
boolean |
isSelectable()
Tells whether this item can be selected by the button.
|
boolean |
isTriggerable(boolean selected)
Tells whether the item can be triggered if it is on the button or
in the menu.
|
void |
setView(DropDownView view)
Sends the current settings of this item to the view.
|
void |
triggered()
Invoked if the item is triggered from outside.
|
addActionListener, removeActionListener
void triggered()
void setView(DropDownView view)
view
- the view, might be null
boolean isSelectable()
false
.boolean isTriggerable(boolean selected)
selected
- if true
, then this item is currently shown
directly on the main button, otherwise it is in the drop-down menu.true
if the item can be triggered