public class LayoutRisksAbstract extends java.lang.Object implements ILayout, IView
Constructor and Description |
---|
LayoutRisksAbstract(org.eclipse.swt.widgets.Composite parent,
Controller controller,
boolean input,
boolean top)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds a selection listener.
|
void |
dispose()
Disposes the view.
|
ModelRisk.ViewRiskType |
getSelectedViewType()
Returns the selected type of view
|
int |
getSelectionIndex()
Returns the selection index.
|
ViewRisks<?> |
getViewForSelectionIndex(int index)
Returns the according view type
|
<U> U |
getViewForType(java.lang.Class<U> clazz)
Returns the according view type
|
void |
reset()
Resets the view.
|
void |
setSelectionIdex(int index)
Sets the selection index.
|
void |
update(ModelEvent event)
Updates the view.
|
public LayoutRisksAbstract(org.eclipse.swt.widgets.Composite parent, Controller controller, boolean input, boolean top)
parent
- controller
- input
- top
- public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- public void dispose()
IView
public ModelRisk.ViewRiskType getSelectedViewType()
public int getSelectionIndex()
public ViewRisks<?> getViewForSelectionIndex(int index)
index
- public <U> U getViewForType(java.lang.Class<U> clazz)
clazz
- public void reset()
IView
public void setSelectionIdex(int index)
index
- public void update(ModelEvent event)
IView