|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode tvbrowser.extras.favoritesplugin.dlgs.FavoriteNode
public class FavoriteNode
A node for the favorite tree.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
|
FavoriteNode(java.lang.Object userObject)
Creates an instance of this class with the given Object as userObject of this node. |
protected |
FavoriteNode(java.io.ObjectInputStream in,
int version)
Reads the node from an ObjectInputStream. |
Method Summary | |
---|---|
FavoriteNode |
add(Favorite fav)
Add a favorite to this node if this is a directory node. |
int |
compareTo(FavoriteNode other)
|
boolean |
containsFavorite()
Gets if this node contains a favorite. |
boolean |
equals(java.lang.Object o)
|
Program[] |
getAllPrograms(boolean onlyNotExpiredPrograms)
Gets all programs contained in this node and all children of it. |
Favorite |
getFavorite()
Gets the favorite contained by this node if there is one. |
boolean |
isDirectoryNode()
Gets if this node is a directory node. |
void |
reValidateChannelLimitations()
Tries to load the channel limitation for all childs again. |
protected void |
setWasExpanded(boolean expanded)
|
protected void |
store(java.io.ObjectOutputStream out)
|
java.lang.String |
toString()
|
protected boolean |
wasExpanded()
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FavoriteNode(java.lang.Object userObject)
userObject
- The user object for this node.protected FavoriteNode(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.Method Detail |
---|
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public boolean containsFavorite()
True
if this node contains a favorite, false
otherwise.public boolean isDirectoryNode()
True
if this node is a directory node, false
otherwise.public Favorite getFavorite()
null
if
there is no favorite.protected boolean wasExpanded()
protected void setWasExpanded(boolean expanded)
public FavoriteNode add(Favorite fav)
fav
- The favorite to add.
null
protected void store(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(FavoriteNode other)
compareTo
in interface java.lang.Comparable<FavoriteNode>
public Program[] getAllPrograms(boolean onlyNotExpiredPrograms)
onlyNotExpiredPrograms
- true
if only not expired
programs should be returned, false
otherwise.
public void reValidateChannelLimitations()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |