org.gnu.gtk
public class ToggleButton extends Button
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.ToggleButton
.
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.
See Also: CheckButton RadioButton
Constructor Summary | |
---|---|
ToggleButton()
Creates a new toggle button. | |
ToggleButton(Handle handle)
Construct a toggle button using a handle to a native resource. | |
ToggleButton(String label, boolean hasMnemonic)
Creates a new toggle button with a text label. |
Method Summary | |
---|---|
void | addListener(ToggleListener listener)
Register an object to handle button events.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getInconsistent()
Return whether this is in the inconsistent state
|
boolean | getState()
Returns the state of the toggle button
|
static ToggleButton | getToggleButton(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 | removeListener(ToggleListener listener)
Removes a listener
|
void | setInconsistent(boolean isInconsistent)
Determines whether the toggle button should be in the half-on, or
inconsistent state. |
void | setState(boolean state)
Modifies the state of the toggle button
|
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.
Creates a new toggle button.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 toggle button 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.
Creates a new toggle button with a text label. If the hasMnemonic Label is set, the button is assumes to contain mnemonic characters; that is characters which are preceeded by an underscore. These will appear underlined and will be used as keyboard accelerators.Parameters: label The text to be displayed on the button hasMnemonic If true, keyboeard accelerators will be interpreted.
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 button events.See Also: ToggleListener
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.
Return whether this is in the inconsistent stateReturns: True if the 'inbetween' state is in use
See Also: ToggleButton
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 the state of the toggle buttonReturns: True if the button is on or 'pressed in'.
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.
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.
Determines whether the toggle button should be in the half-on, or inconsistent state. This is envirely a visual setting - changes to this will not affect the state of the button as returned by getState.Parameters: isInconsistent If true, the button will appear in the in-between 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.
Modifies the state of the toggle buttonParameters: state If true, the button is in the 'on', or 'pressed in' state.