T
- public abstract class ViewStatistics<T extends AnalysisContextVisualization> extends java.lang.Object implements IView
Modifier and Type | Field and Description |
---|---|
static int |
MINIMAL_WORKING_TIME
Our users are patient.
|
Constructor and Description |
---|
ViewStatistics(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ModelEvent.ModelPart target,
ModelEvent.ModelPart reset,
boolean dependsOnAttribute)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent)
Implement this to create the widget.
|
protected abstract T |
createViewConfig(AnalysisContext context) |
void |
dispose()
Disposes the view.
|
protected abstract void |
doReset()
Implement this to reset.
|
protected abstract void |
doUpdate(T context)
Implement this to update.
|
protected Controller |
getController()
Returns the controller
|
protected Model |
getModel()
Returns the model
|
protected org.eclipse.swt.widgets.Composite |
getParent()
Returns the parent composite
|
protected ComponentStatusLabelProgressProvider |
getProgressProvider()
Overwrite this to return a progress provider
|
protected ModelEvent.ModelPart |
getTarget()
Returns the target
|
abstract LayoutUtility.ViewUtilityType |
getType()
Returns the type
|
protected boolean |
isEnabled()
Is this view enabled
|
protected abstract boolean |
isRunning()
Is a job running
|
void |
reset()
Resets the view.
|
protected void |
setStatusDone()
Status update.
|
protected void |
setStatusEmpty()
Status empty.
|
protected void |
setStatusWorking()
Status working.
|
protected void |
triggerUpdate()
Triggers an update
|
void |
update(ModelEvent event)
Updates the view.
|
public static final int MINIMAL_WORKING_TIME
public ViewStatistics(org.eclipse.swt.widgets.Composite parent, Controller controller, ModelEvent.ModelPart target, ModelEvent.ModelPart reset, boolean dependsOnAttribute)
parent
- controller
- target
- reset
- dependsOnAttribute
- public void dispose()
IView
public abstract LayoutUtility.ViewUtilityType getType()
public void reset()
IView
public void update(ModelEvent event)
IView
protected abstract org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
parent
- protected abstract T createViewConfig(AnalysisContext context)
context
- protected abstract void doReset()
protected abstract void doUpdate(T context)
context
- protected Controller getController()
protected Model getModel()
protected org.eclipse.swt.widgets.Composite getParent()
protected ComponentStatusLabelProgressProvider getProgressProvider()
protected ModelEvent.ModelPart getTarget()
protected boolean isEnabled()
protected abstract boolean isRunning()
protected void setStatusDone()
protected void setStatusEmpty()
protected void setStatusWorking()
protected void triggerUpdate()