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 withMdObject
fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description MdModelNewWizardPageComponent(IMdObjectAvailability mdObjectAvailability)
Creates a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attachToModel()
Attaches this component to the model.protected DtTextComponent
createCommentComponent()
Creates aMdObject
comment component and embed it in page.protected void
createComponents()
Creates the child components of this component.protected DtTextComponent
createNameComponent()
Creates aMdObject
name component and embed it in page.protected DtTextComponent
createParentComponent()
Creates configuration name field and embed it in page for displaying only.protected MultilanguageComponent
createSynonymComponent()
Creates aMdObject
synonym component and embed it in page.protected void
detachFromModel()
Detaches this component from the model.protected void
disposeComponents()
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
setDefaultFocus()
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 Detail
-
PAGE_ID
public static final String PAGE_ID
The identifier of the component.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MdModelNewWizardPageComponent
public MdModelNewWizardPageComponent(IMdObjectAvailability mdObjectAvailability)
Creates a new component.- Parameters:
mdObjectAvailability
- the metadata object availability service, cannot benull
-
-
Method Detail
-
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
protected DtTextComponent createParentComponent()
Creates configuration name field and embed it in page for displaying only.- Returns:
- the component
-
createNameComponent
protected DtTextComponent createNameComponent()
Creates aMdObject
name component and embed it in page.- Returns:
- the name component
-
createSynonymComponent
protected MultilanguageComponent createSynonymComponent()
Creates aMdObject
synonym component and embed it in page.- Returns:
- the synonym component.
-
createCommentComponent
protected DtTextComponent 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
-
-