Class FormUrl


  • public class FormUrl
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BACK_ID  
      static java.lang.String EXTERN_ID  
      Actor owner  
      java.util.List<com.wisecoders.dbs.forms.model.variables.ActionVariable> variables  
    • Constructor Summary

      Constructors 
      Constructor Description
      FormUrl​(Actor owner)  
      FormUrl​(Actor owner, java.lang.String targetFormKey)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.wisecoders.dbs.forms.model.variables.ActionVariable addVariable​(java.lang.String name, java.lang.String value)  
      void cloneFrom​(FormUrl original)  
      java.lang.String createHtmlHrefUsage​(com.wisecoders.dbs.forms.model.data.Record record, com.wisecoders.dbs.forms.model.unit.Form caller)
      Used by HTML3 templates
      java.lang.String createHtmlJsUsage​(com.wisecoders.dbs.forms.model.data.Record record, java.lang.String path, com.wisecoders.dbs.forms.model.unit.Form caller)
      This is used in HTML4
      FormUrl createJavaFxUsage​(com.wisecoders.dbs.forms.model.data.Record record)  
      void dispatchRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      com.wisecoders.dbs.forms.model.unit.Form getTargetForm()  
      java.lang.String getTargetFormKey()  
      java.lang.String listVariables()  
      void refresh()  
      void setTargetFormKey​(java.lang.String targetFormKey)  
      void setValuesFromUrlString​(java.lang.String variables)  
      boolean targetAndSourceAreSame()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • owner

        public final Actor owner
      • variables

        public final java.util.List<com.wisecoders.dbs.forms.model.variables.ActionVariable> variables
    • Constructor Detail

      • FormUrl

        public FormUrl​(Actor owner)
      • FormUrl

        public FormUrl​(Actor owner,
                       java.lang.String targetFormKey)
    • Method Detail

      • setTargetFormKey

        public void setTargetFormKey​(java.lang.String targetFormKey)
      • getTargetFormKey

        public java.lang.String getTargetFormKey()
      • getTargetForm

        public com.wisecoders.dbs.forms.model.unit.Form getTargetForm()
      • refresh

        public void refresh()
      • addVariable

        public com.wisecoders.dbs.forms.model.variables.ActionVariable addVariable​(java.lang.String name,
                                                                                   java.lang.String value)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • cloneFrom

        public void cloneFrom​(FormUrl original)
      • listVariables

        public java.lang.String listVariables()
      • setValuesFromUrlString

        public void setValuesFromUrlString​(java.lang.String variables)
      • targetAndSourceAreSame

        public boolean targetAndSourceAreSame()
      • createJavaFxUsage

        public FormUrl createJavaFxUsage​(com.wisecoders.dbs.forms.model.data.Record record)
      • createHtmlJsUsage

        public java.lang.String createHtmlJsUsage​(com.wisecoders.dbs.forms.model.data.Record record,
                                                  java.lang.String path,
                                                  com.wisecoders.dbs.forms.model.unit.Form caller)
        This is used in HTML4
        Parameters:
        record - with data
        path - context
        caller - who called this
        Returns:
        script call string
      • createHtmlHrefUsage

        public java.lang.String createHtmlHrefUsage​(com.wisecoders.dbs.forms.model.data.Record record,
                                                    com.wisecoders.dbs.forms.model.unit.Form caller)
        Used by HTML3 templates
        Parameters:
        record - with data
        caller - who called this
        Returns:
        the href url
      • dispatchRequest

        public void dispatchRequest​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)