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.PositionNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ActionsModelDeprecated.Deprecated.getLabel()Deprecated.Deprecated.Tells if the label is to be used in the gui.voidsetActions(ActionsModel actions) Deprecated.voidsetFormType(String type) Deprecated.voidsetLabel(DisplayValue value) Deprecated.voidsetUseLabel(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, setValidatorMethods 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, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, wrapMethods 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:
getFormTypein interfaceForm
-
setFormType
Deprecated.- Specified by:
setFormTypein interfaceForm
-
getLabel
Deprecated.- Specified by:
getLabelin interfaceLabeledComponent- Overrides:
getLabelin classLabeledComponentWrapper
-
setLabel
Deprecated.- Specified by:
setLabelin interfaceLabeledComponent- Overrides:
setLabelin classLabeledComponentWrapper- Parameters:
value- value
-
getUseLabel
Deprecated.Description copied from interface:LabeledComponentTells if the label is to be used in the gui.- Specified by:
getUseLabelin interfaceLabeledComponent- Overrides:
getUseLabelin classLabeledComponentWrapper- Returns:
- Tells if and how the label should be used.
-
setUseLabel
Deprecated.Description copied from interface:LabeledComponentSets wheter the label is to be used in the gui.- Specified by:
setUseLabelin interfaceLabeledComponent- Overrides:
setUseLabelin classLabeledComponentWrapper- Parameters:
useLabel- true to use it, false to ignore it
-
getActions
Deprecated.- Specified by:
getActionsin interfaceNiceActionHolder
-
setActions
Deprecated.- Specified by:
setActionsin interfaceNiceActionHolder
-