public class DefaultActionList extends Object implements ActionList
Constructor and Description |
---|
DefaultActionList() |
DefaultActionList(String label) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action) |
void |
addAction(Action action,
boolean isDefault) |
void |
addActions(ActionList defaultActions) |
void |
addSeparator() |
void |
clear() |
void |
dispatchKeyEvent(KeyEvent e) |
Action |
getActionAt(int index) |
int |
getActionCount() |
Action |
getDefaultAction() |
String |
getLabel() |
boolean |
hasDefaultAction() |
void |
insertAction(Action action,
int index) |
void |
insertSeparator(int index) |
void |
performDefaultAction(ActionEvent event) |
void |
removeAction(int index) |
void |
setDefaultAction(Action defaultAction) |
void |
setEnabled(boolean b) |
void |
update()
Update all actions that are instances of UpdateableAction.
|
public DefaultActionList()
public DefaultActionList(String label)
public String getLabel()
getLabel
in interface ActionList
public int getActionCount()
getActionCount
in interface ActionList
public Action getActionAt(int index)
getActionAt
in interface ActionList
public Action getDefaultAction()
getDefaultAction
in interface ActionList
public void setDefaultAction(Action defaultAction)
setDefaultAction
in interface ActionList
public void addAction(Action action)
addAction
in interface ActionList
public void addAction(Action action, boolean isDefault)
public void addSeparator()
addSeparator
in interface ActionList
public void insertAction(Action action, int index)
insertAction
in interface ActionList
public void insertSeparator(int index)
insertSeparator
in interface ActionList
public boolean hasDefaultAction()
hasDefaultAction
in interface ActionList
public void performDefaultAction(ActionEvent event)
performDefaultAction
in interface ActionList
public void clear()
clear
in interface ActionList
public void dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent
in interface ActionList
public void addActions(ActionList defaultActions)
addActions
in interface ActionList
public void setEnabled(boolean b)
public void removeAction(int index)
removeAction
in interface ActionList
public void update()
Copyright © 2019. All Rights Reserved.