cz.cuni.pogamut.posh.view
Class TreeCollapseImprint
java.lang.Object
cz.cuni.pogamut.posh.view.TreeCollapseImprint
public class TreeCollapseImprint
- extends Object
This class is an attempt to remember which widgets were collapse in the widget tree
so I can try to restore collapse state of tree after some modifications in source view.
Basically :
- Graph view is notified about view switch
- Graph view will create a TreeCollapseImprint to store which nodes in the tree were collapsed
- User will modify the source of posh plan
- User will switch to graph view
- Graph view will regerate the graph of posh plan or announce syntax error.
- Graph view will use TreeCollapseImprint to colapse the tree, but since tree has changed, there will be some changes
- Author:
- Honza
|
Constructor Summary |
TreeCollapseImprint(PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> dcw)
Create a TreeCollapseImprint from using passed posh plan tree |
|
Method Summary |
void |
restore(PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> dcw)
Take passed widget tree and try to restore collapse state that is
stored in this memory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeCollapseImprint
public TreeCollapseImprint(PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> dcw)
- Create a TreeCollapseImprint from using passed posh plan tree
- Parameters:
dcw - DriveCollectionWidget, root widget of KidElementView
restore
public void restore(PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> dcw)
- Take passed widget tree and try to restore collapse state that is
stored in this memory.
- Parameters:
dcw - root of widget tree we want to collapse according to this imprint
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.