Class FormWrapper
java.lang.Object
ch.tocco.nice2.model.form.api.components.ComponentWrapper
ch.tocco.nice2.model.form.api.components.LabeledComponentWrapper
ch.tocco.nice2.model.form.api.components.DataComponentWrapper
ch.tocco.nice2.model.form.api.components.FormWrapper
- All Implemented Interfaces:
NiceActionHolder
,Component
,Form
,LabeledComponent
,DataComponent
Deprecated.
Base class for wrapping a
Form
and overriding some functionality, for example hiding some components.
How to use: Create anonymous instances and override what you need.
-
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.ComponentWrapper
handler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable ActionsModel
Deprecated.Deprecated.getLabel()
Deprecated.Deprecated.Tells if the label is to be used in the gui.void
setActions
(ActionsModel actions) Deprecated.void
setFormType
(String type) Deprecated.void
setLabel
(DisplayValue value) Deprecated.void
setUseLabel
(LabeledComponent.UseLabel useLabel) Deprecated.Sets wheter the label is to be used in the gui.Methods inherited from class ch.tocco.nice2.model.form.api.components.DataComponentWrapper
getConstriction, getDataType, getDefaultDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidator
Methods inherited from class ch.tocco.nice2.model.form.api.components.ComponentWrapper
addComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDataNavigationType, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hasParent, hideChild, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, getDataNavigationType, 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.datanavigation.DataComponent
getConstriction, getDataType, getDefaultDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidator
-
Constructor Details
-
FormWrapper
Deprecated.
-
-
Method Details
-
getFormType
Deprecated.- Specified by:
getFormType
in interfaceForm
-
setFormType
Deprecated.- Specified by:
setFormType
in interfaceForm
-
getLabel
Deprecated.- Specified by:
getLabel
in interfaceLabeledComponent
- Overrides:
getLabel
in classLabeledComponentWrapper
-
setLabel
Deprecated.- Specified by:
setLabel
in interfaceLabeledComponent
- Overrides:
setLabel
in classLabeledComponentWrapper
- Parameters:
value
- value
-
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 classLabeledComponentWrapper
- Returns:
- Tells if and how the label should be used.
-
setUseLabel
Deprecated.Description copied from interface:LabeledComponent
Sets wheter the label is to be used in the gui.- Specified by:
setUseLabel
in interfaceLabeledComponent
- Overrides:
setUseLabel
in classLabeledComponentWrapper
- Parameters:
useLabel
- true to use it, false to ignore it
-
getActions
Deprecated.- Specified by:
getActions
in interfaceNiceActionHolder
-
setActions
Deprecated.- Specified by:
setActions
in interfaceNiceActionHolder
-