org.gnu.gtk
public class CheckMenuItem extends MenuItem
A check box indicating the state of boolean value is displayed on the left side of the MenuItem. Activating the MenuItem toggles this value.
Constructor Summary | |
---|---|
CheckMenuItem()
Create a new CheckMenuItem | |
CheckMenuItem(Handle handle)
Construct a CheckMenuItem using a handle to a native resource. | |
CheckMenuItem(String label, boolean hasMnemonic)
Create a new CheckMenuItem with the given label.
|
Method Summary | |
---|---|
void | addListener(CheckMenuItemListener listener)
Register an object to handle dialog events.
|
boolean | getActive()
Returns whether the CheckMenuItem is active.
|
static CheckMenuItem | getCheckMenuItem(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
boolean | getDrawAsRadio()
Gets whether the CheckMenuItem will be drawn as a radio control. |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getInconsistent()
Returns whether the CheckMenuItem is in the "inconsistent" state.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeListener(CheckMenuItemListener listener)
Removes a listener
|
void | setActive(boolean isActive)
Sets the active state of the CheckMenuItem's check box.
|
void | setDrawAsRadio(boolean drawAsRadio)
Sets whether the CheckMenuItem should be drawn as a radio control
|
void | setInconsistent(boolean isInconsistent)
This method will turn on a third state that indicates that the widget is
in an inconsistent state.
|
Parameters: label The label to display for this CheckMenuItem.
See Also: CheckMenuItemListener
Returns: true if the check box is active.
Returns: true if the check box is inconsistent.
See Also: addListener
Parameters: isActive true if the check box is checked.
Parameters: drawAsRadio
Parameters: isInconsistent true to display an "inconsistent" third state.