|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jbbres.lib.actions.workflow.AbstractWorkflowDefinitionNotification com.jbbres.lib.actions.workflow.WorkflowDefinitionMessageNotification
public class WorkflowDefinitionMessageNotification
A default implementation of WorkflowDefinitionNotification
.
Notifications based on this class do not have an operation associated.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jbbres.lib.actions.workflow.AbstractWorkflowDefinitionNotification |
---|
AbstractWorkflowDefinitionNotification.MessageType |
Constructor Summary | |
---|---|
WorkflowDefinitionMessageNotification(java.lang.String message)
Instantiates a new notification. |
|
WorkflowDefinitionMessageNotification(java.lang.String message,
AbstractWorkflowDefinitionNotification.MessageType messageType)
Instantiates a new notification. |
|
WorkflowDefinitionMessageNotification(java.lang.String message,
javax.swing.Icon icon)
Instantiates a new notification. |
Method Summary | |
---|---|
void |
dismiss()
This method is called when the message is dismissed by the user. |
boolean |
hasAssociatedOperation()
Returns true if an operation is associated to the notification. |
boolean |
runAssociatedOperation()
Executes the operation associated to the notification. |
Methods inherited from class com.jbbres.lib.actions.workflow.AbstractWorkflowDefinitionNotification |
---|
getIcon, getMessage, getMessageType, setIcon, setMessage, setMessageType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowDefinitionMessageNotification(java.lang.String message)
message
- the messagepublic WorkflowDefinitionMessageNotification(java.lang.String message, javax.swing.Icon icon)
message
- the messageicon
- the iconpublic WorkflowDefinitionMessageNotification(java.lang.String message, AbstractWorkflowDefinitionNotification.MessageType messageType)
message
- the messagemessageType
- the message typeMethod Detail |
---|
public boolean hasAssociatedOperation()
WorkflowDefinitionNotification
true
if an operation is associated to the notification.
An operation is a piece of code that is executed when the user click on
the notification panel. The code can be defined in the
WorkflowDefinitionNotification.runAssociatedOperation()
method.
true
if an operation is associated to the notification.public boolean runAssociatedOperation()
WorkflowDefinitionNotification
true
if the operation has been successfully performed. In
this case the notification will disappear. If the result of this
method is false
the notification stays visible.public void dismiss()
WorkflowDefinitionNotification
WorkflowDefinitionNotification.runAssociatedOperation()
, change in the workflow definition...),
this method is not called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |