|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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(Object userObject)
Creates an instance of this class with the given Object as userObject of this node. |
protected |
FavoriteNode(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(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. |
protected void |
setWasExpanded(boolean expanded)
|
protected void |
store(ObjectOutputStream out)
|
String |
toString()
|
protected boolean |
wasExpanded()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FavoriteNode(Object userObject)
userObject - The user object for this node.
protected FavoriteNode(ObjectInputStream in,
int version)
throws IOException,
ClassNotFoundException
in - The ObjectInputStream to read from.version - The version of the data file.
IOException - Thrown if something went wrong.
ClassNotFoundException - Thrown if something went wrong.| Method Detail |
|---|
public String toString()
toString in class DefaultMutableTreeNodepublic 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.
protected void store(ObjectOutputStream out)
throws IOException
IOExceptionpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(FavoriteNode other)
compareTo in interface Comparable<FavoriteNode>public Program[] getAllPrograms(boolean onlyNotExpiredPrograms)
onlyNotExpiredPrograms - true if only not expired
programs should be returned, false otherwise.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||