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

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

public class CustomControlStub
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
           
 
Fields inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT
ADD_IMAGE, DELETE_IMAGE, HELP_IMAGE, VALIDATION_ERROR_IMAGE
 
Constructor Summary
CustomControlStub()
           
 
Method Summary
 SWTGridDescription getGridDescription()
          Returns the GridDescription for this Renderer.
static org.eclipse.swt.widgets.Button 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.Button 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
Constructor Detail

CustomControlStub

public CustomControlStub()
Method Detail

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


Copyright © 2014. All Rights Reserved.