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 ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.Layout
Layout.LayoutType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the layout type of the component.boolean
boolean
boolean
boolean
void
setCollapsed
(boolean collapsed) void
setLabeled
(boolean labeled) void
setLayoutType
(Layout.LayoutType layoutType) void
setOccupiesRemainingHeight
(boolean occupiesRemainingHeight) void
setReadonly
(boolean readOnly) toString()
void
validate()
Will be called when the form has been built completely.Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractCompositeComponent
accept, addComponent, addScope, addScopes, clone, findById, getChildren, getScopes, hasChildren, indexOf, insertComponent, parseScopes, removeComponent, removeScope, removeScopes, replaceComponent
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPosition
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
accept, getForm, getId, getLabel, getParent, getPosition
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.CompositeComponent
findById, getChildren, getScopes, hasChildren
-
Constructor Details
-
LayoutImpl
public LayoutImpl()
-
-
Method Details
-
getLayoutType
Description copied from interface:Layout
Returns the layout type of the component. SeeLayout.LayoutType
for more details about kind of types are possible.- Specified by:
getLayoutType
in interfaceLayout
-
setLayoutType
-
isLabeled
public boolean isLabeled() -
setLabeled
public void setLabeled(boolean labeled) -
isReadonly
public boolean isReadonly()- Specified by:
isReadonly
in interfaceLayout
-
setReadonly
public void setReadonly(boolean readOnly) -
setOccupiesRemainingHeight
public void setOccupiesRemainingHeight(boolean occupiesRemainingHeight) -
isOccupiesRemainingHeight
public boolean isOccupiesRemainingHeight()- Specified by:
isOccupiesRemainingHeight
in interfaceLayout
-
setCollapsed
public void setCollapsed(boolean collapsed) -
isCollapsed
public boolean isCollapsed()- Specified by:
isCollapsed
in interfaceLayout
-
toString
-
validate
Description copied from interface:Component
Will 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:
validate
in interfaceComponent
- Overrides:
validate
in classAbstractCompositeComponent
- Throws:
ModelBuildException
-