Class ContainerDefinition
java.lang.Object
com._1c.g5.aef2.standard.definitions.AbstractDefinition
com._1c.g5.aef2.standard.definitions.ContainerDefinition
- All Implemented Interfaces:
IComponentFactory,IContainerDefinition,IDefinition
- Direct Known Subclasses:
ManagingDefinition,SectionDefinition
The container definition that keeps other definitions.
-
Constructor Summary
ConstructorsConstructorDescriptionContainerDefinition(IDefinitionIdentifier id, Class<? extends ContainerComponent<?, ?>> componentClass, IParameterization parameterization) Creates a new instance.ContainerDefinition(Class<? extends ContainerComponent<?, ?>> componentClass, IParameterization parameterization) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinition(int index, IDefinition definition) Inserts the specified definition at the specified position.voidaddDefinition(IDefinition definition) Adds the specified definition at the end of the container.Returns children of the container.Returns the layout object.voidremoveDefinition(int index) Removes the definition from the container.voidremoveDefinition(IDefinition definition) Removes the specified definition from the container.voidsetLayout(IAefLayout layout) Sets the layout object.Methods inherited from class com._1c.g5.aef2.standard.definitions.AbstractDefinition
createComponent, equals, getComponentClass, getConstructor, getId, getLayoutData, getParametrization, getParent, hashCode, setComponentClass, setComponentFactory, setLayoutData, setModelFactory, setParameterization, setParentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.standard.definitions.IComponentFactory
createComponentMethods inherited from interface com._1c.g5.aef2.standard.definitions.IDefinition
getComponentClass, getId, getLayoutData, getParametrization, getParent
-
Constructor Details
-
ContainerDefinition
public ContainerDefinition(IDefinitionIdentifier id, Class<? extends ContainerComponent<?, ?>> componentClass, IParameterization parameterization) Creates a new instance.- Parameters:
id- the definition identifier, cannot benull.componentClass- the class of the container component, can benull.parameterization- the parameterization, can benull.
-
ContainerDefinition
public ContainerDefinition(Class<? extends ContainerComponent<?, ?>> componentClass, IParameterization parameterization) Creates a new instance.- Parameters:
componentClass- the class of the container component.parameterization- the parameterization.
-
-
Method Details
-
addDefinition
Inserts the specified definition at the specified position.- Parameters:
index- the index at which the specified definition is to be inserted.definition- theIDefinitioninstance.
-
addDefinition
Adds the specified definition at the end of the container.- Parameters:
definition- theIDefinitioninstance.
-
removeDefinition
public void removeDefinition(int index) Removes the definition from the container.- Parameters:
index- the index of the definition to be removed.
-
removeDefinition
Removes the specified definition from the container.- Parameters:
definition- theIDefinitioninstance.
-
getChildren
Description copied from interface:IContainerDefinitionReturns children of the container.- Specified by:
getChildrenin interfaceIContainerDefinition- Returns:
- child definitions.
-
setLayout
Sets the layout object.- Parameters:
layout- the layout.
-
getLayout
Description copied from interface:IContainerDefinitionReturns the layout object.- Specified by:
getLayoutin interfaceIContainerDefinition- Returns:
- the layout object.
-