Class MdModelNewWizardPageComponent<M extends IMdObjectModel>
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>
com._1c.g5.v8.dt.md.ui.wizards.base.aef.MdModelNewWizardPageComponent<M>
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
MdTypedModelNewWizardPageComponent
public class MdModelNewWizardPageComponent<M extends IMdObjectModel>
extends NewWizardPageComponent<M>
Component for wizard page that operates with
MdObject
fields.-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMdModelNewWizardPageComponent
(IMdObjectAvailability mdObjectAvailability) Creates a new component. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Attaches this component to the model.protected DtTextComponent
Creates aMdObject
comment component and embed it in page.protected void
Creates the child components of this component.protected DtTextComponent
Creates aMdObject
name component and embed it in page.protected DtTextComponent
Creates configuration name field and embed it in page for displaying only.protected MultilanguageComponent
Creates aMdObject
synonym component and embed it in page.protected void
Detaches this component from the model.protected void
Disposes the child components.protected org.eclipse.emf.ecore.EObject
getTopObject
(org.eclipse.emf.ecore.EObject object) Returns top Configuration object parent for the given model object.void
Sets default focus on the page.Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.aef.NewWizardPageComponent
createCombo, createCombo, createContainerViewModel, createMultilanguage, createText, createText, disposeViewModels, field, getLayout, getPageViewModel
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, beginExternalUpdate, checkComponents, checkViewModels, commit, dispose, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
Field Details
-
PAGE_ID
The identifier of the component.- See Also:
-
-
Constructor Details
-
MdModelNewWizardPageComponent
Creates a new component.- Parameters:
mdObjectAvailability
- the metadata object availability service, cannot benull
-
-
Method Details
-
setDefaultFocus
public void setDefaultFocus()Description copied from class:NewWizardPageComponent
Sets default focus on the page.- Specified by:
setDefaultFocus
in classNewWizardPageComponent<M extends IMdObjectModel>
-
createComponents
protected void createComponents()Description copied from class:Component
Creates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponents
in classComponent<M extends IMdObjectModel,
VoidParameterization>
-
attachToModel
protected void attachToModel()Description copied from class:Component
Attaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModel
in classComponent<M extends IMdObjectModel,
VoidParameterization>
-
detachFromModel
protected void detachFromModel()Description copied from class:Component
Detaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModel
in classComponent<M extends IMdObjectModel,
VoidParameterization>
-
createParentComponent
Creates configuration name field and embed it in page for displaying only.- Returns:
- the component
-
createNameComponent
Creates aMdObject
name component and embed it in page.- Returns:
- the name component
-
createSynonymComponent
Creates aMdObject
synonym component and embed it in page.- Returns:
- the synonym component.
-
createCommentComponent
Creates aMdObject
comment component and embed it in page.- Returns:
- the comment component
-
disposeComponents
protected void disposeComponents()Description copied from class:Component
Disposes the child components. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeComponents
in classComponent<M extends IMdObjectModel,
VoidParameterization>
-
getTopObject
protected org.eclipse.emf.ecore.EObject getTopObject(org.eclipse.emf.ecore.EObject object) Returns top Configuration object parent for the given model object.- Parameters:
object
- the object to get top object for, cannot benull
- Returns:
- the top Configuration object parent for the given model object, never
null
-