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

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

public class CustomControlStub2
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
static String LABEL_TEXT
           
static VDomainModelReference resolvedDomainModelReference
           
 
Fields inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
ADD_IMAGE, DELETE_IMAGE, HELP_IMAGE, VALIDATION_ERROR_IMAGE
 
Constructor Summary
CustomControlStub2()
           
 
Method Summary
 SWTGridDescription getGridDescription()
          Returns the GridDescription for this Renderer.
static org.eclipse.swt.widgets.Label getLabel()
           
 Set<VDomainModelReference> getNeededDomainModelReferences()
          Returns a list of all VDomainModelReferences which will be used by this control.
static org.eclipse.swt.widgets.Composite getParent()
           
 org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent)
          Renders the control.
static void setLabel(org.eclipse.swt.widgets.Label label)
           
static void setParent(org.eclipse.swt.widgets.Composite parent)
           
 
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
 

Field Detail

LABEL_TEXT

public static final String LABEL_TEXT
See Also:
Constant Field Values

resolvedDomainModelReference

public static VDomainModelReference resolvedDomainModelReference
Constructor Detail

CustomControlStub2

public CustomControlStub2()
Method Detail

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

getLabel

public static org.eclipse.swt.widgets.Label getLabel()
Returns:
the label

setLabel

public static void setLabel(org.eclipse.swt.widgets.Label 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


Copyright © 2015. All Rights Reserved.