org.gnu.gtk

Class ActionGroup


public class ActionGroup
extends GObject

Field Summary

Fields inherited from class org.gnu.glib.GObject

eventsInitialized

Constructor Summary

ActionGroup(String name)
Construct a new ActionGroup object.

Method Summary

void
addAction(Action anAction)
Add an Action object to the ActionGroup
protected static void
addActions(Handle group, Handle[] entries, Object[] cbObjs)
void
addActions(ActionEntry entries)
Add an array of ActonEntry objects to the ActionGroup
protected static void
addRadioActions(Handle group, Handle[] entries, int value, Object listener)
void
addRadioActions(RadioActionEntry[] entries, int initialValue, RadioActionEntryListener listener)
Add an array of RadioActionEntry objects to the ActionGroup and setup the event handling.
protected static void
addToggleActions(Handle group, Handle[] entries, Object[] cbObjs)
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()
protected static void
gtk_action_group_add_action(Handle group, Handle action)
protected static void
gtk_action_group_add_action_with_accel(Handle group, int action, String accelerator)
protected static Handle
gtk_action_group_get_action(Handle group, String actionName)
protected static String
gtk_action_group_get_name(Handle group)
protected static boolean
gtk_action_group_get_sensitive(Handle group)
protected static int
gtk_action_group_get_type()
protected static boolean
gtk_action_group_get_visible(Handle group)
protected static Handle[]
gtk_action_group_list_actions(Handle group)
protected static Handle
gtk_action_group_new(String name)
protected static void
gtk_action_group_remove_action(Handle group, Handle action)
protected static void
gtk_action_group_set_sensitive(Handle group, boolean sensitive)
protected static void
gtk_action_group_set_translation_domain(Handle group, String domain)
protected static void
gtk_action_group_set_visible(Handle group, boolean visible)
protected static String
gtk_action_group_translate_string(Handle group, String str)
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, addListener, equals, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, hashCode, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setHandle, 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

protected static final void addActions(Handle group,
                                       Handle[] entries,
                                       Object[] cbObjs)


addActions

public void addActions(ActionEntry entries)
Add an array of ActonEntry objects to the ActionGroup

Parameters:
entries -


addRadioActions

protected static final void addRadioActions(Handle group,
                                            Handle[] entries,
                                            int value,
                                            Object listener)


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

protected static final void addToggleActions(Handle group,
                                             Handle[] entries,
                                             Object[] cbObjs)


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()


gtk_action_group_add_action

protected static final void gtk_action_group_add_action(Handle group,
                                                        Handle action)


gtk_action_group_add_action_with_accel

protected static final void gtk_action_group_add_action_with_accel(Handle group,
                                                                   int action,
                                                                   String accelerator)


gtk_action_group_get_action

protected static final Handle gtk_action_group_get_action(Handle group,
                                                          String actionName)


gtk_action_group_get_name

protected static final String gtk_action_group_get_name(Handle group)


gtk_action_group_get_sensitive

protected static final boolean gtk_action_group_get_sensitive(Handle group)


gtk_action_group_get_type

protected static final int gtk_action_group_get_type()


gtk_action_group_get_visible

protected static final boolean gtk_action_group_get_visible(Handle group)


gtk_action_group_list_actions

protected static final Handle[] gtk_action_group_list_actions(Handle group)


gtk_action_group_new

protected static final Handle gtk_action_group_new(String name)


gtk_action_group_remove_action

protected static final void gtk_action_group_remove_action(Handle group,
                                                           Handle action)


gtk_action_group_set_sensitive

protected static final void gtk_action_group_set_sensitive(Handle group,
                                                           boolean sensitive)


gtk_action_group_set_translation_domain

protected static final void gtk_action_group_set_translation_domain(Handle group,
                                                                    String domain)


gtk_action_group_set_visible

protected static final void gtk_action_group_set_visible(Handle group,
                                                         boolean visible)


gtk_action_group_translate_string

protected static final String gtk_action_group_translate_string(Handle group,
                                                                String str)


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)