Class StructuredParameterization
- java.lang.Object
-
- com._1c.g5.aef2.standard.parameterization.StructuredParameterization
-
- All Implemented Interfaces:
IParameterization
,IActiveContextParameterization
,IStructuredParameterization
- Direct Known Subclasses:
NavigatorTableParameterization
,TreeParameterization
public class StructuredParameterization extends Object implements IStructuredParameterization
IStructuredParameterization
implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructuredParameterization.StructuredParameterizationBuilder<T extends StructuredParameterization.StructuredParameterizationBuilder<T>>
Builder of structured parameterization.
-
Field Summary
-
Fields inherited from interface com._1c.g5.aef2.components.IParameterization
VOID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StructuredParameterization(StructuredParameterization.StructuredParameterizationBuilder<?> builder)
Constructs an instance by a builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StructuredParameterization.StructuredParameterizationBuilder<?>
builder()
Creates a new builder of structured parameterization.String
getActiveContext()
Gets active context.Comparator<Object>
getComparator()
Returns the comparator of elements in structured view.boolean
isEmptyChoiceAllowed()
Returnstrue
if empty choice allowed.boolean
isMulti()
Returnstrue
if multi selection allowed.boolean
isSearchBoxVisible()
Returnstrue
if the search box must be visible in the parameterized component.boolean
isShowCheckboxes()
Returnstrue
if selection checkboxes should be shown in the default column of the component.boolean
isShowImages()
Returnstrue
if images should be shown in the default column of the component.
-
-
-
Constructor Detail
-
StructuredParameterization
protected StructuredParameterization(StructuredParameterization.StructuredParameterizationBuilder<?> builder)
Constructs an instance by a builder.- Parameters:
builder
- Builder to get values from
-
-
Method Detail
-
builder
public static StructuredParameterization.StructuredParameterizationBuilder<?> builder()
Creates a new builder of structured parameterization. The default values are:- Empty choice not allowed
- Multi-selection disabled
- Search box hidden
- Context not specified
- Images are shown
- Checkboxes are shown
- Comparator is not set
- Returns:
- New builder of structured parameterization
-
isEmptyChoiceAllowed
public boolean isEmptyChoiceAllowed()
Description copied from interface:IStructuredParameterization
Returnstrue
if empty choice allowed.- Specified by:
isEmptyChoiceAllowed
in interfaceIStructuredParameterization
- Returns:
true
if empty choice allowed
-
isMulti
public boolean isMulti()
Description copied from interface:IStructuredParameterization
Returnstrue
if multi selection allowed.- Specified by:
isMulti
in interfaceIStructuredParameterization
- Returns:
true
if multi selection allowed
-
getActiveContext
public String getActiveContext()
Description copied from interface:IActiveContextParameterization
Gets active context.- Specified by:
getActiveContext
in interfaceIActiveContextParameterization
- Returns:
- the active context, can be
null
-
isSearchBoxVisible
public boolean isSearchBoxVisible()
Description copied from interface:IStructuredParameterization
Returnstrue
if the search box must be visible in the parameterized component.- Specified by:
isSearchBoxVisible
in interfaceIStructuredParameterization
- Returns:
true
if the search box must be visible
-
isShowImages
public boolean isShowImages()
Description copied from interface:IStructuredParameterization
Returnstrue
if images should be shown in the default column of the component.- Specified by:
isShowImages
in interfaceIStructuredParameterization
- Returns:
true
if images should be shown in the default column of the component
-
isShowCheckboxes
public boolean isShowCheckboxes()
Description copied from interface:IStructuredParameterization
Returnstrue
if selection checkboxes should be shown in the default column of the component.- Specified by:
isShowCheckboxes
in interfaceIStructuredParameterization
- Returns:
true
if checkboxes should be shown in the default column of the component
-
getComparator
public Comparator<Object> getComparator()
Description copied from interface:IStructuredParameterization
Returns the comparator of elements in structured view.- Specified by:
getComparator
in interfaceIStructuredParameterization
- Returns:
Comparator
instance ornull
.
-
-