org.gnu.gtk.event

Class DialogEvent

Implemented Interfaces:
Serializable

public class DialogEvent
extends GtkEvent

This event is used to identify when a dialog receives an event

See Also:
DialogListener

Nested Class Summary

Field Summary

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

source, type

Constructor Summary

DialogEvent(Object source, EventType type)
Constructor for DialogEvent.

Method Summary

int
getResponse()
Return the response ID for a RESPONSE event.
boolean
isOfType(DialogEvent.Type aType)
void
setResponse(int response)
Set the response ID for this event.

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

getSource, getType, toString

Constructor Details

DialogEvent

public DialogEvent(Object source,
                   EventType type)
Constructor for DialogEvent.

Parameters:
source -
type -

Method Details

getResponse

public int getResponse()
Return the response ID for a RESPONSE event.


isOfType

public boolean isOfType(DialogEvent.Type aType)

Returns:
True if the type of this event is the same as that stated.


setResponse

public void setResponse(int response)
Set the response ID for this event.