/** * Output this screen using HTML. * @exception DBException File exception. */ public void printScreenFieldData(ScreenComponent sField, PrintWriter out, int iPrintOptions) { ((ScreenField)sField).printData(out, iPrintOptions); } /**
/** * Get this report's output as an HTML string. * @return The html for this control. */ public String getHtmlControl() { StringWriter sw = new StringWriter(); PrintWriter rw = new PrintWriter(sw); this.getScreenField().printData(rw, HtmlConstants.HTML_DISPLAY); // DO print screen String string = sw.toString(); return string; } }
/** * Display this screen's toolbars in html input format. * @param out The html out stream. * @return true if default params were found for this form. * @exception DBException File exception. */ public boolean printZmlToolbarData(PrintWriter out, int iHtmlOptions) { boolean bFieldsFound = false; int iNumCols = ((BasePanel)this.getScreenField()).getSFieldCount(); for (int iIndex = 0; iIndex < iNumCols; iIndex++) { ScreenField sField = ((BasePanel)this.getScreenField()).getSField(iIndex); if (sField.isToolbar()) { if (sField.printData(out, HtmlConstants.HTML_INPUT | HtmlConstants.HTML_ADD_DESC_COLUMN)) bFieldsFound = true; } } return bFieldsFound; } /**
/** * Display this screen's toolbars in html input format. * @param out The html out stream. * @return true if default params were found for this form. * @exception DBException File exception. */ public boolean printZmlToolbarData(PrintWriter out, int iHtmlOptions) { boolean bFieldsFound = false; int iNumCols = ((BasePanel)this.getScreenField()).getSFieldCount(); for (int iIndex = 0; iIndex < iNumCols; iIndex++) { ScreenField sField = ((BasePanel)this.getScreenField()).getSField(iIndex); if (sField.isToolbar()) { if (sField.printData(out, HtmlConstants.HTML_INPUT | HtmlConstants.HTML_ADD_DESC_COLUMN)) bFieldsFound = true; } } return bFieldsFound; } /**
/** * Print this screen's content area. * @param out The out stream. * @exception DBException File exception. */ public void printScreen(PrintWriter out, ResourceBundle reg) throws DBException { String strParamHelp = this.getProperty(DBParams.HELP); // Display record if (strParamHelp != null) return; // Don't do this for help screens this.printHtmlStartForm(out); int iHtmlOptions = this.getScreenField().getPrintOptions(); if ((iHtmlOptions & HtmlConstants.PRINT_TOOLBAR_BEFORE) != 0) this.printZmlToolbarData(out, iHtmlOptions); if ((iHtmlOptions & HtmlConstants.DONT_PRINT_SCREEN) == 0) this.getScreenField().printData(out, iHtmlOptions); // DO print screen if ((iHtmlOptions & HtmlConstants.PRINT_TOOLBAR_AFTER) != 0) this.printZmlToolbarData(out, iHtmlOptions); this.printHtmlEndForm(out); } /**
if (bPrintControl) sField.printData(out, iPrintOptions); if (!bIsBreak)
if (bPrintControl) sField.printData(out, iPrintOptions); if (!bIsBreak)