com.u2d.model
Class AbstractEObject

java.lang.Object
  extended by com.u2d.model.AbstractEObject
All Implemented Interfaces:
ChangeNotifier, EObject, Viewable, ValidationNotifier, java.io.Serializable
Direct Known Subclasses:
AbstractAtomicEO, AbstractComplexEObject, AbstractInequality, AbstractListEO

public abstract class AbstractEObject
extends java.lang.Object
implements java.io.Serializable, EObject

Author:
Eitan Suez
See Also:
Serialized Form

Field Summary
protected  javax.swing.event.EventListenerList _listenerList
           
protected  javax.swing.event.EventListenerList _postListeners
           
protected  ValidationEvent _validationEvent
           
protected  javax.swing.event.EventListenerList _validationListenerList
           
protected  javax.swing.event.ChangeEvent changeEvent
           
 
Constructor Summary
AbstractEObject()
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
           
 void addPostChangeListener(javax.swing.event.ChangeListener l)
           
 void addValidationListener(ValidationListener l)
           
abstract  Onion commands()
           
protected  User currentUser()
           
 Field field()
           
 void fireStateChanged()
           
 void fireValidationException(java.lang.String errorMsg)
           
 void fireValidationException(java.lang.String errorMsg, boolean statusType)
           
abstract  EView getView()
           
protected  HBMSingleSession hbmPersistor()
           
abstract  boolean isEmpty()
           
abstract  EObject makeCopy()
           
 ComplexEObject parentObject()
           
protected  PersistenceMechanism persistor()
           
 void removeChangeListener(javax.swing.event.ChangeListener l)
           
 void removePostChangeListener(javax.swing.event.ChangeListener l)
           
 void removeValidationListener(ValidationListener l)
           
 void setField(Field field, ComplexEObject parent)
           
abstract  void setValue(EObject value)
           
abstract  Title title()
           
abstract  int validate()
           
protected  ViewMechanism vmech()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.u2d.model.EObject
iconLg, iconSm
 
Methods inherited from interface com.u2d.model.Viewable
getMainView
 

Field Detail

changeEvent

protected transient javax.swing.event.ChangeEvent changeEvent

_listenerList

protected transient javax.swing.event.EventListenerList _listenerList

_postListeners

protected transient javax.swing.event.EventListenerList _postListeners

_validationEvent

protected transient ValidationEvent _validationEvent

_validationListenerList

protected transient javax.swing.event.EventListenerList _validationListenerList
Constructor Detail

AbstractEObject

public AbstractEObject()
Method Detail

title

public abstract Title title()
Specified by:
title in interface EObject

isEmpty

public abstract boolean isEmpty()
Specified by:
isEmpty in interface EObject

validate

public abstract int validate()
Specified by:
validate in interface EObject

getView

public abstract EView getView()
Specified by:
getView in interface Viewable

commands

public abstract Onion commands()
Specified by:
commands in interface EObject

setField

public void setField(Field field,
                     ComplexEObject parent)
Specified by:
setField in interface EObject

field

public Field field()
Specified by:
field in interface EObject

parentObject

public ComplexEObject parentObject()
Specified by:
parentObject in interface EObject

makeCopy

public abstract EObject makeCopy()
Specified by:
makeCopy in interface EObject

setValue

public abstract void setValue(EObject value)
Specified by:
setValue in interface EObject

vmech

protected ViewMechanism vmech()

persistor

protected PersistenceMechanism persistor()

hbmPersistor

protected HBMSingleSession hbmPersistor()

currentUser

protected User currentUser()

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener l)
Specified by:
addChangeListener in interface ChangeNotifier

addPostChangeListener

public void addPostChangeListener(javax.swing.event.ChangeListener l)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener l)
Specified by:
removeChangeListener in interface ChangeNotifier

removePostChangeListener

public void removePostChangeListener(javax.swing.event.ChangeListener l)

fireStateChanged

public void fireStateChanged()
Specified by:
fireStateChanged in interface ChangeNotifier

addValidationListener

public void addValidationListener(ValidationListener l)
Specified by:
addValidationListener in interface ValidationNotifier

removeValidationListener

public void removeValidationListener(ValidationListener l)
Specified by:
removeValidationListener in interface ValidationNotifier

fireValidationException

public void fireValidationException(java.lang.String errorMsg,
                                    boolean statusType)
Specified by:
fireValidationException in interface ValidationNotifier

fireValidationException

public void fireValidationException(java.lang.String errorMsg)
Specified by:
fireValidationException in interface ValidationNotifier