|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.misc.NotificationType
A notification type - notify on commencement, completion or do not notify.
| Field Summary | |
static NotificationType |
COMMENCED
Notify on commencement of processing. |
static NotificationType |
COMPLETE
Notify on completion of processing. |
static NotificationType |
NONE
Do not notify. |
| Method Summary | |
java.lang.String |
getAsString()
Return the notification type as a string - either "none", "commenced" or "complete". |
boolean |
isCommenced()
Is the current notification type notification on commencement of processing? |
boolean |
isComplete()
Is the current notification type notification on completion of processing? |
boolean |
isNone()
Is the current notification type no notification? |
void |
setCommenced()
Set the notification type to be notification on commencement of processing. |
void |
setComplete()
Set the notification type to be notification on completion of processing. |
void |
setNone()
Set the notification type to be no notification. |
void |
setType(java.lang.String type)
Set the notification type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final NotificationType NONE
public static final NotificationType COMMENCED
public static final NotificationType COMPLETE
| Method Detail |
public void setType(java.lang.String type)
type - with value NotificationType.NONE_STRING for
no notification, NotificationType.COMMENCED_STRING for
notification on commencement of processing or
NotificationType.COMPLETE_STRING for notification on
completion of processing.
java.lang.IllegalArgumentException - If type is neither NotificationType.NONE_STRING,
NotificationType.COMMENCED_STRING or
NotificationType.COMPLETE_STRINGpublic void setNone()
public void setCommenced()
public void setComplete()
public boolean isNone()
type is NONE_STRING.public boolean isCommenced()
type is COMMENCED_STRING.public boolean isComplete()
type is COMPLETE_STRING.public java.lang.String getAsString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||