|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
public abstract class ECPAbstractCustomControlSWT
Extend this class in order to provide an own implementation of an ECPAbstractCustomControlSWT.
| Nested Class Summary | |
|---|---|
class |
ECPAbstractCustomControlSWT.SWTCustomControlHelper
The ECPAbstractCustomControlSWT.SWTCustomControlHelper allows the retrieval of SWT specific elements. |
| Field Summary | |
|---|---|
static int |
ADD_IMAGE
Constant for an add image. |
static int |
DELETE_IMAGE
Constant for an delete image. |
static int |
HELP_IMAGE
Constant for a help image. |
static int |
VALIDATION_ERROR_IMAGE
Constant for an validation error image. |
| Constructor Summary | |
|---|---|
ECPAbstractCustomControlSWT()
|
|
| Method Summary | |
|---|---|
void |
applyEnable(Map<SWTGridCell,org.eclipse.swt.widgets.Control> controls)
Applies the current enable state. |
void |
applyReadOnly(Map<SWTGridCell,org.eclipse.swt.widgets.Control> controls)
Applies the current readOnlyState. |
void |
applyValidation()
Called by the framework to apply validation changes. |
void |
dispose()
Is called by the framework to trigger a dispose of the control. |
abstract SWTGridDescription |
getGridDescription()
Returns the GridDescription for this Renderer. |
void |
init(VCustomControl customControl,
ViewModelContext viewModelContext)
Called by the framework to trigger an initialization. |
abstract org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the control. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VALIDATION_ERROR_IMAGE
public static final int ADD_IMAGE
public static final int DELETE_IMAGE
public static final int HELP_IMAGE
| Constructor Detail |
|---|
public ECPAbstractCustomControlSWT()
| Method Detail |
|---|
public final void init(VCustomControl customControl,
ViewModelContext viewModelContext)
customControl - the VCustomControl to useviewModelContext - the ViewModelContext to usepublic final void dispose()
public abstract SWTGridDescription getGridDescription()
public abstract org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption
cell - the SWTGridCell of the control to renderparent - the Composite to render on
Control
NoRendererFoundException - this is thrown when a renderer cannot be found
NoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be foundpublic final void applyValidation()
public final void applyReadOnly(Map<SWTGridCell,org.eclipse.swt.widgets.Control> controls)
controls - the controls providedpublic final void applyEnable(Map<SWTGridCell,org.eclipse.swt.widgets.Control> controls)
controls - the controls
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||