Package com._1c.g5.v8.dt.form.ui.wizard
Class FormWizard.FormModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.CompoundModel
-
- com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdObjectModel<M>
-
- com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdTypedObjectModel<BasicForm>
-
- com._1c.g5.v8.dt.form.ui.wizard.FormWizard.FormModel
-
- All Implemented Interfaces:
ICompoundModel
,IModel
,IValidable
,IMdObjectModel
,IMdTypedObjectModel
- Enclosing class:
- FormWizard
public static class FormWizard.FormModel extends MdTypedObjectModel<BasicForm>
The model for form wizard pages.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdObjectModel
languageProvider
-
-
Constructor Summary
Constructors Constructor Description FormModel(IDtNewWizardContext<BasicForm> context, String namePrefix, String projectNamePrefix, IRuntimeVersionSupport versionSupport, IFormGenerator formGenerator, IFormFieldGenerator formFieldGenerator, IV8ProjectManager v8projectManager)
Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this model.IValue<Integer>
getColumnCount()
IValue<Boolean>
getDefaultItemValue()
MdModelTypesExtension
getDefaultType()
IValue<Boolean>
getDefaultValue()
FormFieldInfo
getFields()
boolean
isApplicableForType(MdModelTypesExtension ext)
Returns the value indicating whenever to allow select the given model type.boolean
isDefaultItemEnabled()
Checks, is default item (object, folder) form.boolean
isDefaultItemVisible()
boolean
isDefaultVisible()
protected void
setDefaultType()
Sets the current type to default value.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdTypedObjectModel
getAdditionalModels, getExtension, getExtensions, setDefaultName
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.aef.models.MdObjectModel
getComment, getContext, getModelClass, getModelEditingSupport, getName, getParent, getSynonym, getUniqueName, getV8project
-
Methods inherited from class com._1c.g5.aef2.models.CompoundModel
addModel, getChange, getModels, isOnline, setComponent, validate
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.md.ui.wizards.aef.models.IMdObjectModel
getComment, getModelClass, getName, getParent, getSynonym, getUniqueName, getV8project
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
FormModel
public FormModel(IDtNewWizardContext<BasicForm> context, String namePrefix, String projectNamePrefix, IRuntimeVersionSupport versionSupport, IFormGenerator formGenerator, IFormFieldGenerator formFieldGenerator, IV8ProjectManager v8projectManager)
Creates a new model.- Parameters:
context
- the wizard context, cannot benull
namePrefix
- the name prefix of creating object, cannot benull
projectNamePrefix
- the project name prefix ornull
} if not neededversionSupport
- theIRuntimeVersionSupport
, cannot benull
formGenerator
- the from generator, cannot benull
formFieldGenerator
- the from field generator, cannot benull
v8projectManager
- the V8 project manager, cannot benull
-
-
Method Detail
-
setDefaultType
protected void setDefaultType()
Description copied from class:MdTypedObjectModel
Sets the current type to default value. By default select the first type. Override to change the default behaviour.- Overrides:
setDefaultType
in classMdTypedObjectModel<BasicForm>
-
getFields
public FormFieldInfo getFields()
- Returns:
- the
FormFieldInfo
for the current extension
-
isDefaultVisible
public boolean isDefaultVisible()
- Returns:
- the value indicating whenever to show the 'default form' checkbox or not
-
isApplicableForType
public boolean isApplicableForType(MdModelTypesExtension ext)
Description copied from interface:IMdTypedObjectModel
Returns the value indicating whenever to allow select the given model type.- Specified by:
isApplicableForType
in interfaceIMdTypedObjectModel
- Overrides:
isApplicableForType
in classMdTypedObjectModel<BasicForm>
- Parameters:
ext
- is theMdModelTypesExtension
- Returns:
- true, if the given extension has no predicate or has predicate that is applicable.
-
getDefaultType
public MdModelTypesExtension getDefaultType()
- Returns:
- the default
MdModelTypesExtension
that should be set after the Ui is initialized.
-
isDefaultItemEnabled
public boolean isDefaultItemEnabled()
Checks, is default item (object, folder) form.- Returns:
- the value indicating whenever to enable the 'default item form' checkbox or not for catalog and cct forms
-
isDefaultItemVisible
public boolean isDefaultItemVisible()
- Returns:
true
if the parent isCatalog
orChartOfCharacteristicTypes
}.
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.- Specified by:
dispose
in interfaceIModel
- Overrides:
dispose
in classMdObjectModel<BasicForm>
-
getDefaultValue
public IValue<Boolean> getDefaultValue()
- Returns:
- the model for 'default form' checkbox
-
-