Display the start form in input format.
@param out The out stream.
@param iPrintOptions The view specific attributes.
483557
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.MAIN_SCREEN) == HtmlConstants.MAIN_SCREEN)
        {
        }
        else if ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) == HtmlConstants.DETAIL_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else if ((iPrintOptions & HtmlConstants.HEADING_SCREEN) == HtmlConstants.HEADING_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else
            out.println("<table border=\"0\">");    // First time
    }
871408
public int printStartGridScreenData(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.HTML_ADD_DESC_COLUMN) != 0)
            out.println("<td></td>"); // No description needed for a table
        if ((iPrintOptions & HtmlConstants.HTML_IN_TABLE_ROW) != 0)
            out.println("<td>");
        iPrintOptions = iPrintOptions & (~HtmlConstants.HTML_IN_TABLE_ROW);     // sub-controls not in a table row
        iPrintOptions = iPrintOptions & (~HtmlConstants.HTML_ADD_DESC_COLUMN);  // Sub-controls - don't add desc.
        return iPrintOptions;
    }
216937
public void printControlEndForm(PrintWriter out, int iPrintOptions)
    {
        out.println(Utility.endTag(XMLTags.CONTROLS));
    }
1042656
public void printStartRecordData(Rec record, PrintWriter out, int iPrintOptions)
    {
        this.getScreenFieldView().printStartRecordData(record, out, iPrintOptions);
    }
1135384
public void printControlStartForm(PrintWriter out, int iPrintOptions)
    {
        if (((iPrintOptions & HtmlConstants.HEADING_SCREEN) == HtmlConstants.HEADING_SCREEN)
                || ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
                || ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) == HtmlConstants.DETAIL_SCREEN))
            return; // Don't need on nested forms
        super.printControlStartForm(out, iPrintOptions);
        String strAction = "post";
        BasePanel modelScreen = (BasePanel)this.getScreenField();

//?            strAction = "postxml";
        out.println(Utility.startTag("hidden-params"));
        this.addHiddenParams(out, this.getHiddenParams());
        out.println(Utility.endTag("hidden-params"));
        out.println("<xform id=\"form1\">");
        out.println("   <submission");
        out.println(" id=\"submit1\"");
        out.println(" method=\"" + strAction + "\"");
        out.println(" localfile=\"temp.xml\"");
        out.println(" action=\"" + modelScreen.getServletPath(null) + "\" />");
//?        out.println("  <model href=\"form.xsd\">");
//?        out.println("  <!-- The model is currently ignored -->");
//?        out.println("  </model>");
//?        out.println("  <instance id=\"instance1\" xmlns=\"\">");
    }
418943
public void printEndRecordData(Rec record, PrintWriter out, int iPrintOptions)
    {
        String strRecordName = record.getTableNames(false);
        if ((strRecordName == null) || (strRecordName.length() == 0))
        	strRecordName = "Record";
        out.println(Utility.endTag(strRecordName));
    }
650995
protected void printResults(PrintStream out) {
        log.debug("printResults()");
        StringBuilder line = new StringBuilder();
        out.println(line);
        out.println();
    }
203486
public void printScreenFieldData(ScreenComponent sField, PrintWriter out, int iPrintOptions)
    {
        ((ScreenField)sField).printData(out, iPrintOptions);
    }
776572
public void printScreenFieldData(ScreenField sField, PrintWriter out, int iPrintOptions)
    {
        this.getScreenFieldView().printScreenFieldData(sField, out, iPrintOptions);
    }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
119638
public void printTo(Writer out, ReadableInstant instant) throws IOException {
        printTo((Appendable) out, instant);
    }
466899
public void printScreen(BaseScreen screen, PrintWriter out)
    {
        try {
            ResourceBundle reg = ((BaseApplication)this.getTask().getApplication()).getResources(HtmlConstants.XML_RESOURCE, false);
            String string = XmlUtilities.XML_LEAD_LINE;
            out.println(string);
        
            String strStylesheetPath = screen.getScreenFieldView().getStylesheetPath();
            if (strStylesheetPath != null)
            {
                string = "<?xml-stylesheet type=\"text/xsl\" href=\"" + strStylesheetPath + "\" ?>";
                out.println(string);
            }
            out.println(Utility.startTag(XMLTags.CONTENT_AREA));
        
            screen.printScreen(out, reg);
        
            out.println(Utility.endTag(XMLTags.CONTENT_AREA));
        } catch (DBException ex) {
            ex.printStackTrace();
        }
    }
1349132
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        String strRecordName = "norecord";
        Record record = this.getMainRecord();
        if (record != null)
            strRecordName = record.getTableNames(false);
        if ((iPrintOptions & HtmlConstants.MAIN_HEADING_SCREEN) == HtmlConstants.MAIN_HEADING_SCREEN)
        {
            out.println(Utility.startTag(XMLTags.HEADING));
            out.println(Utility.startTag(XMLTags.FILE));
            out.println(Utility.startTag(strRecordName));
        }
        if ((iPrintOptions & HtmlConstants.MAIN_FOOTING_SCREEN) == HtmlConstants.MAIN_FOOTING_SCREEN)
        {
            out.println(Utility.startTag(XMLTags.FOOTING));
            out.println(Utility.startTag(XMLTags.FILE));
            out.println(Utility.startTag(strRecordName));
        }
        if ((iPrintOptions & HtmlConstants.REPORT_SCREEN) != HtmlConstants.REPORT_SCREEN)
            out.println(Utility.startTag(XMLTags.DATA));    // If not a report
    }
270784
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        boolean bFieldsFound = false;
        String strFieldName = this.getScreenField().getSFieldParam();
        String strFieldData = this.getScreenField().getSFieldValue(true, false);
        if ((this.getScreenField().getConverter() != null)
            && (!(this.getScreenField().getConverter().getField() instanceof XmlField))
            && (!(this.getScreenField().getConverter().getField() instanceof HtmlField))
            && (!(this.getScreenField().getConverter().getField() instanceof XMLPropertiesField)))
                strFieldData = Utility.encodeXML(strFieldData);
        out.println("    " + Utility.startTag(strFieldName) + strFieldData + Utility.endTag(strFieldName));
        return bFieldsFound;
    }
212092
public void printControlStartForm(PrintWriter out, int iPrintOptions)
    {
      //?        Record record = ((ReportBreakScreen)this.getScreenField()).getMainRecord();
      //?        String strFile = record.getTableNames(false);
          if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
              out.println(Utility.startTag(XMLTags.FOOTING));
          else
              out.println(Utility.startTag(XMLTags.HEADING));
          out.println(Utility.startTag(XMLTags.CONTROLS));
    }
357832
public void printEndRecordData(Rec record, PrintWriter out, int iPrintOptions)
    {
        this.getScreenFieldView().printEndRecordData(record, out, iPrintOptions);
    }
222167
public void writeTo(OutputStream out) throws IOException, RepositoryException {
        mStoredLayout.writeTo(out);

        Cursor <StoredLayoutProperty> cursor = mLayoutFactory.mPropertyStorage
            .query("layoutID = ?")
            .with(mStoredLayout.getLayoutID())
            .fetch();

        try {
            while (cursor.hasNext()) {
                StoredLayoutProperty prop = cursor.next();
                // Write 1 to indicate that this was not the last property.
                out.write(1);
                prop.writeTo(out);
            }
        } finally {
            cursor.close();
        }

        out.write(0);
    }