public class FilterNode
extends javax.swing.tree.DefaultMutableTreeNode
Modifier | Constructor and Description |
---|---|
|
FilterNode(java.lang.Object userObject)
Creates an instance of this class with
the given Object as userObject of this node.
|
protected |
FilterNode(java.io.ObjectInputStream in,
int version)
Reads the node from an ObjectInputStream.
|
Modifier and Type | Method and Description |
---|---|
FilterNode |
addDirectory(java.lang.String value) |
FilterNode |
addFilter(ProgramFilter filter)
Adds a filter to this node if this is a directory node.
|
boolean |
contains(java.lang.Object o) |
boolean |
containsFilter()
Gets if this node contains a filter.
|
boolean |
containsSeparator()
Gets if this node contains a separator.
|
void |
createMenu(javax.swing.JMenu menu,
ProgramFilter curFilter) |
boolean |
equals(java.lang.Object o) |
ProgramFilter[] |
getAllFilters()
Gets all filters contained in this node and all children of it.
|
ProgramFilter |
getFilter()
Gets the filter contained by this node if there is one.
|
boolean |
isDeletingAllowed() |
boolean |
isDirectoryNode()
Gets if this node is a directory node.
|
boolean |
isUserDeletingAllowed() |
boolean |
isValidFilter() |
protected void |
setWasExpanded(boolean expanded) |
void |
store(java.io.ObjectOutputStream out) |
boolean |
testAndSetToPluginsProgramFilter(PluginsProgramFilter filter) |
java.lang.String |
toString() |
protected boolean |
wasExpanded() |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public FilterNode(java.lang.Object userObject)
userObject
- The user object for this node.protected FilterNode(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The ObjectInputStream to read from.version
- The version of the data file.java.io.IOException
- Thrown if something went wrong.java.lang.ClassNotFoundException
- Thrown if something went wrong.public boolean isValidFilter()
public void store(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public boolean containsSeparator()
True
if this node contains a separator, false
otherwise.public boolean containsFilter()
True
if this node contains a filter, false
otherwise.public boolean isDirectoryNode()
True
if this node is a directory node, false
otherwise.public ProgramFilter getFilter()
null
if
there is no filter.protected boolean wasExpanded()
protected void setWasExpanded(boolean expanded)
public FilterNode addFilter(ProgramFilter filter)
filter
- The filter to add.null
if no node was added.public FilterNode addDirectory(java.lang.String value)
public boolean contains(java.lang.Object o)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public ProgramFilter[] getAllFilters()
public boolean isDeletingAllowed()
public boolean isUserDeletingAllowed()
public boolean testAndSetToPluginsProgramFilter(PluginsProgramFilter filter)
public void createMenu(javax.swing.JMenu menu, ProgramFilter curFilter)
TV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)