com.jbbres.lib.actions.workflow
Class AbstractWorkflowDefinitionNotification

java.lang.Object
  extended by com.jbbres.lib.actions.workflow.AbstractWorkflowDefinitionNotification
All Implemented Interfaces:
WorkflowDefinitionNotification
Direct Known Subclasses:
WorkflowDefinitionMessageNotification

public abstract class AbstractWorkflowDefinitionNotification
extends java.lang.Object
implements WorkflowDefinitionNotification

An implementation of WorkflowDefinitionNotification.

Since:
1.1.0
Version:
1.1.0
Author:
Jean-Baptiste Bres

Nested Class Summary
static class AbstractWorkflowDefinitionNotification.MessageType
          The type of notification message.
 
Constructor Summary
AbstractWorkflowDefinitionNotification(java.lang.String message)
          Instantiates a new notification.
AbstractWorkflowDefinitionNotification(java.lang.String message, AbstractWorkflowDefinitionNotification.MessageType messageType)
          Instantiates a new notification.
AbstractWorkflowDefinitionNotification(java.lang.String message, javax.swing.Icon icon)
          Instantiates a new notification.
 
Method Summary
 javax.swing.Icon getIcon()
          Returns the notification icon.
 java.lang.String getMessage()
          Returns the notification message.
 AbstractWorkflowDefinitionNotification.MessageType getMessageType()
          Returns the current message type.
 void setIcon(javax.swing.Icon newIcon)
          Sets the notification icon.
 void setMessage(java.lang.String newMessage)
          Sets the notification message.
 void setMessageType(AbstractWorkflowDefinitionNotification.MessageType newMessageType)
          Sets the message type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jbbres.lib.actions.workflow.WorkflowDefinitionNotification
dismiss, hasAssociatedOperation, runAssociatedOperation
 

Constructor Detail

AbstractWorkflowDefinitionNotification

public AbstractWorkflowDefinitionNotification(java.lang.String message)
Instantiates a new notification.

Parameters:
message - the message

AbstractWorkflowDefinitionNotification

public AbstractWorkflowDefinitionNotification(java.lang.String message,
                                              AbstractWorkflowDefinitionNotification.MessageType messageType)
Instantiates a new notification.

Parameters:
message - the message
messageType - the message type

AbstractWorkflowDefinitionNotification

public AbstractWorkflowDefinitionNotification(java.lang.String message,
                                              javax.swing.Icon icon)
Instantiates a new notification.

Parameters:
message - the message
icon - the icon
Method Detail

setMessage

public void setMessage(java.lang.String newMessage)
Sets the notification message.

Parameters:
newMessage - the new message

getMessage

public java.lang.String getMessage()
Description copied from interface: WorkflowDefinitionNotification
Returns the notification message.

Specified by:
getMessage in interface WorkflowDefinitionNotification
Returns:
the message

setIcon

public void setIcon(javax.swing.Icon newIcon)
Sets the notification icon.

Parameters:
newIcon - the new icon

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: WorkflowDefinitionNotification
Returns the notification icon.

Specified by:
getIcon in interface WorkflowDefinitionNotification
Returns:
the icon

setMessageType

public void setMessageType(AbstractWorkflowDefinitionNotification.MessageType newMessageType)
Sets the message type. Calling this method results in changing the notification icon. The icon associated to the given type will be set a notification icon.

Parameters:
newMessageType - the new message type

getMessageType

public AbstractWorkflowDefinitionNotification.MessageType getMessageType()
Returns the current message type.

Returns:
the message type


To file bugs or suggest feature enhancements, visit the app.jbbres.com Bug Reporter website.

Additional documentation available online at http://app.jbbres.com/actions/developers.

Copyright � 2009-2011 app.jbbres.com. All Rights Reserved.