Class LayoutImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
ch.tocco.nice2.model.form.impl.form2.components.AbstractCompositeComponent
ch.tocco.nice2.model.form.impl.form2.components.LayoutImpl
- All Implemented Interfaces:
Component, CompositeComponent, Layout, Cloneable
- Direct Known Subclasses:
TableImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface Component
Component.ConfigurationNested classes/interfaces inherited from interface Layout
Layout.LayoutType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the layout type of the component.booleanbooleanbooleanbooleanvoidsetBoxWidthRatio(String boxWidthRatio) voidsetCollapsed(boolean collapsed) voidsetLabeled(boolean labeled) voidsetLayoutType(Layout.LayoutType layoutType) voidsetOccupiesRemainingHeight(boolean occupiesRemainingHeight) voidsetReadonly(boolean readOnly) toString()voidvalidate()Will be called when the form has been built completely.Methods inherited from class AbstractCompositeComponent
accept, addComponent, addScope, addScopes, clone, findById, getChildren, getScopes, hasChildren, indexOf, insertComponent, parseScopes, removeComponent, removeScope, removeScopes, replaceComponentMethods inherited from class AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPositionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CompositeComponent
findById, getChildren, getScopes, hasChildren
-
Constructor Details
-
LayoutImpl
public LayoutImpl()
-
-
Method Details
-
getLayoutType
Description copied from interface:LayoutReturns the layout type of the component. SeeLayout.LayoutTypefor more details about kind of types are possible.- Specified by:
getLayoutTypein interfaceLayout
-
setLayoutType
-
isLabeled
-
setLabeled
public void setLabeled(boolean labeled) -
isReadonly
public boolean isReadonly()- Specified by:
isReadonlyin interfaceLayout
-
setReadonly
public void setReadonly(boolean readOnly) -
setOccupiesRemainingHeight
public void setOccupiesRemainingHeight(boolean occupiesRemainingHeight) -
isOccupiesRemainingHeight
public boolean isOccupiesRemainingHeight()- Specified by:
isOccupiesRemainingHeightin interfaceLayout
-
setCollapsed
public void setCollapsed(boolean collapsed) -
isCollapsed
public boolean isCollapsed()- Specified by:
isCollapsedin interfaceLayout
-
getBoxWidthRatio
- Specified by:
getBoxWidthRatioin interfaceLayout
-
setBoxWidthRatio
-
toString
-
validate
Description copied from interface:ComponentWill be called when the form has been built completely. Can be used to validate values (and throwModelBuildException) or the fill in default value.- Specified by:
validatein interfaceComponent- Overrides:
validatein classAbstractCompositeComponent- Throws:
ModelBuildException
-