T
- public abstract class ViewRisks<T extends AnalysisContextVisualization> extends java.lang.Object implements IView
Modifier and Type | Field and Description |
---|---|
protected Controller |
controller
Internal stuff.
|
static int |
MINIMAL_WORKING_TIME
Our users are patient.
|
Constructor and Description |
---|
ViewRisks(org.eclipse.swt.widgets.Composite parent,
Controller controller,
ModelEvent.ModelPart target,
ModelEvent.ModelPart reset)
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)
Creates a view config
|
void |
dispose()
Disposes the view.
|
protected abstract void |
doReset()
Implement this to reset.
|
protected abstract void |
doUpdate(T context)
Implement this to update.
|
protected RiskEstimateBuilderInterruptible |
getBuilder(AnalysisContextRisk context)
Creates a risk estimate builder
|
protected RiskEstimateBuilderInterruptible |
getBuilder(AnalysisContextRisk context,
ARXPopulationModel population,
RiskModelHistogram classes)
Creates a risk estimate builder
|
protected RiskEstimateBuilderInterruptible |
getBuilder(AnalysisContextRisk context,
java.util.Set<java.lang.String> identifiers)
Creates a risk estimate builder
|
protected Model |
getModel()
Returns the model
|
protected abstract ComponentStatusLabelProgressProvider |
getProgressProvider()
May return a progress provider, if any
|
protected java.lang.String |
getQuasiIdentifiers(AnalysisContextRisk context)
Returns a string containing all quasi-identifiers
|
protected abstract ModelRisk.ViewRiskType |
getViewType()
Returns the according type of view
|
boolean |
isEnabled()
Is this view enabled
|
protected boolean |
isInput()
Is this an input data oriented control
|
protected abstract boolean |
isRunning()
Is a job running
|
protected boolean |
isValid()
Is there still some data to show
|
void |
reset()
Resets the view.
|
void |
setEnabled(boolean enabled)
Enables or disables this 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
protected final Controller controller
public ViewRisks(org.eclipse.swt.widgets.Composite parent, Controller controller, ModelEvent.ModelPart target, ModelEvent.ModelPart reset)
parent
- controller
- target
- reset
- public void dispose()
IView
public boolean isEnabled()
public void reset()
IView
public void setEnabled(boolean enabled)
enabled
- 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 RiskEstimateBuilderInterruptible getBuilder(AnalysisContextRisk context)
context
- protected RiskEstimateBuilderInterruptible getBuilder(AnalysisContextRisk context, ARXPopulationModel population, RiskModelHistogram classes)
context
- population
- classes
- protected RiskEstimateBuilderInterruptible getBuilder(AnalysisContextRisk context, java.util.Set<java.lang.String> identifiers)
context
- identifiers
- protected Model getModel()
protected abstract ComponentStatusLabelProgressProvider getProgressProvider()
protected java.lang.String getQuasiIdentifiers(AnalysisContextRisk context)
context
- protected abstract ModelRisk.ViewRiskType getViewType()
protected boolean isInput()
protected abstract boolean isRunning()
protected boolean isValid()
protected void setStatusDone()
protected void setStatusEmpty()
protected void setStatusWorking()
protected void triggerUpdate()