org.activemath.author.toc
Class TOCFilter
java.lang.Object
org.activemath.author.toc.TOCFilter
public class TOCFilter
- extends Object
A simple class to filter a table-of-contents stored in
TOCedit.
|
Constructor Summary |
TOCFilter(String attributeName,
String attributeValue,
MBaseRef mbaseRef)
Creates the filter for items with a metadata/extradata
child in OJConstants.AM_NAMESPACE with the
name attributeValue and attribute
with name value and value attributeValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOCFilter
public TOCFilter(String attributeName,
String attributeValue,
MBaseRef mbaseRef)
- Creates the filter for items with a metadata/extradata
child in
OJConstants.AM_NAMESPACE with the
name attributeValue
and attribute
with name value and value attributeValue
.
- Parameters:
attributeName - attributeValue -
askWhichOnesAndDo
public static void askWhichOnesAndDo(JFrame baseFrame,
MBaseRef mbase,
TOC toc)
doFilter
public void doFilter(EditableTOCJTree tree)
- Applies the filter by removing any node in the
tree that's not satisfying the metadata-attribute.
- Parameters:
tree - the tree under whose rootnode the filter will be applied