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)
<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
.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 beginscommand
- the command for which are looked for related button- Returns:
- the related form buttons. Returns empty
Set
if related button not exists. - Throws:
NullPointerException
- if container or command is null
-
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 beginscommand
- it is one of paths on which are looked the related buttonspath
- it is one of paths on which are looked the related buttons- Returns:
- the related form buttons. Returns empty
Set
if related button not exists. - Throws:
NullPointerException
- if container or command is null
-
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 beginscommand
- the command for which are looked for related button- Returns:
- the related form button. Returns
null
if related button not exists. - Throws:
NullPointerException
- if container or command is null
-
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 beginscommand
- it is one of paths on which are looked the related buttonspath
- it is one of paths on which are looked the related buttonsfirst
- is flag for returns first only one related button- Returns:
- the related form button. Returns
null
if related button not exists. - Throws:
NullPointerException
- if container or command is null
-
findRelated
public Set<DataItem> findRelated(FormItemContainer container, AbstractDataPath path)
-
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 beginsproperty
- it isPropertyInfo
corresponding to the one of paths on which are looked the relatedDataItem
first
- is flag for returns first only one related buttonclazz
- theDataItem
class, can't benull
- Returns:
- the related form
DataItem
, can benull
ifDataItem
wasn't 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 beginscommand
- it is one of paths on which are looked the related buttonspath
- it is one of paths on which are looked the related buttonsfirst
- is flag for returns first only one related button- Returns:
- the related form button
- Throws:
NullPointerException
- if container or command is null
-
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.
-
-