|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.FolderAbst
ARoad0.gBase.ViewInBaseImpl
public class ViewInBaseImpl
This class is responsible for modeling a view which is the backing data of a GraphicView in the GUI. It is both a base listener and a bean with bounding properties. It is a direct listener of the ACS openings and ACS closings, since a view is opened only if all its ACS are opened. It is NOT a listener of the base object opening and closing which is handled by the super class. It is NOT a listener of the properties of base objects which belong to this view, since this feature is provided by the subclasses. This class is used directly only for the 'Architecture' view, where the view objects are ACS. Otherwise, the subclasses handle view objects as ACSObjects. At the opening of a view, the deserialized instance does not contain the view objects, and their value are put in the view from the open ACSs. This is why the super method prepareAfterRestoring() has to be called by BaseManagerImpl after the opening of a view. Caution: no equals() nor clone() methods.
Field Summary | |
---|---|
static Name |
ARCHI_VIEW_NAME
|
static java.lang.String |
ARCHI_VIEW_STRING
|
static ViewInBase |
EMPTY_INSTANCE
|
private static long |
serialVersionUID__
|
Fields inherited from class ARoad0.gBase.FolderAbst |
---|
baseError_, changeSupport_, comment_, connectedToSeveralACS_, INITIAL_CAPACITY, INITIAL_CAPACITY_5, l_connectedACSNames_, m_BaseObjects_, m_ObjectsNames_, name_, PRIME, serialPersistentFields, type_ |
Constructor Summary | |
---|---|
ViewInBaseImpl()
Default constructor |
|
ViewInBaseImpl(ImmutableName _name)
This constructor is used by the GUI. |
|
ViewInBaseImpl(ImmutableName _name,
boolean _toRegisterInManager)
This constructor allows the subclasses to manage directly the registration in BaseManagerImpl, to initialize their properties before the firing of the 'OpenViews' event by BaseManagerImpl. |
|
ViewInBaseImpl(ImmutableName _name,
java.util.Map _m_BaseObjects,
boolean _toRegisterInManager)
This constructor provides a ViewInBaseImpl instance from a map of base objects. |
Method Summary | |
---|---|
protected void |
addOwnListening()
This method registers the instance as a property event listener of 'OpenACS' on BaseManagerImpl to detect the closing of a relevant acs, and 'OneBaseObject' on ACSImpl to detect the deleting of a view object. |
protected static ViewInBase |
copy(ImmutableName _name,
ViewInBase _view,
boolean _toRegisterInManager)
This method creates a copy with another name. |
boolean |
getCompleteResults()
False if at least one ACS structure modeling is incomplete for an used ACS. |
java.lang.String |
getNickName()
This short name is NOT unique for the Access Road program, nor its ACS if it is an ACS object. |
long |
getSerialVersionUID()
|
void |
propertyChange(java.beans.PropertyChangeEvent _evt)
Observes the changes 'OpenACS' in the open ACS, and closes the instance if a connected ACS has been closed. |
protected void |
removeOwnListening()
This method unregisters the instance as a property event listener of 'OpenACS' on BaseManagerImpl, and 'OneBaseObject' on ACSImpl if it is not closed (the acs closing produces a call to finalizeForBase()). |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ARoad0.gBaseInterface.Folder |
---|
addEorBaseObject, addPropertyChangeListener, addPropertyChangeListener, removeEorBaseObject, removePropertyChangeListener, removePropertyChangeListener, setComment |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableFolder |
---|
containsBaseObject, getComment, getConnectedToSeveralACS, getEorL_ConnectedACSNames, getEorM_BaseObjects, getType, isEmpty |
Methods inherited from interface ARoad0.gBaseInterface.BaseObject |
---|
equals, getFullName, getName, hashCode |
Field Detail |
---|
private static final long serialVersionUID__
public static final java.lang.String ARCHI_VIEW_STRING
public static final Name ARCHI_VIEW_NAME
public static final ViewInBase EMPTY_INSTANCE
Constructor Detail |
---|
public ViewInBaseImpl()
public ViewInBaseImpl(ImmutableName _name) throws CreateError
_name
- ImmutableName is copied.
CreateError
- if the view name is null, already known in BaseManagerImpl,
or if it contains an ISO control value.public ViewInBaseImpl(ImmutableName _name, boolean _toRegisterInManager) throws CreateError
_name
- ImmutableName is copied._toRegisterInManager
- false if this constructor must not register
the instance in BaseManagerImpl. If true, this constructor is identical to
ViewInBaseImpl(_name)
CreateError
- if the view name is null, already known in BaseManagerImpl,
or if it contains an ISO control value.public ViewInBaseImpl(ImmutableName _name, java.util.Map _m_BaseObjects, boolean _toRegisterInManager) throws CreateError
_name
- of the view. It is copied._m_BaseObjects
- is the map (name, object) of the view objects.
It is copied. May be null._toRegisterInManager
- false if this constructor must not register
the instance in BaseManagerImpl.
CreateError
- if _name is already known in BaseManagerImpl,
or if _m_BaseObjects contains a null, no BaseObject, or empty-name object.Method Detail |
---|
public long getSerialVersionUID()
getSerialVersionUID
in class FolderAbst
public java.lang.String getNickName()
getNickName
in interface BaseObject
getNickName
in class FolderAbst
public boolean getCompleteResults()
getCompleteResults
in interface ViewInBase
public void propertyChange(java.beans.PropertyChangeEvent _evt)
propertyChange
in interface Folder
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class FolderAbst
_evt
- protected static ViewInBase copy(ImmutableName _name, ViewInBase _view, boolean _toRegisterInManager) throws BaseError
_name
- ImmutableName of the view. It is copied._view
- ViewInBaseImpl to copy._toRegisterInManager
- false if this method must not register
the instance in BaseManagerImpl.
BaseError
- if _name is null or already known in BaseManagerImpl,
or if _view is null or not known.protected void addOwnListening()
addOwnListening
in class FolderAbst
protected void removeOwnListening()
removeOwnListening
in class FolderAbst
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |