|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.ISNodeImpl
public class ISNodeImpl
This class is responsible for describing the IS nametree nodes and composites for displaying them in the GUI. It is an adaptor to read the properties of a node from the relevant NameISTreeImpl in the BaseManager. This same class is used while the properties are quite different when the node type changes. This works because the GUI reads the properties through the data (e.g. the method names,...) a BeanInfo provides. Selecting the right BeanInfo is the responsability of the method getBeanInfoNameForISnode() in BaseUtilityImpl. Called by ActionOpenGlobalStructure.valueChanged() and openFrame().
ActionOpenGlobalStructure.valueChanged(javax.swing.event.TreeSelectionEvent)
Field Summary | |
---|---|
private java.beans.PropertyChangeSupport |
changeSupport_
manages all the property change listeners |
static ISNodeImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
protected static int |
INITIAL_CAPACITY
|
private ImmutableNameISTree |
iSTree_
Remains null only for the IS structure root. |
private Name |
nodeName_
|
Constructor Summary | |
---|---|
ISNodeImpl()
The default constructor. |
|
ISNodeImpl(ImmutableNameISTree _iSTree,
ImmutableName _nodeName)
Registers this instance has a listener of BaseManagerImpl for the events 'OneInformationSystem', 'InformationSystemChange', if the node is not the IS structure root. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener _l)
Add a listener to the bean. |
void |
addPropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Adds a listener to the bean. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object _obj)
Compares the values in the internal maps of this class. |
protected void |
finalize()
This method calls finalizeForUser(). |
protected void |
finalizeForUser()
This method nullifies all the inner properties and unregisters it as property listener. |
protected void |
firePropertyChange(java.lang.String _propertyName,
java.lang.Object _oldValue,
java.lang.Object _newValue)
Fire an event to every registered listener, in any order. |
ImmutableName |
getComposite()
Gets the composite if the node is a subcomposite. |
java.lang.String |
getExtendedVisibleSpace()
Gets the nodes which are visible for the node. |
ImmutableName |
getFullName()
The full name is unique for the Access Road program. |
java.util.List<java.lang.String> |
getL_AcsAddonDescriptors()
Gets all the descriptors of the ACS addons that are loaded in the current working directory of Access Road. |
java.util.List<ImmutableName> |
getL_GroundsOfAlternate()
Gets the Grounds for which the node is an Alternate. |
java.util.List<ImmutableName> |
getL_NodesOfComposite()
Gets the nodes belonging to a composite in the nametree. |
java.util.Map<java.lang.String,java.lang.String[]> |
getM_Alternates()
Gets the node property for the Alternate relation. |
ImmutableName |
getName()
The name is unique for the Access Road program only for the ACSObjects. |
java.lang.String |
getNickName()
This short name is NOT unique for the Access Road program nor the ACS if it is an ACS object. |
java.lang.String |
getType()
Gets the type of the node or area, or ISFactoryUtilityImpl.STRUCTURE_ROOT_STRING for the IS structure root. |
int |
hashCode()
|
boolean |
isAuthorizationServer()
True if the node is an ACS or a composite ACS which is an authorization server. |
boolean |
isHubNode()
Tests if a node of the nametree is set as a 'hub' for its children. |
boolean |
isOpen()
Gets the state open/closed of a node or area. |
boolean |
isTiedChild()
True if the node is a tied node. |
void |
propertyChange(java.beans.PropertyChangeEvent _evt)
Receives the events fired by BaseManagerImpl, to send a property change to all the PropertyEditors in the GUI. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener _l)
Removes a listener to the bean. |
void |
removePropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Removes a listener to the bean. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ImmutableNameISTree iSTree_
private Name nodeName_
private transient java.beans.PropertyChangeSupport changeSupport_
protected static final int INITIAL_CAPACITY
public static final ISNodeImpl EMPTY_INSTANCE
Constructor Detail |
---|
public ISNodeImpl()
public ISNodeImpl(ImmutableNameISTree _iSTree, ImmutableName _nodeName) throws CreateError
_iSTree
- a known NameISTree. Null only for the IS structure root._nodeName
- is the name of this nameISTree node. Not null.
CreateError
- if _iSname is unknown, if the node does not belong to
the nametree and is not the IS structure rootMethod Detail |
---|
public final void propertyChange(java.beans.PropertyChangeEvent _evt)
propertyChange
in interface java.beans.PropertyChangeListener
_evt
- from BaseManagerImplpublic final void addPropertyChangeListener(java.beans.PropertyChangeListener _l)
addPropertyChangeListener
in interface BoundBean
_l
- the listenerpublic final void addPropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
addPropertyChangeListener
in interface BoundBean
_propertyName
- the property to listen_l
- the listenerpublic final void removePropertyChangeListener(java.beans.PropertyChangeListener _l)
removePropertyChangeListener
in interface BoundBean
_l
- the listenerpublic final void removePropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
removePropertyChangeListener
in interface BoundBean
_propertyName
- the property to listen_l
- the listenerpublic final ImmutableName getName()
BaseObject
getName
in interface BaseObject
public final ImmutableName getFullName()
BaseObject
getFullName
in interface BaseObject
public final java.lang.String getNickName()
getNickName
in interface BaseObject
public final boolean isOpen()
public final java.lang.String getType()
public final boolean isHubNode()
public final java.lang.String getExtendedVisibleSpace()
public final boolean isAuthorizationServer()
public final java.util.List<ImmutableName> getL_NodesOfComposite()
public final boolean isTiedChild()
public final java.util.Map<java.lang.String,java.lang.String[]> getM_Alternates()
public final ImmutableName getComposite()
public final java.util.List<ImmutableName> getL_GroundsOfAlternate()
public final java.util.List<java.lang.String> getL_AcsAddonDescriptors()
public final java.lang.Object clone()
clone
in class java.lang.Object
public final boolean equals(java.lang.Object _obj)
equals
in interface BaseObject
equals
in class java.lang.Object
_obj
- is the object to compare
public final int hashCode()
hashCode
in interface BaseObject
hashCode
in class java.lang.Object
protected final void finalizeForUser()
protected final void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected final void firePropertyChange(java.lang.String _propertyName, java.lang.Object _oldValue, java.lang.Object _newValue)
_propertyName
- of the updated property_oldValue
- of the property_newValue
- of the property. No operation if equal to _oldValue
and not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |