Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.model.basic
Class BasicModelChangeEvent  view BasicModelChangeEvent download BasicModelChangeEvent.java

java.lang.Object
  extended byorg.scopemvc.model.basic.BasicModelChangeEvent
All Implemented Interfaces:
org.scopemvc.core.ModelChangeEvent, org.scopemvc.core.ModelChangeTypes

public final class BasicModelChangeEvent
extends java.lang.Object
implements org.scopemvc.core.ModelChangeEvent

Concrete implementation of ModelChangeEvent.

Version:
$Revision: 1.2 $ $Date: 2002/01/12 09:35:40 $

Field Summary
private  org.scopemvc.core.ModelChangeEventSource model
          Source Model of this event.
private  org.scopemvc.core.Selector propertySelector
          Property of the source Model that caused this event.
private  int type
          The type of change.
 
Fields inherited from interface org.scopemvc.core.ModelChangeTypes
ACCESS_CHANGED, VALUE_ADDED, VALUE_CHANGED, VALUE_REMOVED
 
Constructor Summary
BasicModelChangeEvent()
           
 
Method Summary
 org.scopemvc.core.ModelChangeEventSource getModel()
          Get the source Model of this event.
 org.scopemvc.core.Selector getSelector()
          Get the Selector for the contents that changed to cause broadcast of this event.
 int getType()
          Return the type of change this event notifies.
 void setModel(org.scopemvc.core.ModelChangeEventSource inModel)
          Set the source of this event.
 void setSelector(org.scopemvc.core.Selector inSelector)
          Set the Selector representing the contents that changed to cause broadcast of this event.
 void setType(int inType)
          Set the type of change this event notifies of.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private int type
The type of change. Initialised to VALUE_CHANGED.

See Also:
org.scopemvc.core.ModelChangeTypes

model

private org.scopemvc.core.ModelChangeEventSource model
Source Model of this event.


propertySelector

private org.scopemvc.core.Selector propertySelector
Property of the source Model that caused this event.

Constructor Detail

BasicModelChangeEvent

public BasicModelChangeEvent()
Method Detail

setType

public void setType(int inType)
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Set the type of change this event notifies of.

Specified by:
setType in interface org.scopemvc.core.ModelChangeEvent

getType

public int getType()
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Return the type of change this event notifies.

Specified by:
getType in interface org.scopemvc.core.ModelChangeEvent

setModel

public void setModel(org.scopemvc.core.ModelChangeEventSource inModel)
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Set the source of this event.

Specified by:
setModel in interface org.scopemvc.core.ModelChangeEvent

getModel

public org.scopemvc.core.ModelChangeEventSource getModel()
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Get the source Model of this event.

Specified by:
getModel in interface org.scopemvc.core.ModelChangeEvent

setSelector

public void setSelector(org.scopemvc.core.Selector inSelector)
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Set the Selector representing the contents that changed to cause broadcast of this event.

Specified by:
setSelector in interface org.scopemvc.core.ModelChangeEvent

getSelector

public org.scopemvc.core.Selector getSelector()
Description copied from interface: org.scopemvc.core.ModelChangeEvent
Get the Selector for the contents that changed to cause broadcast of this event.

Specified by:
getSelector in interface org.scopemvc.core.ModelChangeEvent

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).