ARoad0.gBase
Class SketchViewInBaseImpl

java.lang.Object
  extended by ARoad0.gBase.FolderAbst
      extended by ARoad0.gBase.ViewInBaseImpl
          extended by ARoad0.gBase.EPRViewInBaseImpl
              extended by ARoad0.gBase.SketchViewInBaseImpl
All Implemented Interfaces:
BaseObject, BoundBean, EPRViewInBase, Folder, ImmutableFolder, SketchViewInBase, ViewInBase, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener

public class SketchViewInBaseImpl
extends EPRViewInBaseImpl
implements SketchViewInBase, java.io.Serializable

This class is responsible for modeling in the base, a sketch view about access control issues between access sources and an ACSObject, called the center, and between this center and access targets (Resources or VirtualFolders). It is used by the GraphicSketchViews in the GUI, so there is only one running instance, and it is never saved on the base. m_NoSourceTargets_ is used indirectly by GraphicSketchView.setGraphicNodes(), and not the other internal maps. Caution: no equals() nor clone() methods.

See Also:
GraphicEPRView, Serialized Form

Field Summary
static SketchViewInBase EMPTY_INSTANCE
           
 
Fields inherited from class ARoad0.gBase.EPRViewInBaseImpl
lastEvent_, m_NoSourceTargets_, m_Sources_, m_Targets_
 
Fields inherited from class ARoad0.gBase.ViewInBaseImpl
ARCHI_VIEW_NAME, ARCHI_VIEW_STRING
 
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
SketchViewInBaseImpl()
          Default constructor
SketchViewInBaseImpl(ImmutableName _name)
           
SketchViewInBaseImpl(ImmutableName _name, java.util.Map _m_BaseObjects)
          This constructor is used by ViewInBase_Facade.createSketchView().
 
Method Summary
 void setEorL_BaseObjectsForSketcher(java.util.List<BaseObject> _list)
          Sets the BaseObjects displayed in the sketch view, including the center.
 
Methods inherited from class ARoad0.gBase.EPRViewInBaseImpl
addEorBaseObject, addEorHardAliasOrReference, addEorSource, addEorTarget, addOwnListening, addPropertyChangeListener, containsSource, containsTarget, copy, copyAndSave, finalizeForBase, finalizeForCopy, finalizeForGUI, finalizeFromDeserialization, firePropertyChange, getEorM_NoSourceTargets, getEorM_Sources, getEorM_Targets, prepareAfterRestoring, propertyChange, removeEorBaseObject, removeEorHardAliasOrReference, removeEorSource, removeEorTarget, removeOwnListening, removePropertyChangeListener
 
Methods inherited from class ARoad0.gBase.ViewInBaseImpl
addOwnListening, copy, getCompleteResults, getNickName, getSerialVersionUID, removeOwnListening
 
Methods inherited from class ARoad0.gBase.FolderAbst
addPropertyChangeListener, containsBaseObject, finalize, firePropertyChange, getComment, getConnectedToSeveralACS, getEorBaseError, getEorL_ConnectedACSNames, getEorM_BaseObjects, getFullName, getName, getType, hashCode, isEmpty, prepareBeforeSaving, prepareDataAfterRestoring, removePropertyChangeListener, setComment, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ARoad0.gBaseInterface.EPRViewInBase
addEorSource, addEorTarget, containsSource, containsTarget, copyAndSave, getEorM_NoSourceTargets, getEorM_Sources, getEorM_Targets, removeEorSource, removeEorTarget
 
Methods inherited from interface ARoad0.gBaseInterface.ViewInBase
getCompleteResults
 
Methods inherited from interface ARoad0.gBaseInterface.Folder
addEorBaseObject, addPropertyChangeListener, addPropertyChangeListener, propertyChange, 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, getNickName, hashCode
 

Field Detail

EMPTY_INSTANCE

public static final SketchViewInBase EMPTY_INSTANCE
Constructor Detail

SketchViewInBaseImpl

public SketchViewInBaseImpl()
Default constructor


SketchViewInBaseImpl

public SketchViewInBaseImpl(ImmutableName _name)
                     throws CreateError
Parameters:
_name - of the view. it is copied.
Throws:
CreateError - if the view name is already known in BaseManagerImpl.

SketchViewInBaseImpl

public SketchViewInBaseImpl(ImmutableName _name,
                            java.util.Map _m_BaseObjects)
                     throws CreateError
This constructor is used by ViewInBase_Facade.createSketchView(). A sketch view is not register in the base. Calls the super constructor with the same two arguments, and the third argument at 'false'.

Parameters:
_name - of the view. It is copied.
_m_BaseObjects - is the map (name, object) of the view objects. It is copied. May be null.
Throws:
BaseError - if the constructor of EPRViewInBaseImpl fires it
CreateError
Method Detail

setEorL_BaseObjectsForSketcher

public void setEorL_BaseObjectsForSketcher(java.util.List<BaseObject> _list)
                                    throws BaseError
Sets the BaseObjects displayed in the sketch view, including the center. This method does not listen the changes in the view objects, on the contrary of the add/remove methods. Called by gDMak.ActionOpenSketcher.openSelection() and ViewInBase_Facade.populateSketchView(). m_NoSourceTargets_ is used indirectly by GraphicSketchView.setGraphicNodes(), and not the other maps.

Specified by:
setEorL_BaseObjectsForSketcher in interface SketchViewInBase
Parameters:
_list - of BaseObjects to display in the view. Not null. Includes the view center.
Throws:
BaseError - if _list is empty