org.gnu.gtk
public class CheckMenuItem extends MenuItem
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.CheckMenuItem
.
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.
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.
|
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.
Create a new CheckMenuItemDeprecated: 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 CheckMenuItem using a handle to a native resource.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.
Create a new CheckMenuItem with the given label.Parameters: label The label to display for this CheckMenuItem.
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.
Register an object to handle dialog events.See Also: CheckMenuItemListener
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.
Returns whether the CheckMenuItem is active.Returns: true if the check box is active.
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.
Internal static factory method to be used by Java-Gnome only.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.
Gets whether the CheckMenuItem will be drawn as a radio control.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.
Returns whether the CheckMenuItem is in the "inconsistent" state.Returns: true if the check box is inconsistent.
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.
Retrieve the runtime type used by the GLib library.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.
Removes a listenerSee Also: addListener
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.
Sets the active state of the CheckMenuItem's check box.Parameters: isActive true if the check box is checked.
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.
Sets whether the CheckMenuItem should be drawn as a radio controlParameters: drawAsRadio
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.
This method will turn on a third state that indicates that the widget is in an inconsistent state.Parameters: isInconsistent true to display an "inconsistent" third state.