|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.Gui2.ViewTreeBaseListenerImpl
public class ViewTreeBaseListenerImpl
This class manages one tree view in the explorer. It is responsible for listening the events:
- 'OpenViews' fired BaseManager when the view is closed,
- 'ConnectedACS' fired by the ViewInBase when an implied ACS is closing,
- events fired by the changing ViewInBase objects, through the ViewInBase, for updating the JTree which displays them in the explorer
Each event source is registered only one time. The automatic closing of views are managed only by them, but this class detects the closing by the base, and call ActionClose to call the relevant GUI objects.
Field Summary | |
---|---|
private static int |
INITIAL_CAPACITY
|
private boolean |
listenEvents_
|
private static int |
PRIME
|
private javax.swing.tree.DefaultMutableTreeNode |
root_
|
private javax.swing.tree.DefaultTreeModel |
treeModel_
|
private ViewInBase |
view_
|
private ImmutableName |
viewName_
|
Constructor Summary | |
---|---|
ViewTreeBaseListenerImpl()
Public constructor. |
|
ViewTreeBaseListenerImpl(ViewInBase _source)
With this constructor, the ViewTreeBaseListenerImpl is registered as a listener for the view. |
Method Summary | |
---|---|
private void |
changeViewTree()
Update the view tree in the explorer. |
void |
finalizeForUser()
Unregister the instance as a listener for the view. |
ImmutableName |
getEorMainEventSource()
Get the main event source associated to the instance in its construction. |
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 instance in its construction. |
void |
propertyChange(java.beans.PropertyChangeEvent _evt)
Receive the source events about property changes. |
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 ViewInBase view_
private ImmutableName viewName_
private javax.swing.tree.DefaultMutableTreeNode root_
private javax.swing.tree.DefaultTreeModel treeModel_
private boolean listenEvents_
Constructor Detail |
---|
public ViewTreeBaseListenerImpl()
public ViewTreeBaseListenerImpl(ViewInBase _source)
_source
- is the viewMethod 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 changeViewTree()
public 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 |