From: Johannes Z. <jza...@us...> - 2006-03-29 11:00:47
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/views In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5207/src/net/sf/magicmap/client/views Modified Files: OutlineView.java Log Message: added functionality to exand or collapse items in outline view Index: OutlineView.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/views/OutlineView.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** OutlineView.java 2 Mar 2006 21:57:08 -0000 1.11 --- OutlineView.java 29 Mar 2006 11:00:41 -0000 1.12 *************** *** 494,496 **** --- 494,520 ---- } } + + /** + * Collapse or expand APs in Outline + * @param b - true, if APs shall be collapsed + */ + public void collapseAPs(boolean b) { + if (b) { + tree.collapsePath(new TreePath(nodeAccessPoints.getPath())); + } else { + tree.expandPath(new TreePath(nodeAccessPoints.getPath())); + } + } + + /** + * Collapse or expand RPs in Outline + * @param b - true, if RPs shall be collapsed + */ + public void collapseRPs(boolean b) { + if (b) { + tree.collapsePath(new TreePath(nodeLocations.getPath())); + } else { + tree.expandPath(new TreePath(nodeLocations.getPath())); + } + } } |