public class DialogDismissEvent extends Object
DialogDismissListener
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL
Dismissal type; the Cancel button was pressed.
|
private Object |
obj |
static int |
OK
Dismissal type; the OK button was pressed.
|
private Dialog |
source |
private int |
type |
Constructor and Description |
---|
DialogDismissEvent(Dialog source,
int type)
Construct a new
DialogDismissEvent . |
DialogDismissEvent(Dialog source,
int type,
Object userObject)
Construct a new
DialogDismissEvent . |
Modifier and Type | Method and Description |
---|---|
Dialog |
getSource()
Get the source of this event.
|
int |
getType()
Get the dismissal type.
|
Object |
getUserObject()
Get the user object associated with this event.
|
boolean |
isCancelled()
Determine if the dialog was cancelled.
|
public static final int CANCEL
public static final int OK
private int type
public DialogDismissEvent(Dialog source, int type)
DialogDismissEvent
.source
- The dialog that is the source of this event.type
- The dismissal type; one of the numeric constants defined
above.public DialogDismissEvent(Dialog source, int type, Object userObject)
DialogDismissEvent
.source
- The dialog that is the source of this event.type
- The dismissal type; one of the numeric constants defined
above.userObject
- An arbitrary user object to associate with this event.public Dialog getSource()
Dialog
that generated this event.public Object getUserObject()
null
if none was associated.public boolean isCancelled()
true
if the dialog was dismissed via the
Cancel button; equivalent to getType() ==
CANCEL
.public int getType()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses