|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.Gui2.ISTreeBaseListenerImpl
public class ISTreeBaseListenerImpl
This class is responsible for listening the events fired by BaseManagerImpl for updating the JTree which is associated to this TreeBaseListener, managing the tree of the IS Structure. Handles 'OneInformationSystem', 'OneInformationSystemNode', 'OneInformationSystemNodeOpening' change properties. The single source is the single instance of gBase.BaseManagerImpl. The closing and deleting operations are not managed. These operations are handled in Gui1/Gui2, in the gDMak classes ActionClose and ActionOpen, and by TreeManager in Gui2.
Field Summary | |
---|---|
static ISTreeBaseListenerImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
private static int |
INITIAL_CAPACITY
|
private java.util.List |
l_eventSources_
contains only BaseManagerImpl firing PropertyChangeEvents |
private boolean |
listenEvents_
|
private static int |
PRIME
|
private javax.swing.tree.DefaultMutableTreeNode |
root_
root node of the JTree, which is not an IS node |
private ImmutableName |
sourceName_
name of the source for TreeManager |
private javax.swing.JTree |
tree_
the JTree |
private javax.swing.tree.DefaultTreeModel |
treeModel_
tree model of the JTree |
Constructor Summary | |
---|---|
ISTreeBaseListenerImpl()
Public constructor. |
|
ISTreeBaseListenerImpl(javax.swing.JTree _tree,
javax.swing.tree.MutableTreeNode _root)
With this constructor, the ISTreeBaseListenerImpl is registered as a listener for BaseManagerImpl firing PropertyChangeEvents, and is associated to the global structure JTree. |
Method Summary | |
---|---|
private void |
changeOneInformationSystem(java.beans.PropertyChangeEvent _evt)
Process event from BaseManagerImpl about 'OneInformationSystem' updatings. |
private void |
changeOneInformationSystemNode(java.beans.PropertyChangeEvent _evt)
Process event from BaseManagerImpl about 'OneInformationSystemNode' updatings. |
private void |
changeOneInformationSystemNodeOpening(java.beans.PropertyChangeEvent _evt)
Process event from BaseManagerImpl about 'OneInformationSystemNodeOpening' updatings. |
void |
finalizeForUser()
Unregister the instance as a listener for all registered sources. |
ImmutableName |
getEorMainEventSource()
Get the main event source associated to the instance in its construction, which is sourceName_. |
javax.swing.tree.MutableTreeNode |
getEorRoot()
Get the TreeModel root associated to the instance in its construction. |
javax.swing.tree.DefaultTreeModel |
getEorTreeModel()
Get the TreeModel associated to the ACS tree instance in its construction. |
void |
propertyChange(java.beans.PropertyChangeEvent _evt)
Receives the source events about property changes on 'OneInformationSystem', 'OneInformationSystemNode', 'OneInformationSystemNodeOpening'. |
boolean |
setListenEvents(boolean _listen)
To listen or not the events in propertyChange(). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ARoad0.Gui2.BaseListener |
---|
hashCode |
Field Detail |
---|
private static final int PRIME
private static final int INITIAL_CAPACITY
private java.util.List l_eventSources_
private javax.swing.JTree tree_
private javax.swing.tree.DefaultTreeModel treeModel_
private javax.swing.tree.DefaultMutableTreeNode root_
private ImmutableName sourceName_
private boolean listenEvents_
public static final ISTreeBaseListenerImpl EMPTY_INSTANCE
Constructor Detail |
---|
public ISTreeBaseListenerImpl()
public ISTreeBaseListenerImpl(javax.swing.JTree _tree, javax.swing.tree.MutableTreeNode _root)
_tree
- associated to the instance_root
- associated to _source in _tree
ProcessError
- if _source is nullMethod Detail |
---|
public ImmutableName getEorMainEventSource()
getEorMainEventSource
in interface BaseListener
public boolean setListenEvents(boolean _listen)
setListenEvents
in interface BaseListener
_listen
- true to listen the events in this instance, through propertyChange()
public javax.swing.tree.DefaultTreeModel getEorTreeModel()
getEorTreeModel
in interface TreeBaseListener
public javax.swing.tree.MutableTreeNode getEorRoot()
getEorRoot
in interface TreeBaseListener
public void propertyChange(java.beans.PropertyChangeEvent _evt)
propertyChange
in interface java.beans.PropertyChangeListener
_evt
- PropertyChangeEventprivate void changeOneInformationSystem(java.beans.PropertyChangeEvent _evt)
_evt
- PropertyChangeEventprivate void changeOneInformationSystemNode(java.beans.PropertyChangeEvent _evt)
_evt
- PropertyChangeEventprivate void changeOneInformationSystemNodeOpening(java.beans.PropertyChangeEvent _evt)
_evt
- PropertyChangeEventpublic void finalizeForUser()
finalizeForUser
in interface BaseListener
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |