org.fourthline.cling.support.contentdirectory.ui
Class ContentBrowseActionCallback
java.lang.Object
org.fourthline.cling.controlpoint.ActionCallback
org.fourthline.cling.support.contentdirectory.callback.Browse
org.fourthline.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.fourthline.cling.support.contentdirectory.callback.Browse |
Browse.Status |
Fields inherited from class org.fourthline.cling.support.contentdirectory.callback.Browse |
CAPS_WILDCARD |
treeModel
protected final DefaultTreeModel treeModel
treeNode
protected final DefaultMutableTreeNode treeNode
ContentBrowseActionCallback
public ContentBrowseActionCallback(Service service,
DefaultTreeModel treeModel,
DefaultMutableTreeNode treeNode)
ContentBrowseActionCallback
public ContentBrowseActionCallback(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(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(ActionInvocation invocation,
UpnpResponse operation,
String defaultMsg)
- Specified by:
failure
in class 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 © 2013 4th Line GmbH, Switzerland. All Rights Reserved.