org.nakedobjects.object.control
Class AboutChangedEvent
java.lang.Object
java.util.EventObject
org.nakedobjects.object.control.AboutChangedEvent
- All Implemented Interfaces:
- java.io.Serializable
- public final class AboutChangedEvent
- extends java.util.EventObject
Encapsulates the reason of the permission held by the
MutableAbout that is notifying its listeners that it has changed.
The event holds the reason of the permission rather than the actual permission
since permissions are not immutable nor are easily cloned (providing that
would not be safe since client listeners could change the
MutableAbout's permission without its knowledge.
- See Also:
MutableAbout,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
AboutChangedEvent(java.lang.Object source,
java.lang.String reason)
|
|
Method Summary |
java.lang.String |
getReason()
Returns the reason why the permission was changed. |
java.lang.String |
toString()
String representation of this event. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AboutChangedEvent
public AboutChangedEvent(java.lang.Object source,
java.lang.String reason)
getReason
public java.lang.String getReason()
- Returns the reason why the permission was changed. Whether the
permission is a veto or an allow is determined by which method in
AboutListener has been invoked.
Permissions do not need to have a reason - it could be
null. Equally the string returned by this method could be null also.
- See Also:
EventObject.getSource(),
AboutListener
toString
public java.lang.String toString()
- String representation of this event.