|
java-gnome version 4.1.2 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Bin
org.gnome.gtk.Button
org.gnome.gtk.ToggleButton
public class ToggleButton
A ToggleButton is a Button which retains its state.
Nested Class Summary | |
---|---|
static interface |
ToggleButton.Toggled
Signal indicating the Button has changed state. |
Nested classes/interfaces inherited from class org.gnome.gtk.Button |
---|
Button.Clicked |
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
---|
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Constructor Summary | |
---|---|
ToggleButton()
Constructs a new ToggleButton |
|
ToggleButton(String label)
Constructs a new ToggleButton with a label. |
Method Summary | |
---|---|
void |
connect(ToggleButton.Toggled handler)
Hook up a ToggleButton.Toggled signal handler. |
boolean |
getActive()
Returns the current state of the ToggleButton |
void |
setActive(boolean active)
Set the state of the ToggleButon. |
Methods inherited from class org.gnome.gtk.Button |
---|
connect, emitClicked, getAlignmentX, getAlignmentY, getImage, getLabel, getRelatedAction, getRelief, setAlignment, setFocusOnClick, setImage, setLabel, setRelatedAction, setRelief |
Methods inherited from class org.gnome.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnome.gtk.Container |
---|
add, getChildren, remove, setBorderWidth |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToggleButton()
public ToggleButton(String label)
The label may contain underscores (
_
) to indicate
the mnemonic for the Button.
Method Detail |
---|
public void connect(ToggleButton.Toggled handler)
ToggleButton.Toggled
signal handler.
public boolean getActive()
true
if the ToggleButton is pressed,
false
otherwise.public void setActive(boolean active)
active
- The new state of the ToggleButton
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |