Class NewWizardPageComponent<M extends IModel>

    • Constructor Detail

      • NewWizardPageComponent

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

      • 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.
      • 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.