insensa.view.dialogs.processes
Class ConnectionInfoReaderTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by insensa.view.dialogs.processes.ConnectionInfoReaderTreeNode
All Implemented Interfaces:
WorkerStatus, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class ConnectionInfoReaderTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements WorkerStatus

See Also:
Serialized Form

Field Summary
private  java.util.Date date
           
private  java.text.SimpleDateFormat dateFormat
           
private  WorkerStatusList parentWorkerStatusList
           
private  javax.swing.JProgressBar progressBar
           
private  ConnectionProgressTree progressTree
           
private static long serialVersionUID
           
private  long time
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ConnectionInfoReaderTreeNode(ConnectionProgressTree progressTree)
           
 
Method Summary
 void endPause()
           
 void endProgress()
           
 void errorProcess()
          Should be launched if an error occurred.
 void errorProcess(java.lang.String message)
           
 void errorProcess(java.lang.Throwable e)
           
 WorkerStatusList getChildWorkerStatusList(int index)
           
 WorkerStatusList getParentWorkerStatusList()
           
 float getProgress()
           
 float getStepSize()
           
 void refreshPercentage(float percent)
           
 void removeChildrenWorkerStatusLists()
           
 void setChildrenWorkerStatusLists(int numOfLists)
           
 void setParentWorkerStatusList(WorkerStatusList mProgress)
           
 void setProcessObject(java.lang.Object obj)
           
 void setProgressName(java.lang.String name)
           
 void setStepSize(float stepSize)
           
 void startPause(java.lang.String text)
           
 void startProcess()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

progressTree

private ConnectionProgressTree progressTree

progressBar

private javax.swing.JProgressBar progressBar

parentWorkerStatusList

private WorkerStatusList parentWorkerStatusList

date

private java.util.Date date

dateFormat

private java.text.SimpleDateFormat dateFormat

time

private long time
Constructor Detail

ConnectionInfoReaderTreeNode

public ConnectionInfoReaderTreeNode(ConnectionProgressTree progressTree)
Parameters:
progressTree -
Method Detail

endPause

public void endPause()
Specified by:
endPause in interface WorkerStatus
See Also:
WorkerStatus.endPause()

endProgress

public void endProgress()
Specified by:
endProgress in interface WorkerStatus
See Also:
WorkerStatus.endProgress()

errorProcess

public void errorProcess()
Description copied from interface: WorkerStatus
Should be launched if an error occurred. Mostly used to just disable the View;

Specified by:
errorProcess in interface WorkerStatus
See Also:
WorkerStatus.errorProcess()

errorProcess

public void errorProcess(java.lang.String message)
Specified by:
errorProcess in interface WorkerStatus
See Also:
WorkerStatus.errorProcess(java.lang.String)

errorProcess

public void errorProcess(java.lang.Throwable e)
Specified by:
errorProcess in interface WorkerStatus
See Also:
WorkerStatus.errorProcess(java.lang.Throwable)

getChildWorkerStatusList

public WorkerStatusList getChildWorkerStatusList(int index)
Specified by:
getChildWorkerStatusList in interface WorkerStatus
Returns:
See Also:
WorkerStatus.getChildWorkerStatusList(int)

getParentWorkerStatusList

public WorkerStatusList getParentWorkerStatusList()
Specified by:
getParentWorkerStatusList in interface WorkerStatus
Returns:
See Also:
WorkerStatus.getParentWorkerStatusList()

getProgress

public float getProgress()
Specified by:
getProgress in interface WorkerStatus
Returns:
See Also:
WorkerStatus.getProgress()

getStepSize

public float getStepSize()
Specified by:
getStepSize in interface WorkerStatus
Returns:
See Also:
WorkerStatus.getStepSize()

refreshPercentage

public void refreshPercentage(float percent)
Specified by:
refreshPercentage in interface WorkerStatus
See Also:
WorkerStatus.refreshPercentage(float)

removeChildrenWorkerStatusLists

public void removeChildrenWorkerStatusLists()
Specified by:
removeChildrenWorkerStatusLists in interface WorkerStatus
See Also:
WorkerStatus.removeChildrenWorkerStatusLists()

setChildrenWorkerStatusLists

public void setChildrenWorkerStatusLists(int numOfLists)
Specified by:
setChildrenWorkerStatusLists in interface WorkerStatus
See Also:
WorkerStatus.setChildrenWorkerStatusLists(int)

setParentWorkerStatusList

public void setParentWorkerStatusList(WorkerStatusList mProgress)
Specified by:
setParentWorkerStatusList in interface WorkerStatus
See Also:
WorkerStatus.setParentWorkerStatusList(insensa.WorkerStatusList)

setProcessObject

public void setProcessObject(java.lang.Object obj)
Specified by:
setProcessObject in interface WorkerStatus
See Also:
WorkerStatus.setProcessObject(java.lang.Object)

setProgressName

public void setProgressName(java.lang.String name)
Specified by:
setProgressName in interface WorkerStatus
See Also:
WorkerStatus.setProgressName(java.lang.String)

setStepSize

public void setStepSize(float stepSize)
Specified by:
setStepSize in interface WorkerStatus
See Also:
WorkerStatus.setStepSize(float)

startPause

public void startPause(java.lang.String text)
Specified by:
startPause in interface WorkerStatus
See Also:
WorkerStatus.startPause(java.lang.String)

startProcess

public void startProcess()
Specified by:
startProcess in interface WorkerStatus
See Also:
WorkerStatus.startProcess()