org.gnu.gtk.event

Class DialogEvent

public class DialogEvent extends GtkEvent

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

See Also: DialogListener

Nested Class Summary
static classDialogEvent.Type
Constructor Summary
DialogEvent(Object source, EventType type)
Constructor for DialogEvent.
Method Summary
intgetResponse()
Return the response ID for a RESPONSE event.
booleanisOfType(DialogEvent.Type aType)
voidsetResponse(int response)
Set the response ID for this event.

Constructor Detail

DialogEvent

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

Parameters: source type

Method Detail

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.