org.puremvc.java.core
Class ViewTestNote
java.lang.Object
org.puremvc.java.patterns.observer.Notification
org.puremvc.java.core.ViewTestNote
- All Implemented Interfaces:
- org.puremvc.java.interfaces.INotification
public class ViewTestNote
- extends org.puremvc.java.patterns.observer.Notification
- implements org.puremvc.java.interfaces.INotification
A Notification class used by ViewTest.
- See Also:
ViewTest
Field Summary |
static java.lang.String |
NAME
The name of this Notification. |
Constructor Summary |
ViewTestNote(java.lang.String name,
java.lang.Object body)
Constructor. |
Method Summary |
static org.puremvc.java.interfaces.INotification |
create(java.lang.Object body)
Factory method. |
Methods inherited from class org.puremvc.java.patterns.observer.Notification |
getBody, getName, getType, setBody, setType, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.puremvc.java.interfaces.INotification |
getBody, getName, getType, setBody, setType, toString |
NAME
public static final java.lang.String NAME
- The name of this Notification.
- See Also:
- Constant Field Values
ViewTestNote
public ViewTestNote(java.lang.String name,
java.lang.Object body)
- Constructor.
- Parameters:
name
- Ignored and forced to NAME.body
- the body of the Notification to be constructed.
create
public static org.puremvc.java.interfaces.INotification create(java.lang.Object body)
- Factory method.
This method creates new instances of the ViewTestNote class,
automatically setting the note name so you don't have to. Use this as an
alternative to the constructor.
- Parameters:
name
- the name of the Notification to be constructed.body
- the body of the Notification to be constructed.