com.application.areca.launcher.gui.composites
Class InfoChannel

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by com.application.areca.launcher.gui.composites.InfoChannel
All Implemented Interfaces:
Colors, UserInformationChannel, TaskMonitorListener, org.eclipse.swt.graphics.Drawable, org.eclipse.swt.widgets.Listener

public class InfoChannel
extends org.eclipse.swt.widgets.Composite
implements UserInformationChannel, Colors, org.eclipse.swt.widgets.Listener


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  boolean running
           
protected  java.lang.String stateBeforePause
           
protected  boolean synthetic
           
protected  TaskMonitor taskMonitor
           
 
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Fields inherited from interface com.application.areca.launcher.gui.common.Colors
C_BLACK, C_ERROR, C_FINISHED, C_FLD_ERROR, C_GRAY, C_INFO, C_LIGHT_GRAY, C_PROGRESS, C_WARNING
 
Constructor Summary
InfoChannel(AbstractRecoveryTarget target, org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
 void cancellableChanged(TaskMonitor task)
           
 void cancelRequested(TaskMonitor task)
           
 void completionChanged(TaskMonitor task)
           
 void error(java.lang.String info)
           
 TaskMonitor getTaskMonitor()
           
 void handleEvent(org.eclipse.swt.widgets.Event event)
           
 boolean isRunning()
           
 void pauseRequested(TaskMonitor task)
           
 void print(java.lang.String info)
           
 void setSynthetic(boolean synthetic)
           
 void setTaskMonitor(TaskMonitor taskMonitor)
           
 void startRunning()
           
 void stopRunning()
           
 void updateCurrentTask(long taskIndex, long taskCount, java.lang.String taskDescription)
           
 void warn(java.lang.String info)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

taskMonitor

protected TaskMonitor taskMonitor

running

protected boolean running

stateBeforePause

protected java.lang.String stateBeforePause

synthetic

protected boolean synthetic
Constructor Detail

InfoChannel

public InfoChannel(AbstractRecoveryTarget target,
                   org.eclipse.swt.widgets.Composite parent)
Parameters:
parent -
style -
Method Detail

setSynthetic

public void setSynthetic(boolean synthetic)

pauseRequested

public void pauseRequested(TaskMonitor task)
Specified by:
pauseRequested in interface TaskMonitorListener

cancellableChanged

public void cancellableChanged(TaskMonitor task)
Specified by:
cancellableChanged in interface TaskMonitorListener

cancelRequested

public void cancelRequested(TaskMonitor task)
Specified by:
cancelRequested in interface TaskMonitorListener

completionChanged

public void completionChanged(TaskMonitor task)
Specified by:
completionChanged in interface TaskMonitorListener

print

public void print(java.lang.String info)
Specified by:
print in interface UserInformationChannel

warn

public void warn(java.lang.String info)
Specified by:
warn in interface UserInformationChannel

error

public void error(java.lang.String info)
Specified by:
error in interface UserInformationChannel

startRunning

public void startRunning()
Specified by:
startRunning in interface UserInformationChannel

stopRunning

public void stopRunning()
Specified by:
stopRunning in interface UserInformationChannel

updateCurrentTask

public void updateCurrentTask(long taskIndex,
                              long taskCount,
                              java.lang.String taskDescription)
Specified by:
updateCurrentTask in interface UserInformationChannel

handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event event)
Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener

isRunning

public boolean isRunning()

setTaskMonitor

public void setTaskMonitor(TaskMonitor taskMonitor)
Specified by:
setTaskMonitor in interface UserInformationChannel

getTaskMonitor

public TaskMonitor getTaskMonitor()
Specified by:
getTaskMonitor in interface UserInformationChannel