VELEMENT - the VElementpublic abstract class AbstractSWTTabRenderer<VELEMENT extends VElement> extends AbstractSWTRenderer<VELEMENT>
CUSTOM_VARIANT| Constructor and Description |
|---|
AbstractSWTTabRenderer(VELEMENT vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory emfFormsRendererFactory,
VTViewTemplateProvider viewTemplateProvider)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyValidation()
Allows implementers to display the validation state of the control.
|
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected abstract org.eclipse.emf.common.util.EList<VAbstractCategorization> |
getCategorizations()
The list of categorizations to display in the tree.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected VTViewTemplateProvider |
getViewTemplateProvider()
Returns the view template provider.
|
protected void |
itemSelected(org.eclipse.swt.custom.CTabItem selection)
This method gets called when a tab item was selected.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement. |
protected boolean |
renderLazy()
Whether to render all tab items immediately or on selection.
|
boolean |
showCategorization(VAbstractCategorization categorization)
Reveal the control that renders the given
categorization. |
protected boolean |
useScrolledContent()
Whether a
ScrolledComposite should be used as the item's content or not. |
applyEnable, applyReadOnly, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabledcheckRenderer, getRenderer, getReportService, getVElement, getViewModelContext, registerpublic AbstractSWTTabRenderer(VELEMENT vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory emfFormsRendererFactory, VTViewTemplateProvider viewTemplateProvider)
vElement - the view model element to be renderedviewContext - the view contextreportService - the ReportServiceemfFormsRendererFactory - The EMFFormsRendererFactoryviewTemplateProvider - the VTViewTemplateProviderprotected final VTViewTemplateProvider getViewTemplateProvider()
VTViewTemplateProviderpublic SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderergetGridDescription in class AbstractSWTRenderer<VELEMENT extends VElement>gridDescription - the current SWTGridDescriptionprotected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
AbstractSWTRendererVElement.renderControl in class AbstractSWTRenderer<VELEMENT extends VElement>cell - the GridCell of the control to renderparent - the Composite to render onControlNoRendererFoundException - this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be foundprotected final void itemSelected(org.eclipse.swt.custom.CTabItem selection)
selection - the selected itemprotected boolean useScrolledContent()
ScrolledComposite should be used as the item's content or not.true if pane should be scrollable, false otherwiseprotected boolean renderLazy()
true if the item UI will be rendered on first selection, false if all items
will be rendered immediatelyprotected abstract org.eclipse.emf.common.util.EList<VAbstractCategorization> getCategorizations()
VAbstractCategorizationprotected void applyValidation()
AbstractSWTRendererapplyValidation in class AbstractSWTRenderer<VELEMENT extends VElement>protected void dispose()
dispose in class AbstractSWTRenderer<VELEMENT extends VElement>AbstractSWTRenderer.dispose()public boolean showCategorization(VAbstractCategorization categorization)
categorization.categorization - a categorization to revealcategorization was successfully revealedCopyright © 2020. All rights reserved.