Class NewWizardPageComponent<M extends IModel>

All Implemented Interfaces:
IComponent<M>, IEventChannel
Direct Known Subclasses:
CharacteristicsDescriptionModelNewWizardPageComponent, FormWizardAttributesPage, MdModelNewWizardPageComponent, PredefinedItemNewWizardPage, RootObjectPage, TypeNewWizardPageComponent

public abstract class NewWizardPageComponent<M extends IModel> extends ContainerComponent<M,VoidParameterization>
Base class for AEF wizard page components
  • Constructor Details

    • NewWizardPageComponent

      public NewWizardPageComponent()
      Creates a new instance with void parameterization.
  • Method Details

    • getLayout

      public org.eclipse.swt.widgets.Layout getLayout(boolean heavy)
      Returns:
      the layout for the root composite of the page.
    • getPageViewModel

      public NewWizardPageViewModel getPageViewModel()
      Returns:
      the wizard page component view model.
    • disposeViewModels

      protected void disposeViewModels()
      Description copied from class: Component
      Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.
      Overrides:
      disposeViewModels in class StandardComponent<M extends IModel,VoidParameterization>
    • createContainerViewModel

      protected IContainerViewModel createContainerViewModel()
      Description copied from class: ContainerComponent
      Creates the view model of the container.
      Overrides:
      createContainerViewModel in class ContainerComponent<M extends IModel,VoidParameterization>
      Returns:
      the newly created container view model.
    • field

      protected FieldComponent field(org.eclipse.emf.ecore.EStructuralFeature feature)
      Creates a FieldComponent by the given EStructuralFeature and adds to the component.
      Parameters:
      feature - the EStructuralFeature
      Returns:
      the field component
    • createText

      protected DtTextComponent createText(IDtActionBarParameterization parameterization, IValue<String> text)
      Creates a text component with the given parameterization.
      Parameters:
      parameterization - the component parameterization, cannot be null.
      text - the model for component, cannot be null.
      Returns:
      the newly created component, never null.
    • createText

      protected DtTextComponent createText(IValue<String> text)
      Creates a text component with immediate commit.
      Parameters:
      text - the model for component, cannot be null.
      Returns:
      the newly created component, never null.
    • createMultilanguage

      protected MultilanguageComponent createMultilanguage(IMultilanguageModel model, int linesCount)
      Creates a multilanguage component with immediate commit.
      Parameters:
      model - the model for component.
      Returns:
      the newly created component.
    • createCombo

      protected <T> AbstractDtComboSelectComponent<T,IValue<T>,?> createCombo(IValue<T> value, Collection<T> items)
      Creates a simple DT combo component

      Used Object.toString() for getting titles of items

      Parameters:
      value - the model for component, cannot be null
      items - the collection of items in combo, cannot be null
      Returns:
      the newly created component, never null
    • createCombo

      protected <T> AbstractDtComboSelectComponent<T,IValue<T>,?> createCombo(IValue<T> value, Collection<T> items, ILabelProvider itemsLabelProvider)
      Creates a simple DT combo component

      Used given label provider for getting titles and icons of items, or Object.toString() if given labelProvider is null

      Parameters:
      value - the model for component, cannot be null
      items - the collection of items in combo, cannot be null
      itemsLabelProvider - the ILabelProvider for item presentation, can be null
      Returns:
      the newly created component, never null
    • setDefaultFocus

      public abstract void setDefaultFocus()
      Sets default focus on the page.