org.gnu.gtk

Class ActionGroup


public class ActionGroup
extends GObject

Constructor Summary

ActionGroup(String name)
Construct a new ActionGroup object.

Method Summary

void
addAction(Action anAction)
Add an Action object to the ActionGroup
void
addActions(ActionEntry[] entries)
Add an array of ActonEntry objects to the ActionGroup
void
addRadioActions(RadioActionEntry[] entries, int initialValue, RadioActionEntryListener listener)
Add an array of RadioActionEntry objects to the ActionGroup and setup the event handling.
void
addToggleActions(ToggleActionEntry[] entries)
Add an array of ToggleActonEntry objects to the ActionGroup
Action
getAction(String actionName)
Look up an Action in the ActionGroup by name.
String
getName()
Get the name of the action group.
boolean
getSensitive()
boolean
getVisible()
List
listActions()
List the Actions in the ActionGroup
void
removeAction(Action anAction)
Remove an Action object from the ActionGroup
void
setSensitive(boolean sensitive)
void
setVisible(boolean visible)
String
translateString(String str)

Methods inherited from class org.gnu.glib.GObject

addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify

Constructor Details

ActionGroup

public ActionGroup(String name)
Construct a new ActionGroup object.
Parameters:
name - Used when associating keybindings with the actions.

Method Details

addAction

public void addAction(Action anAction)
Add an Action object to the ActionGroup
Parameters:
anAction -

addActions

public void addActions(ActionEntry[] entries)
Add an array of ActonEntry objects to the ActionGroup
Parameters:
entries -

addRadioActions

public void addRadioActions(RadioActionEntry[] entries,
                            int initialValue,
                            RadioActionEntryListener listener)
Add an array of RadioActionEntry objects to the ActionGroup and setup the event handling.
Parameters:
entries -
initialValue -
listener -

addToggleActions

public void addToggleActions(ToggleActionEntry[] entries)
Add an array of ToggleActonEntry objects to the ActionGroup
Parameters:
entries -

getAction

public Action getAction(String actionName)
Look up an Action in the ActionGroup by name.
Parameters:
actionName -
Returns:
the Action or null if no Action by that name exists.

getName

public String getName()
Get the name of the action group.
Returns:
the name of the action group

getSensitive

public boolean getSensitive()

getVisible

public boolean getVisible()

listActions

public List listActions()
List the Actions in the ActionGroup
Returns:
A list of Action objects.

removeAction

public void removeAction(Action anAction)
Remove an Action object from the ActionGroup
Parameters:
anAction -

setSensitive

public void setSensitive(boolean sensitive)

setVisible

public void setVisible(boolean visible)

translateString

public String translateString(String str)