org.eclipse.emf.ecp.view.custom.ui.swt.test
Class ECPAbstractCustomControlSWTStub
java.lang.Object
org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
org.eclipse.emf.ecp.view.custom.ui.swt.test.ECPAbstractCustomControlSWTStub
- All Implemented Interfaces:
- ECPHardcodedReferences
public class ECPAbstractCustomControlSWTStub
- extends ECPAbstractCustomControlSWT
- implements ECPHardcodedReferences
- Author:
- Jonas
ECPAbstractCustomControlSWTStub
public ECPAbstractCustomControlSWTStub()
ECPAbstractCustomControlSWTStub
public ECPAbstractCustomControlSWTStub(boolean withControl)
getValidationLabel
public org.eclipse.swt.widgets.Label getValidationLabel()
- Returns:
- the validationLabel
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)
createValidationLabelInStub
public void createValidationLabelInStub(org.eclipse.swt.widgets.Composite composite)
- Parameters:
composite
-
isRendered
public boolean isRendered()
- Returns:
- the rendered
setRendered
public void setRendered(boolean rendered)
- Parameters:
rendered
- the rendered to set
getLastValidationSeverity
public int getLastValidationSeverity()
- Returns:
- the lastValidationSeverity
setLastValidationSeverity
public void setLastValidationSeverity(int lastValidationSeverity)
- Parameters:
lastValidationSeverity
- the lastValidationSeverity to set
getLastValidationFeature
public org.eclipse.emf.ecore.EStructuralFeature getLastValidationFeature()
- Returns:
- the lastValidationFeature
setLastValidationFeature
public void setLastValidationFeature(org.eclipse.emf.ecore.EStructuralFeature lastValidationFeature)
- Parameters:
lastValidationFeature
- the lastValidationFeature to set
isDisposed
public boolean isDisposed()
- Returns:
- the disposed
setDisposed
public void setDisposed(boolean disposed)
- Parameters:
disposed
- the disposed to set
getTextControl
public org.eclipse.swt.widgets.Composite getTextControl()
- Returns:
- the textControl
getLabel
public org.eclipse.swt.widgets.Label getLabel()
setTextControl
public void setTextControl(org.eclipse.swt.widgets.Composite textControl)
- Parameters:
textControl
- the textControl to set
isValidationReseted
public boolean isValidationReseted()
- Returns:
- the validationReseted
setValidationReseted
public void setValidationReseted(boolean validationReseted)
- Parameters:
validationReseted
- the validationReseted 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()
getResolvedReferences
public List<VDomainModelReference> getResolvedReferences()
getStubSWTHelper
public ECPAbstractCustomControlSWT.SWTCustomControlHelper getStubSWTHelper()
getButton
public org.eclipse.swt.widgets.Button getButton()
Copyright © 2014. All Rights Reserved.