Class JSPScreen

java.lang.Object
com.softwaremining.ui.AbstractScreen
com.softwaremining.ui.web.JSPScreen
Direct Known Subclasses:
XmlJspScreen

public class JSPScreen extends AbstractScreen
this class is used internally to generate HTML/JSP screens using
screens/file.xml and screens/jsp/xxx_yyy.jsp definitions
  • Field Details

  • Constructor Details

    • JSPScreen

      public JSPScreen()
  • Method Details

    • generateHtml

      public void generateHtml(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Specified by:
      generateHtml in class AbstractScreen
    • buildFromScreenRequest

      public void buildFromScreenRequest(DisplayRequest displayRequest)
      for internal use only
      Specified by:
      buildFromScreenRequest in class AbstractScreen
    • processAcceptResponse

      public void processAcceptResponse(AcceptResponse acceptResponse)
      for internal use only
      Specified by:
      processAcceptResponse in class AbstractScreen
    • clearScreen

      public void clearScreen()
      Specified by:
      clearScreen in class AbstractScreen
    • renderInput

      public String renderInput(String paramName)
      for use within JSP files - returns formatted input field .
      E.g. renderInput("VARIABLE-1") will return <input name="VARIABL-1" size=12 value="value of variable" >
      includes style/class attribute - e.g class="bright" when field has been marked as bright/highlight/...
      Parameters:
      paramName - - name of the field to be displayed
      Returns:
    • renderCheckbox

      public String renderCheckbox(String paramName, String checkedValue)
      For use within JSP files - returns the field formatted as a checkbox. Note: the JSP has to be modified with SMScreenDesigner - and the field must have been marked as a CheckBox
      Parameters:
      paramName - - name of the field to be displayed
      checkedValue -
      Returns:
    • renderRadio

      public String renderRadio(String paramName, String checkedValue)
      For use within JSP files - returns the field formatted as a radio button. Note: the JSP has to be modified with SMScreenDesigner - and the field must have been marked as a radio
      Parameters:
      paramName - - name of the field to be displayed
      checkedValue -
      Returns:
    • renderDropDown

      public String renderDropDown(String paramName, String[][] values)
      For use within JSP files - returns the field formatted as a radio button. Note: the JSP has to be modified with SMScreenDesigner - and the field must have been marked as a DropDown
      Parameters:
      paramName - - name of the field to be displayed
      values - - one of the existing drop-down values
      Returns:
    • renderFunctionKeys

      public static String renderFunctionKeys()
      Display function keys at the bottom of the screen.
      By default the system will display two rows of function keys. The display of the 2nd row can be supporessed using the property ONLY_DISPLAY_PF_KEYS_1_TO_12 in Softwaremining.properties file
      Returns:
    • renderFinalization

      public String renderFinalization()
      cleans up and generates hidden _SET_FOCUS_ field
      Returns: