org.gnu.gtk
Class ActionGroup
public class ActionGroup
extends GObject
ActionGroup(String name) - Construct a new ActionGroup object.
|
ActionGroup
public ActionGroup(String name)
Construct a new ActionGroup object.
name
- Used when associating keybindings with the actions.
addAction
public void addAction(Action anAction)
Add an Action object to the ActionGroup
addActions
public void addActions(ActionEntry[] entries)
Add an array of ActonEntry objects to the ActionGroup
addRadioActions
public void addRadioActions(RadioActionEntry[] entries,
int initialValue,
RadioActionEntryListener listener)
Add an array of RadioActionEntry objects to the ActionGroup and setup the
event handling.
entries
- initialValue
- listener
-
addToggleActions
public void addToggleActions(ToggleActionEntry[] entries)
Add an array of ToggleActonEntry objects to the ActionGroup
getAction
public Action getAction(String actionName)
Look up an Action in the ActionGroup by name.
- the Action or null if no Action by that name exists.
getName
public String getName()
Get the name of the action group.
- the name of the action group
getSensitive
public boolean getSensitive()
getVisible
public boolean getVisible()
listActions
public List listActions()
List the Actions in the ActionGroup
- A list of Action objects.
removeAction
public void removeAction(Action anAction)
Remove an Action object from the ActionGroup
setSensitive
public void setSensitive(boolean sensitive)
setVisible
public void setVisible(boolean visible)
translateString
public String translateString(String str)