Class NewWizardPageComponent<M extends IModel>
java.lang.Object
com._1c.g5.aef2.components.Component<M,P>
com._1c.g5.aef2.standard.components.StandardComponent<M,P>
com._1c.g5.aef2.standard.components.ContainerComponent<M,VoidParameterization>
com._1c.g5.v8.dt.md.ui.wizards.base.aef.NewWizardPageComponent<M>
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> AbstractDtComboSelectComponent<T,
IValue<T>, ?> createCombo
(IValue<T> value, Collection<T> items) Creates a simple DT combo componentprotected <T> AbstractDtComboSelectComponent<T,
IValue<T>, ?> createCombo
(IValue<T> value, Collection<T> items, ILabelProvider itemsLabelProvider) Creates a simple DT combo componentprotected IContainerViewModel
Creates the view model of the container.protected MultilanguageComponent
createMultilanguage
(IMultilanguageModel model, int linesCount) Creates a multilanguage component with immediate commit.protected DtTextComponent
createText
(IValue<String> text) Creates a text component with immediate commit.protected DtTextComponent
createText
(IDtActionBarParameterization parameterization, IValue<String> text) Creates a text component with the givenparameterization
.protected void
Disposes the view models of this component.protected FieldComponent
field
(org.eclipse.emf.ecore.EStructuralFeature feature) Creates aFieldComponent
by the givenEStructuralFeature
and adds to the component.org.eclipse.swt.widgets.Layout
getLayout
(boolean heavy) abstract void
Sets default focus on the page.Methods inherited from class com._1c.g5.aef2.standard.components.ContainerComponent
addComponent, button, button, checkBox, checkBox, combo, createViewModels, disposeChildren, field, field, getContainerViewModel, isEditable, label, label, refreshChildren, separator, spinner, text, updateViewModels
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, setLayoutData, updateViewModelStatus
Methods inherited from class com._1c.g5.aef2.components.Component
addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, dispose, disposeComponents, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
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
- 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 classStandardComponent<M extends IModel,
VoidParameterization>
-
createContainerViewModel
Description copied from class:ContainerComponent
Creates the view model of the container.- Overrides:
createContainerViewModel
in classContainerComponent<M extends IModel,
VoidParameterization> - Returns:
- the newly created container view model.
-
field
Creates aFieldComponent
by the givenEStructuralFeature
and adds to the component.- Parameters:
feature
- theEStructuralFeature
- Returns:
- the field component
-
createText
protected DtTextComponent createText(IDtActionBarParameterization parameterization, IValue<String> text) Creates a text component with the givenparameterization
.- Parameters:
parameterization
- the component parameterization, cannot benull
.text
- the model for component, cannot benull
.- Returns:
- the newly created component, never
null
.
-
createText
Creates a text component with immediate commit.- Parameters:
text
- the model for component, cannot benull
.- Returns:
- the newly created component, never
null
.
-
createMultilanguage
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 componentUsed
Object.toString()
for getting titles of items- Parameters:
value
- the model for component, cannot benull
items
- the collection of items in combo, cannot benull
- 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 componentUsed given label provider for getting titles and icons of items, or
Object.toString()
if given labelProvider isnull
- Parameters:
value
- the model for component, cannot benull
items
- the collection of items in combo, cannot benull
itemsLabelProvider
- theILabelProvider
for item presentation, can benull
- Returns:
- the newly created component, never
null
-
setDefaultFocus
public abstract void setDefaultFocus()Sets default focus on the page.
-