Class AbstractBox<CC extends Component>
java.lang.Object
ch.tocco.nice2.model.form.api.components.AbstractComponent<CC>
ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent<CC>
ch.tocco.nice2.model.form.api.components.layout.AbstractBox<CC>
- All Implemented Interfaces:
Component
,LabeledComponent
,Box
- Direct Known Subclasses:
HorizontalBoxImpl
,VerticalBoxImpl
@Deprecated
public abstract class AbstractBox<CC extends Component>
extends AbstractLabeledComponent<CC>
implements Box
Deprecated.
Abstract implementation for the
Box
interface.
We know two types of boxes, a VerticalBoxImpl
and
a HorizontalBoxImpl
. With this two kinds
of layouting possibilities we should be able to create any layout we want to. Certainly
the boxes can be nested to infinity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.Component
Component.ComponentFilter, Component.DataNavigationType, Component.DisplayType, Component.Position
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponent
LabeledComponent.UseLabel
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.api.components.AbstractComponent
attributeProps, extProps, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Subclasses must override this if they don't want to inherit the NONE value.Deprecated.Tells if the label is to be used in the gui.boolean
Deprecated.Is the box labeledprotected void
mapAllAttributesTo
(Component comp) Deprecated.Additionally we want to set fields only a box posessesvoid
setLabeled
(boolean labeled) Deprecated.Set labeledMethods inherited from class ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent
getLabel, setLabel, setUseLabel
Methods inherited from class ch.tocco.nice2.model.form.api.components.AbstractComponent
addComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, equals, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hashCode, hasParent, isForceEditable, isLeaf, isReplace, newInstanceForCopy, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.components.Component
addComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hasParent, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, wrap
Methods inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponent
getLabel, setLabel, setUseLabel
-
Constructor Details
-
AbstractBox
Deprecated.- Parameters:
parent
- parent component
-
-
Method Details
-
mapAllAttributesTo
Deprecated.Additionally we want to set fields only a box posesses- Overrides:
mapAllAttributesTo
in classAbstractLabeledComponent<CC extends Component>
- Parameters:
comp
- component to copy
-
isLabeled
public boolean isLabeled()Deprecated.Is the box labeled -
setLabeled
public void setLabeled(boolean labeled) Deprecated.Set labeled- Specified by:
setLabeled
in interfaceBox
- Parameters:
labeled
- true to label
-
getUseLabel
Deprecated.Description copied from interface:LabeledComponent
Tells if the label is to be used in the gui.- Specified by:
getUseLabel
in interfaceLabeledComponent
- Overrides:
getUseLabel
in classAbstractLabeledComponent<CC extends Component>
- Returns:
- Tells if and how the label should be used.
-