Package com._1c.g5.v8.dt.form.model.util
Class CommandGroups
- java.lang.Object
-
- com._1c.g5.v8.dt.form.model.util.CommandGroups
-
public class CommandGroups extends Object
Static utility methods to work withFormCommandInterfaceItems
.
-
-
Constructor Summary
Constructors Constructor Description CommandGroups(FormCommandInterfaceItems interfaces)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CommandGroup>
getGroups()
FormCommandInterfaceItems
getInterfaceItems()
List<FormCommandInterfaceItem>
getInterfaces(CommandGroup group)
Gets a filtered bygroup
the list of children (command interfaces)int
getMaxIndex(CommandGroup group)
Gets the max.int
getMinIndex(CommandGroup group)
Gets the min.FormCommandInterfaceItem[]
getSortedInterfaces(CommandGroup group)
Gets a filtered bygroup
the list of children (command interfaces), sorted by index
-
-
-
Constructor Detail
-
CommandGroups
public CommandGroups(FormCommandInterfaceItems interfaces)
Constructor.- Parameters:
interfaces
- - a command interface container
-
-
Method Detail
-
getInterfaces
public List<FormCommandInterfaceItem> getInterfaces(CommandGroup group)
Gets a filtered bygroup
the list of children (command interfaces)- Parameters:
group
- - a filter- Returns:
- - a filtered list of children (command interfaces)
-
getSortedInterfaces
public FormCommandInterfaceItem[] getSortedInterfaces(CommandGroup group)
Gets a filtered bygroup
the list of children (command interfaces), sorted by index- Parameters:
group
- - a filter- Returns:
- - a filtered list of children (command interfaces)
-
getMaxIndex
public int getMaxIndex(CommandGroup group)
Gets the max. index on group- Parameters:
group
- - a filter- Returns:
- a the max. index on group
-
getMinIndex
public int getMinIndex(CommandGroup group)
Gets the min. index on group- Parameters:
group
- - a filter- Returns:
- a the min. index on group
-
getGroups
public Set<CommandGroup> getGroups()
- Returns:
- Get all
CommandGroup
s inFormCommandInterfaceItems
-
getInterfaceItems
public FormCommandInterfaceItems getInterfaceItems()
- Returns:
- gets form command interface items
-
-