Class FormItemAssociationService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.item.FormItemAssociationService
-
public class FormItemAssociationService extends Object
The service for search an related form items by various object (Command
,AbstractDataPath
and etc.)
-
-
Constructor Summary
Constructors Constructor Description FormItemAssociationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormItem
findFirstRelated(FormItemContainer container, AbstractDataPath path)
The method looks forDataItem
that corresponding withAbstractDataPath
.<T extends DataItem>
TfindFirstRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
.<T extends DataItem>
TfindFirstRelated(FormItemContainer container, AbstractFormAttribute attribute, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractFormAttribute
.Button
findFirstRelated(FormItemContainer container, Command command)
The method returns first related button with currentCommand
.Button
findFirstRelated(FormItemContainer container, Command command, AbstractDataPath path)
The method looks for button that corresponding withCommand
andAbstractDataPath
.Set<DataItem>
findRelated(FormItemContainer container, AbstractDataPath path)
The method looks forDataItem
that corresponding withAbstractDataPath
.<T extends DataItem>
Set<T>findRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
.protected <T extends DataItem>
Set<T>findRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz, boolean first)
The method looks forDataItem
that corresponding withAbstractDataPath
.<T extends DataItem>
Set<T>findRelated(FormItemContainer container, AbstractFormAttribute attribute, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractFormAttribute
.<T extends DataItem>
Set<T>findRelated(FormItemContainer container, PropertyInfo property, boolean first, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
.<T extends DataItem>
Set<T>findRelated(FormItemContainer container, PropertyInfo property, boolean first, Class<T> clazz, boolean fullMatch)
The method looks forDataItem
that corresponding withAbstractDataPath
.Set<Button>
findRelated(FormItemContainer container, Command command)
The method looks for buttons that corresponding withCommand
.Set<Button>
findRelated(FormItemContainer container, Command command, AbstractDataPath path)
The method looks for buttons that corresponding withCommand
andAbstractDataPath
.protected Set<Button>
findRelated(FormItemContainer container, Command command, AbstractDataPath path, boolean first)
The method looks for buttons that corresponding withCommand
andAbstractDataPath
.
-
-
-
Method Detail
-
findRelated
public Set<Button> findRelated(FormItemContainer container, Command command)
The method looks for buttons that corresponding withCommand
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- the command for which are looked for related button, cannot benull
- Returns:
- the related form buttons. Returns empty
Set
if related button does not exist, nevernull
-
findRelated
public Set<Button> findRelated(FormItemContainer container, Command command, AbstractDataPath path)
The method looks for buttons that corresponding withCommand
andAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- it is one of paths on which are looked the related buttons, cannot benull
path
- it is one of paths on which are looked the related buttons, cannot benull
- Returns:
- the related form buttons. Returns empty
Set
if related button does not exist, nevernull
-
findFirstRelated
public Button findFirstRelated(FormItemContainer container, Command command)
The method returns first related button with currentCommand
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- the command for which are looked for related button, cannot benull
- Returns:
- the related form button. Returns
null
if related button does not exist.
-
findFirstRelated
public Button findFirstRelated(FormItemContainer container, Command command, AbstractDataPath path)
The method looks for button that corresponding withCommand
andAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- it is one of paths on which are looked the related buttons, cannot benull
path
- it is one of paths on which are looked the related buttons, cannot benull
first
- is flag for returns first only one related button, cannot benull
- Returns:
- the related form button. Returns
null
if related button does not exist.
-
findRelated
public Set<DataItem> findRelated(FormItemContainer container, AbstractDataPath path)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.
-
findRelated
public <T extends DataItem> Set<T> findRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.
-
findRelated
public <T extends DataItem> Set<T> findRelated(FormItemContainer container, AbstractFormAttribute attribute, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractFormAttribute
. The searching starts from container item.
-
findFirstRelated
public <T extends DataItem> T findFirstRelated(FormItemContainer container, AbstractFormAttribute attribute, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractFormAttribute
. The searching starts from container item.
-
findFirstRelated
public FormItem findFirstRelated(FormItemContainer container, AbstractDataPath path)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.
-
findFirstRelated
public <T extends DataItem> T findFirstRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.
-
findRelated
public <T extends DataItem> Set<T> findRelated(FormItemContainer container, PropertyInfo property, boolean first, Class<T> clazz)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element with which search begins, cannot benull
property
- it isPropertyInfo
corresponding to the one of paths on which are looked the relatedDataItem
, cannot benull
first
- is flag for returns first only one related buttonclazz
- theDataItem
class, cannot benull
- Returns:
- the related form
DataItem
, can benull
ifDataItem
not found
-
findRelated
public <T extends DataItem> Set<T> findRelated(FormItemContainer container, PropertyInfo property, boolean first, Class<T> clazz, boolean fullMatch)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element with which search begins, cannot benull
property
- it isPropertyInfo
corresponding to the one of paths on which are looked the relatedDataItem
, cannot benull
first
- is flag for returns first only one related buttonclazz
- theDataItem
class, cannot benull
fullMatch
- iffalse
than only first segments are compared for non-element data paths, otherwise fair comparison is used- Returns:
- the related form
DataItem
, can benull
ifDataItem
not found
-
findRelated
protected Set<Button> findRelated(FormItemContainer container, Command command, AbstractDataPath path, boolean first)
The method looks for buttons that corresponding withCommand
andAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- it is one of paths on which are looked the related buttons, cannot benull
path
- it is one of paths on which are looked the related buttons, cannot benull
first
- is flag for returns first only one related button- Returns:
- the related form button, never
null
, can be empty
-
findRelated
protected <T extends DataItem> Set<T> findRelated(FormItemContainer container, AbstractDataPath path, Class<T> clazz, boolean first)
The method looks forDataItem
that corresponding withAbstractDataPath
. The searching starts from container item.- Parameters:
container
- the root element,with which search begins, cannot benull
command
- it is one of paths on which are looked the related buttons, cannot benull
path
- it is one of paths on which are looked the related buttons, cannot benull
clazz
- theDataItem
class, cannot benull
- Returns:
- the related form
DataItem
s, nevernull
-
-