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;
}
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;
}
Aggregations