You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/06/08 17:17:50 UTC
svn commit: r1348107 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java
Author: lofwyr
Date: Fri Jun 8 15:17:50 2012
New Revision: 1348107
URL: http://svn.apache.org/viewvc?rev=1348107&view=rev
Log:
TOBAGO-1049: Tree
- add expanded state utility
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java?rev=1348107&r1=1348106&r2=1348107&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/ExpandedState.java Fri Jun 8 15:17:50 2012
@@ -202,6 +202,15 @@ public class ExpandedState implements Se
}
/**
+ * Resets the state to the defaults. After this call, the nodes with level smaller than defaultExpandedLevels
+ * are expanded, the other ones are collapsed.
+ */
+ public void reset() {
+ expandedSet.clear();
+ collapsedSet.clear();
+ }
+
+ /**
* @return A unmodifiable set of paths of the expanded nodes.
*/
public Set<TreePath> getExpandedSet() {