Search in sources :

Example 1 with ToolBar

use of org.gsweb.components.ui.ToolBar in project bamboobsc by billchen198318.

the class ToolBarTag method handler.

private ToolBar handler() {
    ToolBar toolBar = new ToolBar();
    toolBar.setId(this.id);
    toolBar.setCreateNewEnable(this.createNewEnable);
    toolBar.setSaveEnabel(this.saveEnabel);
    toolBar.setRefreshEnable(this.refreshEnable);
    toolBar.setCancelEnable(this.cancelEnable);
    toolBar.setExportEnable(this.exportEnable);
    toolBar.setImportEnable(this.importEnable);
    toolBar.setCreateNewJsMethod(this.createNewJsMethod);
    toolBar.setSaveJsMethod(this.saveJsMethod);
    toolBar.setRefreshJsMethod(this.refreshJsMethod);
    toolBar.setCancelJsMethod(this.cancelJsMethod);
    toolBar.setExportJsMethod(this.exportJsMethod);
    toolBar.setImportJsMethod(this.importJsMethod);
    return toolBar;
}
Also used : ToolBar(org.gsweb.components.ui.ToolBar)

Example 2 with ToolBar

use of org.gsweb.components.ui.ToolBar in project bamboobsc by billchen198318.

the class ToolBarTag method doEndTag.

@Override
public int doEndTag() throws JspException {
    ToolBar toolBar = this.handler();
    try {
        this.pageContext.getOut().write(toolBar.getHtml());
    } catch (IOException e) {
        e.printStackTrace();
    } catch (Exception e) {
        e.printStackTrace();
    }
    toolBar = null;
    return 0;
}
Also used : ToolBar(org.gsweb.components.ui.ToolBar) IOException(java.io.IOException) JspException(javax.servlet.jsp.JspException) IOException(java.io.IOException)

Aggregations

ToolBar (org.gsweb.components.ui.ToolBar)2 IOException (java.io.IOException)1 JspException (javax.servlet.jsp.JspException)1