|
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.Switch
public class Switch
Switch is a widget that has two states: on or off. The user can control
which state should be active by clicking the empty area, or by dragging the
handle.
Nested Class Summary | |
---|---|
static interface |
Switch.NotifyActivated
The callback invoked when the Switch is activated. |
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 | |
---|---|
Switch()
Create a new Switch widget. |
Method Summary | |
---|---|
void |
connect(Switch.NotifyActivated handler)
Hookup the Switch.NotifyActivated signal that will be
emitted when the Switch will be activated. |
boolean |
isActive()
Returns the current state of the Switch. |
void |
setActive(boolean value)
Sets the state of the Switch. |
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 Switch()
Method Detail |
---|
public void connect(Switch.NotifyActivated handler)
Switch.NotifyActivated
signal that will be
emitted when the Switch will be activated.
public boolean isActive()
public void setActive(boolean value)
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |