org.eclipse.emf.ecp.view.custom.ui.swt.test
Class ECPAbstractCustomControlSWTStub

java.lang.Object
  extended by org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
      extended by org.eclipse.emf.ecp.view.custom.ui.swt.test.ECPAbstractCustomControlSWTStub
All Implemented Interfaces:
ECPHardcodedReferences

public class ECPAbstractCustomControlSWTStub
extends ECPAbstractCustomControlSWT
implements ECPHardcodedReferences

Author:
Jonas

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
ECPAbstractCustomControlSWT.SWTCustomControlHelper
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
ADD_IMAGE, DELETE_IMAGE, HELP_IMAGE, VALIDATION_ERROR_IMAGE
 
Constructor Summary
ECPAbstractCustomControlSWTStub()
           
ECPAbstractCustomControlSWTStub(boolean withControl)
           
 
Method Summary
 void createValidationLabelInStub(org.eclipse.swt.widgets.Composite composite)
           
 org.eclipse.swt.widgets.Button getButton()
           
 SWTGridDescription getGridDescription()
          Returns the GridDescription for this Renderer.
 org.eclipse.swt.widgets.Label getLabel()
           
 org.eclipse.emf.ecore.EStructuralFeature getLastValidationFeature()
           
 int getLastValidationSeverity()
           
 Set<VDomainModelReference> getNeededDomainModelReferences()
          Returns a list of all VDomainModelReferences which will be used by this control.
 List<VDomainModelReference> getResolvedReferences()
           
 ECPAbstractCustomControlSWT.SWTCustomControlHelper getStubSWTHelper()
           
 org.eclipse.swt.widgets.Composite getTextControl()
           
 org.eclipse.swt.widgets.Label getValidationLabel()
           
 boolean isDisposed()
           
 boolean isRendered()
           
 boolean isValidationReseted()
           
 org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent)
          Renders the control.
 void setDisposed(boolean disposed)
           
 void setLastValidationFeature(org.eclipse.emf.ecore.EStructuralFeature lastValidationFeature)
           
 void setLastValidationSeverity(int lastValidationSeverity)
           
 void setRendered(boolean rendered)
           
 void setTextControl(org.eclipse.swt.widgets.Composite textControl)
           
 void setValidationReseted(boolean validationReseted)
           
 
Methods inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
applyEnable, applyReadOnly, applyValidation, dispose, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPAbstractCustomControlSWTStub

public ECPAbstractCustomControlSWTStub()

ECPAbstractCustomControlSWTStub

public ECPAbstractCustomControlSWTStub(boolean withControl)
Method Detail

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 render
parent - 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.