com.buglabs.bug.bugnet
Class InstallNode

java.lang.Object
  extended by com.buglabs.menu.AbstractMenuNode
      extended by com.buglabs.bug.bugnet.InstallNode
All Implemented Interfaces:
IMenuNode, java.lang.Comparable

public class InstallNode
extends AbstractMenuNode


Constructor Summary
InstallNode(BundleContext context, IMenuNode parent, RepositoryAdmin repoAdmin, IMenuProvider menu, IUserAppManager appManager)
           
 
Method Summary
 void clearConnectError()
          Tells the install node to ignore a past connection error and try to connect again if we call its getChildren();
 java.util.List getChildren()
           
 java.lang.String getErrorName()
           
 boolean isBusy()
          If a node is busy, the menu system will display a spinner in the place of the node.
 boolean isError()
           
 void refresh()
           
 void setBusy(boolean busy)
           
 void setError(boolean error)
           
 void setErrorName(java.lang.String en)
           
 void setFromRefresh()
           
 
Methods inherited from class com.buglabs.menu.AbstractMenuNode
compareTo, equals, execute, getBusyName, getComparator, getFirstParentOfType, getName, getNextSibling, getParent, getPath, getPreviousSibling, hasChildren, setName, setParent, sortChildren, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstallNode

public InstallNode(BundleContext context,
                   IMenuNode parent,
                   RepositoryAdmin repoAdmin,
                   IMenuProvider menu,
                   IUserAppManager appManager)
Method Detail

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.

setBusy

public void setBusy(boolean busy)

refresh

public void refresh()

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface IMenuNode
Overrides:
getChildren in class AbstractMenuNode
Returns:
All children for this node.

setError

public void setError(boolean error)

setErrorName

public void setErrorName(java.lang.String en)

isError

public boolean isError()
Specified by:
isError in interface IMenuNode
Overrides:
isError in class AbstractMenuNode
Returns:
true if this node should currently display an error, false otherwise.

getErrorName

public java.lang.String getErrorName()
Specified by:
getErrorName in interface IMenuNode
Overrides:
getErrorName in class AbstractMenuNode
Returns:
The name to display if isError() returns true.

clearConnectError

public void clearConnectError()
Tells the install node to ignore a past connection error and try to connect again if we call its getChildren();


setFromRefresh

public void setFromRefresh()