org.gnu.gtk
Class RadioMenuItem
java.lang.Object
|
+--org.gnu.glib.GObject
|
+--org.gnu.gtk.GtkObject
|
+--org.gnu.gtk.Widget
|
+--org.gnu.gtk.Container
|
+--org.gnu.gtk.Bin
|
+--org.gnu.gtk.Item
|
+--org.gnu.gtk.MenuItem
|
+--org.gnu.gtk.CheckMenuItem
|
+--org.gnu.gtk.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(int handle)
Construct a RadioMenuItem using a handle to a native resource. |
RadioMenuItem(RadioMenuItem group,
java.lang.String label,
boolean hasMnemonic)
Create a new RadioMenuItem object adding it to the same group
as the provided RadioMenuItem. |
Method Summary |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Methods inherited from class org.gnu.gtk.Widget |
activate, addListener, addListener, addListener, addListener, addListener, addListener, createContext, createLayout, destroy, draw, drawArea, drawArea, getAccessible, getColormap, getContext, getModifierStyle, getName, getParent, getParentWindow, getPointer, getSensitive, getStyle, getToplevel, grabDefault, grabFocus, hasFocus, hide, hideAll, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RadioMenuItem
public RadioMenuItem(RadioMenuItem group,
java.lang.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.
RadioMenuItem
public RadioMenuItem(int handle)
- Construct a RadioMenuItem using a handle to a native resource.
getType
public static Type getType()
- Retrieve the runtime type used by the GLib library.