org.teleal.cling.support.contentdirectory.ui
Class ContentBrowseActionCallback
java.lang.Object
org.teleal.cling.controlpoint.ActionCallback
org.teleal.cling.support.contentdirectory.callback.Browse
org.teleal.cling.support.contentdirectory.ui.ContentBrowseActionCallback
- All Implemented Interfaces:
- Runnable
public abstract class ContentBrowseActionCallback
- extends Browse
Updates a tree model after querying a backend ContentDirectory service.
- Author:
- Christian Bauer
Nested classes/interfaces inherited from class org.teleal.cling.support.contentdirectory.callback.Browse |
Browse.Status |
Nested classes/interfaces inherited from class org.teleal.cling.controlpoint.ActionCallback |
org.teleal.cling.controlpoint.ActionCallback.Default |
Fields inherited from class org.teleal.cling.support.contentdirectory.callback.Browse |
CAPS_WILDCARD |
Fields inherited from class org.teleal.cling.controlpoint.ActionCallback |
actionInvocation, controlPoint |
Methods inherited from class org.teleal.cling.controlpoint.ActionCallback |
createDefaultFailureMessage, failure, getActionInvocation, getControlPoint, setControlPoint, toString |
treeModel
protected final DefaultTreeModel treeModel
treeNode
protected final DefaultMutableTreeNode treeNode
ContentBrowseActionCallback
public ContentBrowseActionCallback(org.teleal.cling.model.meta.Service service,
DefaultTreeModel treeModel,
DefaultMutableTreeNode treeNode)
ContentBrowseActionCallback
public ContentBrowseActionCallback(org.teleal.cling.model.meta.Service service,
DefaultTreeModel treeModel,
DefaultMutableTreeNode treeNode,
String filter,
long firstResult,
long maxResults,
SortCriterion... orderBy)
getTreeModel
public DefaultTreeModel getTreeModel()
getTreeNode
public DefaultMutableTreeNode getTreeNode()
received
public void received(org.teleal.cling.model.action.ActionInvocation actionInvocation,
DIDLContent didl)
- Specified by:
received
in class Browse
updateStatus
public void updateStatus(Browse.Status status)
- Specified by:
updateStatus
in class Browse
failure
public void failure(org.teleal.cling.model.action.ActionInvocation invocation,
org.teleal.cling.model.message.UpnpResponse operation,
String defaultMsg)
- Specified by:
failure
in class org.teleal.cling.controlpoint.ActionCallback
updateTreeModel
protected void updateTreeModel(List<DefaultMutableTreeNode> childNodes)
removeChildren
protected void removeChildren()
insertChild
protected void insertChild(MutableTreeNode childNode)
updateStatusUI
public abstract void updateStatusUI(Browse.Status status,
DefaultMutableTreeNode treeNode,
DefaultTreeModel treeModel)
failureUI
public abstract void failureUI(String failureMessage)
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.