public void printXmlHeader(PrintWriter out, ResourceBundle reg)
    {
        try {
            String strTitle = this.getProperty("title");                // Menu page
            if ((strTitle == null) || (strTitle.length() == 0))
                strTitle = ((BasePanel)this.getScreenField()).getTitle();
            String strURL = this.getThisURL();
            if (strURL.length() > 0)
                if (strURL.charAt(0) == '?')
                    strURL = strURL.substring(1); // Always
            strURL = Utility.encodeXML(strURL);   // Convert < to &lt; , etc.
            String strTopMenu =
                " <top-menu>" +
                "   <menu-item>" +
                "       <description>Home</description>" +
                "       <link>" + HtmlConstants.SERVLET_LINK + "?menu=</link>" +
                "       <image>Home</image>" +
                "   </menu-item>" +
                "   <menu-item>" +
                "       <description>Programmer's technical Information</description>" +
                "       <link>" + '?' + DBParams.HELP + "=" + TechHelpScreen.class.getName() + "&amp;" + strURL + "</link>" +
                "       <image>Tech</image>" +
                "   </menu-item>" +
                "   <menu-item>" +
                "       <description>Run this program</description>" +
                "       <link>" + HtmlConstants.SERVLET_LINK + "?" + strURL + "</link>" +
                "       <image>Run</image>" +
                "   </menu-item>" +
                "   <menu-item>" +
                "       <description>Report a bug in this program</description>" +
                "       <link>" + HtmlConstants.SERVLET_LINK + "?record=" + MessagesModel.THICK_CLASS + "&amp;command=New&amp;url=" + URLEncoder.encode(strURL, DBConstants.URL_ENCODING) + "</link>" +
                "       <image>Bugs</image>" +
                "   </menu-item>" +
                "   <help-item>" +
                "       <menu-item>" +
                "           <description>Main Help Menu</description>" +
                "           <link>" + '?' + DBParams.HELP + "=" + "</link>" +
                "           <image>Help</image>" +
                "       </menu-item>" +
                "   </help-item>" +
                " </top-menu>";
            out.println(strTopMenu);
        } catch (java.io.UnsupportedEncodingException ex) {
            ex.printStackTrace();
        }
    }
public void printXmlHeader ( PrintWriter out , ResourceBundle reg ) { try { String strTitle = this . getProperty ( "title" ) ; if ( ( strTitle == null ) || ( strTitle . length ( ) == 0 ) ) strTitle = ( ( BasePanel ) this . getScreenField ( ) ) . getTitle ( ) ; String strURL = this . getThisURL ( ) ; if ( strURL . length ( ) > 0 ) if ( strURL . charAt ( 0 ) == '?' ) strURL = strURL . substring ( 1 ) ; strURL = Utility . encodeXML ( strURL ) ; String strTopMenu = " <top-menu>" + "   <menu-item>" + "       <description>Home</description>" + "       <link>" + HtmlConstants . SERVLET_LINK + "?menu=</link>" + "       <image>Home</image>" + "   </menu-item>" + "   <menu-item>" + "       <description>Programmer's technical Information</description>" + "       <link>" + '?' + DBParams . HELP + "=" + TechHelpScreen . class . getName ( ) + "&amp;" + strURL + "</link>" + "       <image>Tech</image>" + "   </menu-item>" + "   <menu-item>" + "       <description>Run this program</description>" + "       <link>" + HtmlConstants . SERVLET_LINK + "?" + strURL + "</link>" + "       <image>Run</image>" + "   </menu-item>" + "   <menu-item>" + "       <description>Report a bug in this program</description>" + "       <link>" + HtmlConstants . SERVLET_LINK + "?record=" + MessagesModel . THICK_CLASS + "&amp;command=New&amp;url=" + URLEncoder . encode ( strURL , DBConstants . URL_ENCODING ) + "</link>" + "       <image>Bugs</image>" + "   </menu-item>" + "   <help-item>" + "       <menu-item>" + "           <description>Main Help Menu</description>" + "           <link>" + '?' + DBParams . HELP + "=" + "</link>" + "           <image>Help</image>" + "       </menu-item>" + "   </help-item>" + " </top-menu>" ; out . println ( strTopMenu ) ; } catch ( java . io . UnsupportedEncodingException ex ) { ex . printStackTrace ( ) ; } }
Form Header.