package cn.cerc.ui.page;

import cn.cerc.mis.core.IForm;
import cn.cerc.ui.core.JspFile;
import cn.cerc.ui.parts.UIFooter;
import cn.cerc.ui.parts.UIHeader;
import cn.cerc.ui.parts.UIToolbar;

public class JspPage extends JspFile {
    // 头部：广告+菜单
    private UIHeader header;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIToolbar toolBar;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIFooter footer;
    
    public JspPage() {
        super();
    }

    public JspPage(IForm form) {
        super(form);
    }

    @Deprecated
    public JspPage(IForm form, String jspFile) {
        super(form);
        this.setJspFile(jspFile);
    }

    public UIHeader getHeader() {
        if (header == null) {
            header = new UIHeader(this);
        }
        return header;
    }

    @Deprecated
    public UIFooter getFooter() {
        if(footer == null) {
            footer = new UIFooter(this);
            this.add(footer.getId(), footer);
        }
        return footer;
    }

    public UIToolbar getToolBar() {
        if (toolBar == null) {
            toolBar = new UIToolbar(this);
            this.add(toolBar.getId(), toolBar);
        }
        return toolBar;
    }

}

@@ -646,32 +646,48 @@
 spFile);%0A    %7D%0A%0A
+    @Deprecated%0A
     public UIHea
@@ -1013,32 +1013,48 @@
  footer;%0A    %7D%0A%0A
+    @Deprecated%0A
     public UIToo

Update JspPage.java