org.gnu.gtk

Class RadioMenuItem


public class RadioMenuItem
extends CheckMenuItem

A RadioMenuItem is a CheckMenuItem that belongs to a group. At each instant exactly one of the RadioMenuItems from the group is selected.

Constructor Summary

RadioMenuItem(Handle handle)
Internal method.
RadioMenuItem(RadioMenuItem group)
RadioMenuItem(RadioMenuItem group, String label, boolean hasMnemonic)
RadioMenuItem(RadioMenuItem[] group)
RadioMenuItem(RadioMenuItem[] group, String label, boolean hasMnemonic)
Create a new RadioMenuItem object adding it to the same group as the provided RadioMenuItem.

Method Summary

RadioMenuItem[]
getGroup()
static RadioMenuItem
getRadioMenuItem(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static Type
getType()
Retrieve the runtime type used by the GLib library.
void
setGroup(RadioMenuItem[] group)

Methods inherited from class org.gnu.gtk.CheckMenuItem

addListener, getActive, getCheckMenuItem, getDrawAsRadio, getEventListenerClass, getEventType, getInconsistent, getType, removeListener, setActive, setDrawAsRadio, setInconsistent

Methods inherited from class org.gnu.gtk.MenuItem

addListener, emitActivate, emitDeselect, getEventListenerClass, getEventType, getMenuItem, getType, removeListener, removeSubmenu, setLeftJustified, setRightJustified, setSubmenu

Methods inherited from class org.gnu.gtk.Item

addListener, deselect, getEventListenerClass, getEventType, getType, removeListener, select, toggle

Methods inherited from class org.gnu.gtk.Bin

getChild, getType

Methods inherited from class org.gnu.gtk.Container

add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, getType, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode

Methods inherited from class org.gnu.gtk.Widget

activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getEventListenerClass, getEventType, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getType, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight

Methods inherited from class org.gnu.gtk.GtkObject

destroy, getType, sink

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

RadioMenuItem

public RadioMenuItem(Handle handle)
Internal method. Construct a RadioMenuItem using a handle to a native resource (this is public primarily so that LibGlade can construct them).

RadioMenuItem

public RadioMenuItem(RadioMenuItem group)

RadioMenuItem

public RadioMenuItem(RadioMenuItem group,
                     String label,
                     boolean hasMnemonic)

RadioMenuItem

public RadioMenuItem(RadioMenuItem[] group)

RadioMenuItem

public RadioMenuItem(RadioMenuItem[] group,
                     String label,
                     boolean hasMnemonic)
Create a new RadioMenuItem object adding it to the same group as the provided RadioMenuItem. If this is the first RadioMenuItem pass null for this parameter.
Parameters:
group - A RadioMenuItem that belongs to the group that we wish to add this newly constructed RadioMenuItem to. If this is the first RadioMenuItem in the group just pass null.
label - The text label to assign to this RadioButton.
hasMnemonic - An indicator to inform the widget if the label contains a mnemonic.

Method Details

getGroup

public RadioMenuItem[] getGroup()

getRadioMenuItem

public static RadioMenuItem getRadioMenuItem(Handle handle)
Internal static factory method to be used by Java-Gnome only. Construct a RadioMenuItem using a handle to a native resource.

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface CheckMenuItem

setGroup

public void setGroup(RadioMenuItem[] group)