Class DefaultAction
java.lang.Object
ch.tocco.nice2.model.form.api.components.AbstractComponent<Action>
ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent<Action>
ch.tocco.nice2.model.form.api.components.action.DefaultAction
- All Implemented Interfaces:
Action,Component,LabeledComponent
Deprecated.
-
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.AbstractComponent
attributeProps, extProps, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringDeprecated.@Nullable StringDeprecated.@Nullable StringgetIcon()Deprecated.getPath()Deprecated.Deprecated.protected voidmapAllAttributesTo(Component comp) Deprecated.Copies the attributes of this component into the passed component.protected ActionnewInstanceForCopy(Component parent) Deprecated.Will be called when a copy is requestedComponent.createCopy()! Create a new instanc of this component, copy the properties and return it.voidsetActionType(String actionType) Deprecated.voidsetGroupName(String groupName) Deprecated.voidDeprecated.voidDeprecated.voidsetProperties(Map<String, Object> properties) Deprecated.wrap(ComponentWrapperHandler handler) Deprecated.Wraps the component with the given interceptor handler.Methods inherited from class ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent
getDataNavigationType, getLabel, getUseLabel, setLabel, setUseLabelMethods 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, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, setScopesMethods inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponent
getLabel, getUseLabel, setLabel, setUseLabel
-
Constructor Details
-
DefaultAction
Deprecated.- Parameters:
parent- the parent of this component
-
-
Method Details
-
getPath
Deprecated. -
setPath
Deprecated. -
getActionType
Deprecated.- Specified by:
getActionTypein interfaceAction
-
setActionType
Deprecated.- Specified by:
setActionTypein interfaceAction
-
newInstanceForCopy
Deprecated.Description copied from class:AbstractComponentWill be called when a copy is requestedComponent.createCopy()! Create a new instanc of this component, copy the properties and return it. You don't have to copy the properties which are inherited from the abstract implmentation. Only copy the properties from the concrete implementation.
The parent has to be the parent given in the argument parent- Specified by:
newInstanceForCopyin classAbstractComponent<Action>- Parameters:
parent- the parent to set- Returns:
- the new instance
-
setIcon
Deprecated. -
getIcon
Deprecated. -
setProperties
Deprecated.- Specified by:
setPropertiesin interfaceAction
-
getProperties
Deprecated.- Specified by:
getPropertiesin interfaceAction
-
wrap
Deprecated.Description copied from interface:ComponentWraps the component with the given interceptor handler.Feel free to add an unwrap() method when needed.
-
setGroupName
Deprecated.- Specified by:
setGroupNamein interfaceAction
-
getGroupName
Deprecated.- Specified by:
getGroupNamein interfaceAction
-
mapAllAttributesTo
Deprecated.Description copied from class:AbstractComponentCopies the attributes of this component into the passed component.This is used to copy the attributes collected by the xml reading process from "general" field tags into datatype-specific customized fields (mapped by FieldComponentConverter). And also for copying instances, kind of like cloning.
Override this in your subclasses. Also, subclasses are required to let their anchestors do their work using
super.copyOtherFields(cpy).- Overrides:
mapAllAttributesToin classAbstractLabeledComponent<Action>- Parameters:
comp- The new field into which everything needs to be copied.
-