com.buglabs.bug.bugnet
Class BugNetNode
java.lang.Object
com.buglabs.menu.AbstractMenuNode
com.buglabs.bug.bugnet.BugNetNode
- All Implemented Interfaces:
- IMenuNode, java.lang.Comparable
public class BugNetNode
- extends AbstractMenuNode
A menu node that allows the a user to install an app from BUGnet
| Methods inherited from class com.buglabs.menu.AbstractMenuNode |
compareTo, equals, execute, getBusyName, getComparator, getErrorName, getFirstParentOfType, getName, getNextSibling, getParent, getPath, getPreviousSibling, hasChildren, isError, setName, setParent, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BugNetNode
public BugNetNode(BundleContext context,
RepositoryAdmin repoAdmin,
IMenuProvider menu,
IUserAppManager appManager)
setBusy
public void setBusy(boolean busy)
isBusy
public boolean isBusy()
- Description copied from interface:
IMenuNode
- If a node is busy, the menu system will display a spinner in the place of
the node. The user will be able to go back to other nodes while the node
is busy. The correct way to utilize this feature is to set the node to
busy, spawn a new Thread to take care of the work, and set the node to
not busy after the thread completes. This way, the menu system will not
block.
- Specified by:
isBusy in interface IMenuNode- Overrides:
isBusy in class AbstractMenuNode
- Returns:
true if the node is busy and false
if the node is not busy.
refreshBundles
public void refreshBundles()
getChildren
public java.util.List getChildren()
- Specified by:
getChildren in interface IMenuNode- Overrides:
getChildren in class AbstractMenuNode
- Returns:
- All children for this node.
sortChildren
public boolean sortChildren()
- Specified by:
sortChildren in interface IMenuNode- Overrides:
sortChildren in class AbstractMenuNode
- Returns:
true if the children should be sorted, and
false
if they should not be.
setConnectError
public void setConnectError(boolean error,
boolean fromRefresh)