Class FormIdentifier

java.lang.Object
ch.tocco.nice2.netui.api.bind.form.FormIdentifier

public class FormIdentifier extends Object
Transfer object to identify a form.

How to use in the client (JS)

Using the scope


 var formIdentifier = new FormIdentifier();
 formIdentifier.scope        = "search";
 

Using the main part of the form name


 var formIdentifier = new FormIdentifier();
 formIdentifier.scope    = "search";
 formIdentifier.formName = "User";
 

Using the full form name


 var formIdentifier = new FormIdentifier();
 formIdentifier.scope    = "search";
 formIdentifier.formName = "User_search";
 
  • Constructor Details

    • FormIdentifier

      public FormIdentifier()
  • Method Details

    • getScope

      public String getScope()
      Returns:
      eg 'list', 'search' etc. in lower case.
    • getFormName

      @Nullable public @Nullable String getFormName()
      Returns:
      can be the main part of the form name (eg 'User') or the full form name (eg 'User_search').
    • setScope

      public void setScope(String scope)
    • setFormName

      public void setFormName(@Nullable @Nullable String formName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object