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

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.ValidationCustomControl
All Implemented Interfaces:
ECPHardcodedReferences

public class ValidationCustomControl
extends ECPAbstractCustomControlSWT
implements ECPHardcodedReferences

Author:
Eugen Neufeld

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
ValidationCustomControl()
           
 
Method Summary
 SWTGridDescription getGridDescription()
          Returns the GridDescription for this Renderer.
 Set<VDomainModelReference> getNeededDomainModelReferences()
          Returns a list of all VDomainModelReferences which will be used by this control.
 org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent)
          Renders the control.
 
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

ValidationCustomControl

public ValidationCustomControl()
Parameters:
features -
Method Detail

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 SWTGridCell 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.emfforms.spi.swt.core.layout.SWTGridCell, org.eclipse.swt.widgets.Composite)

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()


Copyright © 2015. All Rights Reserved.