org.gnu.gtk

Class ActionGroup

public class ActionGroup extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.ActionGroup. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

Constructor Summary
ActionGroup(String name)
Construct a new ActionGroup object.
Method Summary
voidaddAction(Action anAction)
Add an Action object to the ActionGroup
voidaddActions(ActionEntry[] entries)
Add an array of ActonEntry objects to the ActionGroup
voidaddRadioActions(RadioActionEntry[] entries, int initialValue, RadioActionEntryListener listener)
Add an array of RadioActionEntry objects to the ActionGroup and setup the event handling.
voidaddToggleActions(ToggleActionEntry[] entries)
Add an array of ToggleActonEntry objects to the ActionGroup
ActiongetAction(String actionName)
Look up an Action in the ActionGroup by name.
StringgetName()
Get the name of the action group.
booleangetSensitive()
booleangetVisible()
ListlistActions()
List the Actions in the ActionGroup
voidremoveAction(Action anAction)
Remove an Action object from the ActionGroup
voidsetSensitive(boolean sensitive)
voidsetVisible(boolean visible)
StringtranslateString(String str)

Constructor Detail

ActionGroup

public ActionGroup(String name)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a new ActionGroup object.

Parameters: name Used when associating keybindings with the actions.

Method Detail

addAction

public void addAction(Action anAction)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Add an Action object to the ActionGroup

Parameters: anAction

addActions

public void addActions(ActionEntry[] entries)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Add an array of ActonEntry objects to the ActionGroup

Parameters: entries

addRadioActions

public void addRadioActions(RadioActionEntry[] entries, int initialValue, RadioActionEntryListener listener)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Add an array of RadioActionEntry objects to the ActionGroup and setup the event handling.

Parameters: entries listener initialValue

addToggleActions

public void addToggleActions(ToggleActionEntry[] entries)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Add an array of ToggleActonEntry objects to the ActionGroup

Parameters: entries

getAction

public Action getAction(String actionName)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

List the Actions in the ActionGroup

Returns: A list of Action objects.

removeAction

public void removeAction(Action anAction)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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)