Class FormAttributeService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.attribute.FormAttributeService
-
public class FormAttributeService extends Object
This service editsAbstractFormAttribute
objects
-
-
Constructor Summary
Constructors Constructor Description FormAttributeService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDataPath
getDataPath(AbstractFormAttribute attribute, Form form)
Returns data path of the attribute.static boolean
isMainType(TypeDescription type)
Check is main typevoid
removeAllColumnsOfAttribute(AbstractFormAttribute attribute, boolean deletingMode)
Method removes all columns of attributevoid
setMainAttribute(FormAttribute newMainAttribute, boolean value)
The method sets main attributevoid
setTypeDescription(IBmTransaction transaction, AbstractFormAttribute attribute, TypeDescription type)
The method setsTypeDescription
toAbstractFormAttribute
object, choice an actual form attribute ext info entity, sets it inAbstractFormAttribute
and update all dependenceFormItem
objectsvoid
updateFormItemsType(AbstractDataPath path, Form form)
Updates type for all form items with the given data path.
-
-
-
Method Detail
-
setTypeDescription
public void setTypeDescription(IBmTransaction transaction, AbstractFormAttribute attribute, TypeDescription type)
The method setsTypeDescription
toAbstractFormAttribute
object, choice an actual form attribute ext info entity, sets it inAbstractFormAttribute
and update all dependenceFormItem
objects- Parameters:
transaction
- the transaction to perform changes in, cannot benull
attribute
- theAbstractFormAttribute
in which are setTypeDescription
, cannot benull
type
- theTypeDescription
, cannot benull
-
isMainType
public static boolean isMainType(TypeDescription type)
Check is main type- Parameters:
type
- theTypeDescription
- Returns:
true
if type is main,false
if is not main type
-
setMainAttribute
public void setMainAttribute(FormAttribute newMainAttribute, boolean value)
The method sets main attribute- Parameters:
newMainAttribute
- theFormAttribute
value
-
-
getDataPath
public AbstractDataPath getDataPath(AbstractFormAttribute attribute, Form form)
Returns data path of the attribute.- Parameters:
attribute
- the form attribute, cannot benull
form
- the corresponding form, cannot benull
- Returns:
- data path, never
null
-
updateFormItemsType
public void updateFormItemsType(AbstractDataPath path, Form form)
Updates type for all form items with the given data path.- Parameters:
path
- the data path, cannot benull
form
- the form, cannot benull
-
removeAllColumnsOfAttribute
public void removeAllColumnsOfAttribute(AbstractFormAttribute attribute, boolean deletingMode)
Method removes all columns of attribute- Parameters:
attribute
- the attribute for which removes all children columnsdeleting
- is deleting mode. Iftrue
then clears all coincidenting data path,false
deletes only invalid a data path.
-
-