org.gnu.gtk.event

Class ButtonEvent

Implemented Interfaces:
Serializable

public class ButtonEvent
extends GtkEvent

An event representing action by a Button widget.

Nested Class Summary

static class
ButtonEvent.Type
Type of a ButtonEvent

Constructor Summary

ButtonEvent(Object source, ButtonEvent.Type type)
Creates a new Button Event.

Method Summary

boolean
isOfType(ButtonEvent.Type aType)

Methods inherited from class org.gnu.gtk.event.GtkEvent

getSource, getType, toString

Constructor Details

ButtonEvent

public ButtonEvent(Object source,
                   ButtonEvent.Type type)
Creates a new Button Event. This is used internally by java-gnome. Users only have to deal with listeners.

Method Details

isOfType

public boolean isOfType(ButtonEvent.Type aType)
Returns:
True if the type of this event is the same as that stated.