|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.MediaNodeAPI
public class MediaNodeAPI
Virtual content directory abstraction.
| Method Summary | |
|---|---|
void |
AppendNodeFilter(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean MatchPasses)
Adds a filtering technique to used by the specified MediaNode hierarchy. |
sage.vfs.MediaNode |
CreateMediaNode(java.lang.String PrimaryLabel,
java.lang.String SecondaryLabel,
java.lang.Object Thumbnail,
java.lang.Object Icon,
java.lang.Object DataObject)
Creates a static MediaNode that has no parents and no children. |
java.util.Collection |
GetAllNodeDescendants(sage.vfs.MediaNode MediaNode)
Returns the data set that represents all the children under the specified MediaNode if that data set has already been realized. |
int |
GetChildrenCheckedCount(sage.vfs.MediaNode MediaNode,
boolean State)
Returns the number of children of the specified MediaNode that are in the specified checked state. |
java.util.Vector |
GetChildrenCheckedNodes(sage.vfs.MediaNode MediaNode,
boolean State)
Returns the children of the specified MediaNode that are in the specified checked state. |
sage.vfs.MediaNode |
GetMediaSource(java.lang.String Name)
Retrieves a MediaNode which is the root of the specified 'Media Source'. |
sage.vfs.MediaNode |
GetMediaView(java.lang.String Name,
java.lang.Object Data)
Similar to the GetMediaSource API call; but the second argument allows specifying the actual data set to be used for the view. |
sage.vfs.MediaNode |
GetNodeChildAt(sage.vfs.MediaNode MediaNode,
int Index)
Returns the child of the specified MediaNode at the given index |
sage.vfs.MediaNode[] |
GetNodeChildren(sage.vfs.MediaNode MediaNode)
Returns an array of the children of the specified MediaNode |
java.lang.Object |
GetNodeDataObject(sage.vfs.MediaNode MediaNode)
Returns the Object that is wrapped by the specified MediaNode |
java.lang.String |
GetNodeDataType(sage.vfs.MediaNode MediaNode)
Returns the type of the Object that is wrapped by the specified MediaNode |
java.lang.String |
GetNodeFilterTechnique(sage.vfs.MediaNode MediaNode,
int FilterIndex)
Returns the name of the current filtering technique used by the specified MediaNode hierarchy. |
(package private) java.lang.String |
GetNodeFullPath(sage.vfs.MediaNode MediaNode)
Returns a string which represents the hierarchical path to this MediaNode. |
java.lang.Object |
GetNodeIcon(sage.vfs.MediaNode MediaNode)
Returns the icon image associated with the specified MediaNode. |
int |
GetNodeNumChildren(sage.vfs.MediaNode MediaNode)
Returns the number of children of the specified MediaNode |
(package private) int |
GetNodeNumFilters(sage.vfs.MediaNode MediaNode)
Gets the number of filters that are currently set for the specified MediaNode. |
sage.vfs.MediaNode |
GetNodeParent(sage.vfs.MediaNode MediaNode)
Returns the MediaNode parent of the specified MediaNode |
java.lang.String |
GetNodePrimaryLabel(sage.vfs.MediaNode MediaNode)
Returns a string representation of the primary data associated with the specified MediaNode suitable for display in the UI. |
java.lang.String |
GetNodeProperty(sage.vfs.MediaNode MediaNode,
java.lang.String PropertyName)
Returns a specific property associated with this MediaNode. |
java.lang.String |
GetNodeSecondaryLabel(sage.vfs.MediaNode MediaNode)
Returns a string representation of the secondary data associated with the specified MediaNode suitable for display in the UI. |
java.lang.String |
GetNodeSortTechnique(sage.vfs.MediaNode MediaNode)
Returns the name of the current sorting technique used by the specified MediaNode hierarchy. |
java.lang.Object |
GetNodeThumbnail(sage.vfs.MediaNode MediaNode)
Returns the thumbnail image associated with the specified MediaNode. |
(package private) java.lang.String |
GetNodeTypePath(sage.vfs.MediaNode MediaNode)
Returns a string which represents the hierarchical path to this MediaNode with type information only. |
sage.vfs.MediaNode |
GetRelativeMediaSource(java.lang.String Name,
java.lang.Object RelativeRoot)
Creates a MediaNode view with a relative root for a specified media source. |
boolean |
IsMediaNodeObject(java.lang.Object Object)
Returns true if the specified object is a MediaNode object. |
boolean |
IsNodeFilterMatching(sage.vfs.MediaNode MediaNode,
int FilterIndex)
Returns the match state of the current filtering technique used by the specified MediaNode hierarchy. |
boolean |
IsNodeFolder(sage.vfs.MediaNode MediaNode)
Returns true if the specified MediaNode has children |
boolean |
IsNodeHierarchyRealized(sage.vfs.MediaNode MediaNode)
Returns true if the entire set of data objects that back this MediaNode hierarchy has already been realized. |
boolean |
IsNodePlayable(sage.vfs.MediaNode MediaNode)
Returns true if the Object that this MediaNode wraps is suitable for passing to the Watch API call. |
boolean |
IsNodeSortAscending(sage.vfs.MediaNode MediaNode)
Returns true if the current sorting technique used by the specified MediaNode hierarchy is in ascending order, false otherwise |
boolean |
IsNodeVirtual(sage.vfs.MediaNode MediaNode)
Returns true if the specified MediaNode doesn't wrap an actual data object; but just an abstraction of a hierarchy |
void |
RefreshNode(sage.vfs.MediaNode MediaNode)
Refreshes the hierarchy associated with the specified MediaNode. |
void |
SetAllChildrenChecked(sage.vfs.MediaNode MediaNode,
boolean State)
Sets a flag on all the children of this MediaNode to indicate they are in the checked state. |
void |
SetNodeChecked(sage.vfs.MediaNode MediaNode,
boolean State)
Sets a flag on this MediaNode to indicate it is in the checked state. |
void |
SetNodeFilter(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean MatchPasses)
Sets the filtering techniques used by the specified MediaNode hierarchy. |
void |
SetNodeSort(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean Ascending)
Sets the sorting technique used by the specified MediaNode hierarchy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public sage.vfs.MediaNode GetMediaSource(java.lang.String Name)
Name - the name of the media source
public sage.vfs.MediaNode GetMediaView(java.lang.String Name,
java.lang.Object Data)
Name - the view name to useData - the dataset that defines the content in the view, can be a Collection, Object[] or a single object
public sage.vfs.MediaNode GetRelativeMediaSource(java.lang.String Name,
java.lang.Object RelativeRoot)
Name - should be Filesystem; anything else will behave like the GetMediaSource API callRelativeRoot - the subdirectory which should be the root of this view
public boolean IsNodeFolder(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public sage.vfs.MediaNode[] GetNodeChildren(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public int GetNodeNumChildren(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public sage.vfs.MediaNode GetNodeChildAt(sage.vfs.MediaNode MediaNode,
int Index)
MediaNode - the specified MediaNodeIndex - the index of the child to return (0-based)
public void SetNodeSort(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean Ascending)
MediaNode - the specified MediaNodeTechnique - the name of the sorting technique to use, case insensitiveAscending - true if the sorting should occur in ascending order, false otherwisepublic java.lang.String GetNodeSortTechnique(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public boolean IsNodeSortAscending(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public void SetNodeFilter(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean MatchPasses)
MediaNode - the specified MediaNodeTechnique - the name of the filtering technique to use, case insensitiveMatchPasses - true if the items matching the filter should be retained, false if matching items should be removedint GetNodeNumFilters(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.String GetNodeFilterTechnique(sage.vfs.MediaNode MediaNode,
int FilterIndex)
MediaNode - the specified MediaNodeFilterIndex - the 0-based index of the filtering technique to retrieve
public boolean IsNodeFilterMatching(sage.vfs.MediaNode MediaNode,
int FilterIndex)
MediaNode - the specified MediaNodeFilterIndex - the 0-based index of the filtering match state to retrieve
public void AppendNodeFilter(sage.vfs.MediaNode MediaNode,
java.lang.String Technique,
boolean MatchPasses)
MediaNode - the specified MediaNodeTechnique - the name of the filtering technique to use, case insensitiveMatchPasses - true if the items matching the filter should be retained, false if matching items should be removedpublic boolean IsNodeHierarchyRealized(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.util.Collection GetAllNodeDescendants(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.Object GetNodeIcon(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.Object GetNodeThumbnail(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.String GetNodePrimaryLabel(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.String GetNodeSecondaryLabel(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public boolean IsNodePlayable(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public boolean IsNodeVirtual(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.Object GetNodeDataObject(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.String GetNodeDataType(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public java.lang.String GetNodeProperty(sage.vfs.MediaNode MediaNode,
java.lang.String PropertyName)
MediaNode - the specified MediaNodePropertyName - the name of the property
public sage.vfs.MediaNode GetNodeParent(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public void RefreshNode(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public void SetNodeChecked(sage.vfs.MediaNode MediaNode,
boolean State)
MediaNode - the specified MediaNodeState - true if the MediaNode should be marked as being in the checked state, false otherwise
public void SetAllChildrenChecked(sage.vfs.MediaNode MediaNode,
boolean State)
MediaNode - the specified MediaNodeState - true if all the children of the MediaNode should be marked as being in the checked state, false if they should be marked as unchecked
public int GetChildrenCheckedCount(sage.vfs.MediaNode MediaNode,
boolean State)
MediaNode - the specified MediaNodeState - true if the returned count should be for checked children, false if it should be for unchecked children
public java.util.Vector GetChildrenCheckedNodes(sage.vfs.MediaNode MediaNode,
boolean State)
MediaNode - the specified MediaNodeState - true if the returned list should be for checked children, false if it should be for unchecked children
public sage.vfs.MediaNode CreateMediaNode(java.lang.String PrimaryLabel,
java.lang.String SecondaryLabel,
java.lang.Object Thumbnail,
java.lang.Object Icon,
java.lang.Object DataObject)
PrimaryLabel - the value to set as the primary label for the MediaNodeSecondaryLabel - the value to set as the secondary label for the MediaNodeThumbnail - the Object to use as the thumbnail for the MediaNodeIcon - the Object to use as the icon for the MediaNodeDataObject - the Object that should be the data object for the MediaNode
java.lang.String GetNodeFullPath(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
java.lang.String GetNodeTypePath(sage.vfs.MediaNode MediaNode)
MediaNode - the specified MediaNode
public boolean IsMediaNodeObject(java.lang.Object Object)
Object - the object to test to see if it is a MediaNode object
|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||