org.eclipse.emf.ecp.view.custom.ui.swt.test
Class CustomControlStub
java.lang.Object
org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
org.eclipse.emf.ecp.view.custom.ui.swt.test.CustomControlStub
- All Implemented Interfaces:
- ECPHardcodedReferences
public class CustomControlStub
- extends ECPAbstractCustomControlSWT
- implements ECPHardcodedReferences
- Author:
- Jonas
LABEL_TEXT
public static final String LABEL_TEXT
- See Also:
- Constant Field Values
CustomControlStub
public CustomControlStub()
getLabel
public static org.eclipse.swt.widgets.Button getLabel()
- Returns:
- the label
setLabel
public static void setLabel(org.eclipse.swt.widgets.Button label)
- Parameters:
label
- the label to set
getParent
public static org.eclipse.swt.widgets.Composite getParent()
- Returns:
- the parent
setParent
public static void setParent(org.eclipse.swt.widgets.Composite parent)
- Parameters:
parent
- the parent to set
getNeededDomainModelReferences
public Set<VDomainModelReference> getNeededDomainModelReferences()
- Returns a list of all
VDomainModelReferences
which will be used by this control.
- Specified by:
getNeededDomainModelReferences
in interface ECPHardcodedReferences
- Returns:
- a
Set
of VDomainModelReferences
to be used by the control - See Also:
ECPHardcodedReferences.getNeededDomainModelReferences()
getGridDescription
public SWTGridDescription getGridDescription()
- Returns the GridDescription for this Renderer.
- Specified by:
getGridDescription
in class ECPAbstractCustomControlSWT
- Returns:
- the GridDescription
- See Also:
ECPAbstractCustomControlSWT.getGridDescription()
renderControl
public org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption
- Renders the control.
- Specified by:
renderControl
in class ECPAbstractCustomControlSWT
- Parameters:
cell
- the GridCell
of the control to renderparent
- the Composite
to render on
- Returns:
- the rendered
Control
- Throws:
NoRendererFoundException
- this is thrown when a renderer cannot be found
NoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be found- See Also:
ECPAbstractCustomControlSWT.renderControl(org.eclipse.emf.ecp.view.spi.swt.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)
Copyright © 2014. All Rights Reserved.