A ToggleButton is a button that changes and retains its on or off
state each time it is selected with the mouse. When in the on state, it will
appear to be pressed in.
fireToggleEvent
protected void fireToggleEvent(ToggleEvent event)
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Button
getEventType
public EventType getEventType(String signal)
- getEventType in interface Button
getInconsistent
public boolean getInconsistent()
Return whether this is in the inconsistent state
- True if the 'inbetween' state is in use
setInconsistent(boolean)
getState
public boolean getState()
Returns the state of the toggle button
- True if the button is on or 'pressed in'.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Button
gtk_toggle_button_get_active
protected static final boolean gtk_toggle_button_get_active(Handle toggle_button)
gtk_toggle_button_get_inconsistent
protected static final boolean gtk_toggle_button_get_inconsistent(Handle toggle_button)
gtk_toggle_button_get_mode
protected static final boolean gtk_toggle_button_get_mode(Handle toggle_button)
gtk_toggle_button_get_type
protected static final int gtk_toggle_button_get_type()
gtk_toggle_button_new
protected static final Handle gtk_toggle_button_new()
gtk_toggle_button_new_with_label
protected static final Handle gtk_toggle_button_new_with_label(String label)
gtk_toggle_button_new_with_mnemonic
protected static final Handle gtk_toggle_button_new_with_mnemonic(String label)
gtk_toggle_button_set_active
protected static final void gtk_toggle_button_set_active(Handle toggle_button,
boolean isActive)
gtk_toggle_button_set_inconsistent
protected static final void gtk_toggle_button_set_inconsistent(Handle toggle_button,
boolean setting)
gtk_toggle_button_set_mode
protected static final void gtk_toggle_button_set_mode(Handle toggle_button,
boolean drawIndicator)
gtk_toggle_button_toggled
protected static final void gtk_toggle_button_toggled(Handle toggle_button)
setInconsistent
public void setInconsistent(boolean isInconsistent)
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()
.
isInconsistent
- If true, the button will appear in the in-between
state.
setState
public void setState(boolean state)
Modifies the state of the toggle button
state
- If true, the button is in the 'on', or 'pressed in' state.