Package com.softwaremining.ui.web
Class JSPScreen
java.lang.Object
com.softwaremining.ui.AbstractScreen
com.softwaremining.ui.web.JSPScreen
- Direct Known Subclasses:
XmlJspScreen
this class is used internally to generate HTML/JSP screens using
screens/file.xml and screens/jsp/xxx_yyy.jsp definitions
screens/file.xml and screens/jsp/xxx_yyy.jsp definitions
-
Field Summary
Fields inherited from class com.softwaremining.ui.AbstractScreen
APP_SERVER_URL, ROW_COLUMN_NOT_INITIALIZED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildFromScreenRequest
(DisplayRequest displayRequest) for internal use onlyvoid
void
generateHtml
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
processAcceptResponse
(AcceptResponse acceptResponse) for internal use onlyrenderCheckbox
(String paramName, String checkedValue) For use within JSP files - returns the field formatted as a checkbox.renderDropDown
(String paramName, String[][] values) For use within JSP files - returns the field formatted as a radio button.cleans up and generates hidden _SET_FOCUS_ fieldstatic String
Display function keys at the bottom of the screen.renderInput
(String paramName) for use within JSP files - returns formatted input field .renderRadio
(String paramName, String checkedValue) For use within JSP files - returns the field formatted as a radio button.Methods inherited from class com.softwaremining.ui.AbstractScreen
addExceptionRequest, addExceptionRequest, addQuitRequest, addReportFrame, assignServiceName, clearReportFrames, closeForm, getReportFrames, getStackTrace, hasException, hasReportFrames, isFinished, retrieveServiceName
-
Field Details
-
SCREEN_WIDTH
public static final int SCREEN_WIDTH- See Also:
-
-
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 classAbstractScreen
-
buildFromScreenRequest
for internal use only- Specified by:
buildFromScreenRequest
in classAbstractScreen
-
processAcceptResponse
for internal use only- Specified by:
processAcceptResponse
in classAbstractScreen
-
clearScreen
public void clearScreen()- Specified by:
clearScreen
in classAbstractScreen
-
renderInput
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
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 displayedcheckedValue
-- Returns:
-
renderRadio
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 displayedcheckedValue
-- Returns:
-
renderDropDown
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 displayedvalues
- - one of the existing drop-down values- Returns:
-
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
cleans up and generates hidden _SET_FOCUS_ field- Returns:
-