|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.CFolderMemberImpl
public class CFolderMemberImpl
This class is an embedded class responsible for modeling a folder member which is contained in a EPRViewInBase or in a VirtualFolder. An instance is used as a private attribute of a composite class instance (called the master instance) which delegates the processing of its membership to an instance of this class. The master class is a Basic or a VirtualFolder. When it is a VirtualFolder, it is only to handle the EPRViewInBases, and never the VirtualFolders.
This class implements some methods of its master, but this is not directly controlled by Java since this class does not implement the interface to avoid to be a public class. All variables are private to secure the white box inheritances from this class.
It is a javabean with the following bound properties:
- 'ImpliedOpenViews', 'VirtualFolders'.
The listeners are proper to this instance. Excepting for ViewInBase, they are outside gBase, transient (not serialized in this instance backup). They are called in any order. They receive only a copy of the new value, to protect the property. The exceptions from the listeners are not catched. This class is public to be overriden in the AcsAddons, and in this case, the subclass is only called by some classes in the same package.
ViewInBase
,
VirtualFolder
,
Serialized FormField Summary | |
---|---|
protected java.beans.PropertyChangeSupport |
changeSupport_
manages all the property change listeners |
static CFolderMemberImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
protected static int |
INCREMENT_CAPACITY
|
protected static int |
INITIAL_CAPACITY
Protected variables |
protected static int |
INITIAL_CAPACITY_2
|
protected java.util.ArrayList<ViewInBase> |
l_OpenViews_
list of open ViewInBase that contains this instance Created only when it is needed. |
protected java.util.ArrayList<VirtualFolder> |
l_VirtualFolders_
list of VirtualFolder that contains this instance. |
protected ACSObject |
master_
|
protected static int |
PRIME
|
static java.io.ObjectStreamField[] |
serialPersistentFields
variable for the JDK 2 serialization |
private static long |
serialVersionUID
private variables |
Constructor Summary | |
---|---|
CFolderMemberImpl()
The basic constructor. |
|
CFolderMemberImpl(ACSObject _master)
Used by the master constructor. |
Method Summary | |
---|---|
protected void |
addInVFolderList(VirtualFolder _folder)
Registers the folder as containing the master. |
protected void |
addInViewList(ViewInBase _view)
Registers the view as containing the master. |
protected void |
addPropertyChangeListener(java.beans.PropertyChangeListener _l)
Adds a listener for all the bound properties. |
protected void |
addPropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Adds a listener to the bean. |
protected CFolderMemberImpl |
cloneC(Basic _master)
Clone for embedded class without registering the new object in the ACSs. |
protected CFolderMemberImpl |
copy(ACSObject _masterCopy)
This method provides a copy of the instance with another name, without children copying because the copy order will not be always correct. |
boolean |
equals(java.lang.Object _obj)
|
protected void |
finalize()
This method removes the CFolderMember from the ACS lists, but there is no guaranee that the JVM calls this method before the end of the application. |
protected void |
finalizeForBase()
Finalizes the CFolderMember. |
protected void |
finalizeFromDeserialization()
This method finalizes all the virtual folders, since it is used after a deserialization. |
protected void |
firePropertyChange(java.lang.String _propertyName,
java.lang.Object _oldValue,
java.lang.Object _newValue)
Fires an event to every registered listener, in any order. |
protected java.util.List<ViewInBase> |
getImpliedViews()
Gets the open views containing the master. |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String _propertyName)
Returns the change listeners for a property. |
long |
getSerialVersionUID()
|
protected java.util.List<VirtualFolder> |
getVirtualFolders()
Gets the virtual folders containing the master. |
int |
hashCode()
|
protected boolean |
removeInVFolderList(VirtualFolder _folder)
Unregisters the folder when it does not contain the master. |
protected boolean |
removeInViewList(ViewInBase _view)
Unregisters the view when it does not contain the master. |
protected void |
removePropertyChangeListener(java.beans.PropertyChangeListener _l)
Removes a listener to the bean, for all the bound properties. |
protected void |
removePropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Removes a listener. |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int INITIAL_CAPACITY
protected static final int INITIAL_CAPACITY_2
protected static final int INCREMENT_CAPACITY
protected static final int PRIME
private static final long serialVersionUID
protected ACSObject master_
protected transient java.util.ArrayList<ViewInBase> l_OpenViews_
protected java.util.ArrayList<VirtualFolder> l_VirtualFolders_
public static final CFolderMemberImpl EMPTY_INSTANCE
protected transient java.beans.PropertyChangeSupport changeSupport_
public static final java.io.ObjectStreamField[] serialPersistentFields
Constructor Detail |
---|
public CFolderMemberImpl()
public CFolderMemberImpl(ACSObject _master) throws CreateError
_master
- master of this embedded class
CreateError
- the master is nullMethod Detail |
---|
protected CFolderMemberImpl copy(ACSObject _masterCopy) throws CreateError
_masterCopy
- is the master of the new copy
CreateError
- of the constructor with the same parameters.protected java.util.List<ViewInBase> getImpliedViews()
protected java.util.List<VirtualFolder> getVirtualFolders()
protected void addInViewList(ViewInBase _view)
protected boolean removeInViewList(ViewInBase _view)
protected void addInVFolderList(VirtualFolder _folder) throws CreateError
CreateError
- if the ACS or the master does not manage the virtual folders.protected boolean removeInVFolderList(VirtualFolder _folder) throws CreateError
_folder
- to remove. May be finalized, e. g. with a null baseError_.
CreateError
- if the ACS or the master does not manage the virtual folders.protected void addPropertyChangeListener(java.beans.PropertyChangeListener _l)
_l
- PropertyChangeListener to addprotected void addPropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
_propertyName
- String is the name of the property_l
- PropertyChangeListener to addprotected void removePropertyChangeListener(java.beans.PropertyChangeListener _l)
_l
- PropertyChangeListener to removeprotected void removePropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
_propertyName
- String is the name of the property_l
- PropertyChangeListener to removepublic java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String _propertyName)
_propertyName
- name of the listened property.
protected void finalizeForBase() throws UpDateError
UpDateError
- if VirtualFolder.removeEorBaseObject() throws an exceptionprotected void finalizeFromDeserialization()
protected CFolderMemberImpl cloneC(Basic _master)
java.lang.CloneNotSupportedException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
_obj
- Object
public long getSerialVersionUID()
protected void firePropertyChange(java.lang.String _propertyName, java.lang.Object _oldValue, java.lang.Object _newValue)
_propertyName
- name of the changing property_oldValue
- of the property_newValue
- of the property. No operation if equal to _oldValue
and not null.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |