Class SimpleForm

All Implemented Interfaces:
NiceActionHolder, Component, Form, LabeledComponent, DataComponent

@Deprecated public final class SimpleForm extends AbstractDataComponent implements Form
Deprecated.
  • Constructor Details

    • SimpleForm

      public SimpleForm()
      Deprecated.
  • Method Details

    • newInstanceForCopy

      protected Component newInstanceForCopy(Component parent)
      Deprecated.
      Description copied from class: AbstractComponent
      Will be called when a copy is requested Component.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:
      newInstanceForCopy in class AbstractComponent
      Parameters:
      parent - the parent to set
      Returns:
      the new instance
    • getDataNavigationType

      public Component.DataNavigationType getDataNavigationType()
      Deprecated.
      Description copied from class: AbstractLabeledComponent
      Subclasses must override this if they don't want to inherit the NONE value.
      Specified by:
      getDataNavigationType in interface Component
      Overrides:
      getDataNavigationType in class AbstractDataComponent
      Returns:
      Tells what kind of component it is in relation to data.
    • getActions

      @Nullable public @Nullable ActionsModel getActions()
      Deprecated.
      Specified by:
      getActions in interface NiceActionHolder
    • setActions

      public void setActions(ActionsModel actions)
      Deprecated.
      This is currently called by the Entity-Forms merge process, so if actions are defined here then they're coming from entity xml.
      Specified by:
      setActions in interface NiceActionHolder
    • getFormType

      public String getFormType()
      Deprecated.
      Specified by:
      getFormType in interface Form
    • setFormType

      public void setFormType(String type)
      Deprecated.
      Specified by:
      setFormType in interface Form
    • wrap

      public FormWrapper wrap(ComponentWrapperHandler handler)
      Deprecated.
      Description copied from interface: Component
      Wraps the component with the given interceptor handler.

      Feel free to add an unwrap() method when needed.

      Specified by:
      wrap in interface Component
    • mapAllAttributesTo

      protected void mapAllAttributesTo(Component comp)
      Deprecated.
      Description copied from class: AbstractComponent
      Copies 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:
      mapAllAttributesTo in class AbstractDataComponent
      Parameters:
      comp - The new field into which everything needs to be copied.