ARoad0.gBase
Class SketchViewInBaseImpl
java.lang.Object
ARoad0.gBase.FolderAbst
ARoad0.gBase.ViewInBaseImpl
ARoad0.gBase.EPRViewInBaseImpl
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
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_ |
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.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 |
EMPTY_INSTANCE
public static final SketchViewInBase EMPTY_INSTANCE
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
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