jet.web.dhtml
Interface DHTMLToolkit

All Superinterfaces:
DHTMLConstant

public interface DHTMLToolkit
extends DHTMLConstant

DHTMLToolkit provides a set of method with which you can generates DHTML actions, elements, objects and components.


Field Summary
 
Fields inherited from interface jet.web.dhtml.DHTMLConstant
FLAG_DRILL, FLAG_EXPORT, FLAG_FILTER, FLAG_NAVIBAR, FLAG_NAVIGATE, FLAG_POPUP, FLAG_PRINT, FLAG_REFRESH, FLAG_RESET, FLAG_SAVE, FLAG_SEARCH, FLAG_SHOWMSTRPT, FLAG_SKIN, FLAG_SORT, FLAG_STYLE, FLAG_TOC, FLAG_TOOLBAR, FLAG_UNREDO, FLAG_USERBAR, FLAG_ZOOM, SCROLLAUTO, SCROLLNO, SCROLLYES
 
Method Summary
 java.lang.String getAddSortAct(java.lang.String uid)
          the command string of "add sort" action.
 java.lang.String getApplySortAct(java.lang.String uid)
          Gets the command string of the "apply sort" action.
 java.lang.StringBuffer getBody(int left, int top, int scroll, java.lang.String onload, java.lang.String onresize, java.lang.String userid)
          Gets the content of DHTML mainpage body.
 java.lang.StringBuffer getBody(java.lang.String id, int left, int top, int scroll, java.lang.String onload, java.lang.String onresize, java.lang.String userid)
          Gets the content of DHTML mainpage body.
 java.lang.StringBuffer getBody(java.lang.String id, int left, int top, java.lang.String bgcolor, int scroll, java.lang.String onload, java.lang.String onresize, java.lang.String userid)
          Gets the content of DHTML mainpage body.
 java.lang.StringBuffer getBody(java.lang.String id, int left, int top, java.lang.String bgcolor, int scroll, java.lang.String onload, java.lang.String onresize, java.lang.String onunload, java.lang.String userId)
          Gets the content of DHTML mainpage body.
 java.lang.String getChangeFilterColumnAct(java.lang.String uid, int row, int value)
          Gets the command string of the "change filter column" action.
 java.lang.String getChangeFilterLogicAct(java.lang.String uid, int row, int logic)
          Gets the command string of the "change logic operator" action.
 java.lang.String getChangeFilterOperatorAct(java.lang.String uid, int row, int value)
          Gets the command string of the "change filter operator" action.
 java.lang.String getChangeFilterValueAct(java.lang.String uid, int row, java.lang.String value)
          Gets the command string of the "change filter value" action.
 java.lang.String getChangeSortOrderAct(java.lang.String uid, int row, boolean bUp)
          the command string of "change sort item order" action
 java.lang.String getChangeStyleAct(java.lang.String uid, java.lang.String style)
          Gets the command string of the "change style" action.
 char[] getChars(java.lang.StringBuffer buf)
          Converts the content of the specified StringBuffer to a char array.
 java.lang.String getCloseDetailAct(java.lang.String uid)
          Gets the command string of the "close detail" action.
 java.lang.StringBuffer getConnectFrame(java.lang.String userId, java.lang.String indent, int count)
          Gets the content of DHTML connect frame.
 java.lang.StringBuffer getConnectFrame(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML connect frame.
 java.lang.String getDeleteFilterAct(java.lang.String uid, int row)
          Gets the command string of the "delete filter" action.
 java.lang.String getDeleteSortAct(java.lang.String uid, int row)
          the command string of the "delete sort" action.
 java.lang.String getExcelDialogAct(java.lang.String uid, boolean modal, java.lang.String title, int width, int height)
          Gets the command string of the "show Export to Excel Dialog" action.
 java.lang.StringBuffer getExec(java.lang.String userId, java.lang.String indent, java.lang.String[] function)
          Gets the executeable javascript code fragment based on the specified functions
 java.lang.String getExitAct(java.lang.String uid)
          Gets the command string of the exit action.
 java.lang.String getFilterAct(java.lang.String uid)
          Gets the command string of the "apply filter" action.
 java.lang.StringBuffer getFilterPanel(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Filter Panel.
 java.lang.String getFinishCreate(java.lang.String userId)
          Gets the command string of the "finish create report" action.
 java.lang.String getFirstPageAct(java.lang.String uid)
          Gets the command string of the "first page" action.
 java.lang.StringBuffer getFooter()
          Gets the content of DHTML footer.
 java.lang.StringBuffer getFooter(boolean pageLoaded)
          Gets the content of DHTML footer.
 java.lang.StringBuffer getHeader(java.lang.String title, java.lang.String encoding, java.lang.String[][] js, java.lang.String[][] css, java.lang.String userID)
          Gets the content of DHTML header.
 java.lang.StringBuffer getHeader(java.lang.String title, java.lang.String encoding, java.lang.String[] meta, java.lang.String[][] js, java.lang.String[][] css, java.lang.String userID)
          Gets the content of DHTML header.
 java.lang.String getLastPageAct(java.lang.String uid)
          Gets the command string of the "last page" action.
 java.lang.StringBuffer getMainPage(java.lang.String userId)
          Gets the content of DHTML mainpage.
 java.lang.StringBuffer getMainPageHeader(java.lang.String userId, java.lang.String indent, int count, int scroll)
          Gets the content of DHTML mainpage pageheader.
 java.lang.StringBuffer getMenu(java.lang.String userId, java.lang.String indent, int count)
          Gets the content of DHTML menu.
 java.lang.StringBuffer getMenu(java.lang.String userId, java.lang.String indent, int count, int top)
          Gets the content of DHTML menu.
 java.lang.StringBuffer getMenu(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Menu.
 java.lang.StringBuffer getNavibar(java.lang.String userId, java.lang.String indent, int count, int top)
          Gets the content of DHTML Toolbar.
 java.lang.StringBuffer getNavibar(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Navigation bar.
 java.lang.String getNewRptDlg(java.lang.String userId)
          Gets the command string of the "show dialog of create new report "
 java.lang.String getNextDetailAct(java.lang.String uid)
          Gets the command string of the "next detail" action.
 java.lang.String getNextPageAct(java.lang.String uid)
          Gets the command string of the "next page" action.
 java.lang.String getOneStepApplyFilterAct(java.lang.String uid)
          Gets the command string of the "one-step apply filter" action.
 java.lang.String getOneStepApplyFilterAct(java.lang.String uid, java.lang.String filters)
          Gets the command string of the "one-step apply filter" action.
 java.lang.String getOneStepApplySortAct(java.lang.String uid)
          Gets the command string of the "one-step apply sort" action.
 java.lang.String getOneStepApplySortAct(java.lang.String uid, java.lang.String sorts)
          Gets the command string of the "one-step apply sort" action.
 java.lang.String getOneStepCreateReportAct(java.lang.String userId)
          Gets the command string of the "one-step create report" action.
 java.lang.String getOneStepCreateReportAct(java.lang.String userId, java.lang.String uri)
          Gets the command string of the "one-step create report" action.
 java.lang.String getOneStepDrillAct(java.lang.String uid)
          Gets the command string of the "one-step apply drill down/up" action.
 java.lang.String getOneStepDrillAct(java.lang.String uid, java.lang.String drill)
          Gets the command string of the "one-step apply drill down/up" action.
 java.lang.String getOneStepDrillToAct(java.lang.String uid)
          Gets the command string of the "one-step apply drill to" action.
 java.lang.String getOneStepDrillToAct(java.lang.String uid, java.lang.String drillto)
          Gets the command string of the "one-step apply drill to" action.
 java.lang.String getOneStepPrintAct(java.lang.String uid)
          Gets the command string of the "one-step print" action.
 java.lang.String getOneStepPrintAct(java.lang.String uid, java.lang.String param)
          Gets the command string of the "one-step print" action.
 java.lang.String getOneStepSaveAct(java.lang.String uid, java.lang.String param)
          Gets the command string of the "one-step save" action.
 java.lang.String getOneStepSaveRstAct(java.lang.String uid)
          Gets the command string of the "one-step save result" action.
 java.lang.String getOneStepSearchAct(java.lang.String uid)
          Gets the command string of the "one-step search " action.
 java.lang.String getOneStepSearchAct(java.lang.String uid, java.lang.String search)
          Gets the command string of the "one-step search " action.
 java.lang.String getPageCloseBtn(java.lang.String uid, java.lang.String indent, int count, boolean popwin)
           
 java.lang.String getPageFilterBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageHelpBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageLockBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageMenuBtn(java.lang.String uid, java.lang.String indent, int count)
          customize mainpage components
 java.lang.String getPageNavBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPagePrintBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageRefreshBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageResetBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageSaveBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageSearchBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageSetupAct(java.lang.String uid)
          Gets the command string of the "page setup" action.
 java.lang.String getPageSetupAct(java.lang.String uid, java.lang.String param)
          Gets the command string of the "page setup" action.
 java.lang.String getPageSortBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageTocBtn(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPageZoomSelect(java.lang.String uid, java.lang.String indent, int count)
           
 java.lang.String getPrevDetailAct(java.lang.String uid)
          Gets the command string of the "previous detail" action.
 java.lang.String getPrevPageAct(java.lang.String uid)
          Gets the command string of the "previous page" action.
 java.lang.String getPrintDialogAct()
          Gets the command string of the "show Print Dialog" action.
 java.lang.StringBuffer getPrintObject(java.lang.String indent, int count)
          Gets the print object.
 java.lang.String getRedoAct(java.lang.String uid)
          Gets the command string of the "redo" action.
 java.lang.String getRefreshAct(java.lang.String uid)
          Gets the command string of the "refresh" action.
 java.lang.StringBuffer getReportBrowser(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Report Browser.
 java.lang.StringBuffer getReportBrowser(java.lang.String userid, java.lang.String indent, int count, int left, int top, int width, int height, boolean isDisplay, java.lang.String bgcolor)
          Gets the html which the DHTML's Report Browser
 java.lang.StringBuffer getReportTabbar(java.lang.String id, java.lang.String indent, int count, int left, int top, int width)
          Gets the content of DHTML Report tab bar.
 java.lang.StringBuffer getRequiredHTML(java.lang.String userId)
          Gets the Required HTML information,include js file,css file and some System Information.
 java.lang.String getResetAct(java.lang.String uid)
          Gets the command string of the "reset" action.
 java.lang.String getResetFilterAct(java.lang.String uid)
          Gets the command string of the "reset filter" action.
 java.lang.String getResetSortAct(java.lang.String uid)
          Gets the command string of the "reset sort" action.
 java.lang.String getSaveAsDialogAct(java.lang.String uid)
          Gets the command string of the "show Save as Dialog" action.
 java.lang.String getSaveRstAct(java.lang.String uid)
          Gets the command string of the "save result" action.
 java.lang.String getSaveRstDialogAct(java.lang.String uid)
          Gets the command string of the "show Save Result Dialog" action.
 java.lang.String getSaveRstParamAct(java.lang.String uid, int subOpID, java.lang.String paramName)
          Gets the command string of the "save result parameter" action.
 java.lang.String getSearchDialogAct(java.lang.String uid)
          Gets the command string of the "show Search Dialog" action.
 java.lang.String getSearchNextAct(java.lang.String uid)
          Gets the command string of the "search next" action.
 java.lang.String getSearchPrevAct(java.lang.String uid)
          Gets the command string of the "search previous" action.
 java.lang.String getShowFilterPanelAct(java.lang.String uid)
          Gets the command string of the "Show Filter Panel" action.
 java.lang.String getShowFilterPanelAct(java.lang.String uid, boolean bShow)
          Gets the command string of the "Show Filter Panel" action.
 java.lang.String getShowNavibarAct(java.lang.String uid)
          Gets the command string of the "show navigation bar" action.
 java.lang.String getShowNavibarAct(java.lang.String uid, boolean bShow)
          Gets the command string of the "show navigation bar" action.
 java.lang.String getShowSortPanelAct(java.lang.String uid)
          Gets the command string of the "Show Sort Panel" action.
 java.lang.String getShowSortPanelAct(java.lang.String uid, boolean bShow)
          Gets the command string of the "Show Sort Panel" action.
 java.lang.String getShowTocAct(java.lang.String uid)
          Gets the command string of the "show TOC" action.
 java.lang.String getShowTocAct(java.lang.String uid, boolean bShow)
          Gets the command string of the "show TOC" action.
 java.lang.String getShowToolbarAct(java.lang.String uid)
          Gets the command string of the "show toolbar" action.
 java.lang.String getShowToolbarAct(java.lang.String uid, boolean bShow)
          Gets the command string of the "show toolbar" action.
 java.lang.String getSortOrderAct(java.lang.String uid, int row)
          Gets the command string of the "change sort order" action.
 java.lang.String getSortOrderAct(java.lang.String uid, int row, boolean bAscending)
          Gets the command string of the "change sort order" action.
 java.lang.StringBuffer getSortPanel(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Sort Panel.
 java.lang.String getStep1CreateReportAct(java.lang.String userId, java.lang.String uri)
          Gets the command string of the "step 1 create report" action.
 java.lang.String getStep2CreateReportAct(java.lang.String userId, java.lang.String uri)
          Gets the command string of the "step 2 create report" action.
 java.lang.String getStep3CreateReportAct(java.lang.String userId, java.lang.String uri)
          Gets the command string of the "step 3 create report" action.
 java.lang.String getStep4CreateReportAct(java.lang.String userId, java.lang.String uri)
          Gets the command string of the "step 4 create report" action.
 java.lang.String getSwitchFilterValueAct(java.lang.String uid, int row)
          Gets the command string of the "switch input component" action.
 java.lang.StringBuffer getTOCBrowser(java.lang.String userId, int left, int top, int width, int height, boolean isDisplay, java.lang.String bgColor)
          Gets the content of DHTML Table Of Content.
 java.lang.StringBuffer getTOCBrowser(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Table Of Content.
 java.lang.StringBuffer getTOCBrowser(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height, java.lang.String id, java.lang.String fid, boolean isDisplay, java.lang.String bgColor)
          Gets the content of DHTML Table Of Content.
 java.lang.StringBuffer getTOCTree(java.lang.String userId, java.lang.String indent, int count)
           
 java.lang.StringBuffer getToolbar(java.lang.String userId, java.lang.String indent, int count, int top)
          Gets the content of DHTML Toolbar.
 java.lang.StringBuffer getToolbar(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML Toolbar.
 java.lang.StringBuffer getToolbar(java.lang.String userId, java.lang.String indent, int count, int top, java.lang.String toolbarId)
          Gets the content of DHTML Toolbar.
 java.lang.String getUndoAct(java.lang.String uid)
          Gets the command string of the "undo" action.
 java.lang.StringBuffer getUserbar(java.lang.String userId, java.lang.String indent, int count, int top)
          Gets the content of DHTML user information panel.
 java.lang.StringBuffer getUserbar(java.lang.String userId, java.lang.String indent, int count, int left, int top, int width, int height)
          Gets the content of DHTML user information panel.
 java.lang.StringBuffer getVSplitbar(java.lang.String indent, int count, int top, int height)
          Gets the content of DHTML Split bar.
 java.lang.String getZoomAct(java.lang.String uid, int percent)
          Gets the command string of the "zoom" action.
 void indent(java.lang.StringBuffer buffer, java.lang.String indent, int count)
          Indents the content of specified StringBuffer.
 java.lang.String setCurrentReportAct(java.lang.String uid, int index)
          Gets the command string of the "set current report" action.
 java.lang.String setCurrentReportAct(java.lang.String uid, java.lang.String reportName)
          Gets the command string of the "set current report" action.
 void setLayoutFunction(java.lang.String jsName, java.lang.String funName)
          Sets the javascript file name and function name that are used to format the UI layout.
 void setProperty(java.lang.String userId, java.lang.String objectId, java.util.Hashtable properties)
           
 void setProperty(java.lang.String userId, java.lang.String objectId, java.lang.String propertyKey, double propertyValue)
           
 void setProperty(java.lang.String userId, java.lang.String objectId, java.lang.String propertyKey, float propertyValue)
           
 void setProperty(java.lang.String userId, java.lang.String objectId, java.lang.String propertyKey, int propertyValue)
           
 void setProperty(java.lang.String userId, java.lang.String objectId, java.lang.String propertyKey, java.lang.String propertyValue)
           
 void toolbarButton(java.lang.String userid, java.lang.String indent, int count, int left, int top, java.lang.String onmouseover, java.lang.String onmouseout, boolean enable, java.lang.String onclick, java.lang.String onmousedown, java.lang.String onmouseup, java.lang.String id, java.lang.String src, java.lang.String title, java.lang.StringBuffer buffer)
          Generates the content of toolbar button to the specified StringBuffer.
 

Method Detail

getMainPage

public java.lang.StringBuffer getMainPage(java.lang.String userId)
Gets the content of DHTML mainpage.

Parameters:
userId - the user session id
Returns:
the content of DHTML mainpage

getMainPageHeader

public java.lang.StringBuffer getMainPageHeader(java.lang.String userId,
                                                java.lang.String indent,
                                                int count,
                                                int scroll)
Gets the content of DHTML mainpage pageheader.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
scroll - the scroll option, can be SCROLLAUTO, SCROLLYES, or SCROLLNO
Returns:
the content of DHTML mainpage pageheader

getBody

public java.lang.StringBuffer getBody(int left,
                                      int top,
                                      int scroll,
                                      java.lang.String onload,
                                      java.lang.String onresize,
                                      java.lang.String userid)
Gets the content of DHTML mainpage body.

Parameters:
left - the left margin of mainpage body, measured in pixels
top - the top margin of mainpage body, measured in pixels
scroll - the scroll option, can be SCROLLAUTO, SCROLLYES, or SCROLLNO
onload - specifies the method names of the javasript that you want to invoke when the page body is being loaded.
onresize - specifies the method names of the javasript that you want to invoke when the browser is being resized.
userid - specifies the user's id
Returns:
the content of DHTML mainpage body

getBody

public java.lang.StringBuffer getBody(java.lang.String id,
                                      int left,
                                      int top,
                                      int scroll,
                                      java.lang.String onload,
                                      java.lang.String onresize,
                                      java.lang.String userid)
Gets the content of DHTML mainpage body.

Parameters:
id - the body element id
left - the left margin of mainpage body, measured in pixels
top - the top margin of mainpage body, measured in pixels
scroll - the scroll option, can be SCROLLAUTO, SCROLLYES, or SCROLLNO
onload - specifies the method names of the javasript that you want to invoke when page body is being loaded.
onresize - specifies the method names of the javasript that you want to invoke when the browser is being resized.
Returns:
the content of DHTML mainpage body

getBody

public java.lang.StringBuffer getBody(java.lang.String id,
                                      int left,
                                      int top,
                                      java.lang.String bgcolor,
                                      int scroll,
                                      java.lang.String onload,
                                      java.lang.String onresize,
                                      java.lang.String userid)
Gets the content of DHTML mainpage body.

Parameters:
id - the body element id
bgcolor - the background color of body
left - the left margin of mainpage body, measured in pixels
top - the top margin of mainpage body, measured in pixels
scroll - the scroll option, can be SCROLLAUTO, SCROLLYES, or SCROLLNO
onload - specifies the method names of the javasript that you want to invoke when page body is being loaded.
onresize - specifies the method names of the javasript that you want to invoke when the browser is being resized.
Returns:
the content of DHTML mainpage body

getBody

public java.lang.StringBuffer getBody(java.lang.String id,
                                      int left,
                                      int top,
                                      java.lang.String bgcolor,
                                      int scroll,
                                      java.lang.String onload,
                                      java.lang.String onresize,
                                      java.lang.String onunload,
                                      java.lang.String userId)
Gets the content of DHTML mainpage body.

Parameters:
id - the body element id
bgcolor - the background color of body
left - the left margin of mainpage body, measured in pixels
top - the top margin of mainpage body, measured in pixels
scroll - the scroll option, can be SCROLLAUTO, SCROLLYES, or SCROLLNO
onload - specifies the method names of the javasript that you want to invoke when the page body is being loaded.
onresize - specifies the method names of the javasript that you want to invoke when the browser is being resized.
onunload - specifies the method names of the javasript that you want to invoke when the page body is being unloaded.
userId - specifies the user id. If the user id is provided, information about this user will be generated, such as URI for sending request to server, some scrips to initialize the page, and so on. If null is provided, no user information will be generated.
Returns:
the content of DHTML mainpage body

getConnectFrame

public java.lang.StringBuffer getConnectFrame(java.lang.String userId,
                                              java.lang.String indent,
                                              int count)
Gets the content of DHTML connect frame.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
Returns:
the content of DHTML connect frame

getConnectFrame

public java.lang.StringBuffer getConnectFrame(java.lang.String userId,
                                              java.lang.String indent,
                                              int count,
                                              int left,
                                              int top,
                                              int width,
                                              int height)
Gets the content of DHTML connect frame.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of connect frame, measured in pixels
top - the top position of connect frame, measured in pixels
width - the width of connect frame, measured in pixels
height - the height of connect frame, measured in pixels
Returns:
the content of DHTML connect frame

getPrintObject

public java.lang.StringBuffer getPrintObject(java.lang.String indent,
                                             int count)
Gets the print object.

Parameters:
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
Returns:
the content of print object

getUserbar

public java.lang.StringBuffer getUserbar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int top)
Gets the content of DHTML user information panel.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of user information panel, measured in pixels
Returns:
the content of user information panel

getUserbar

public java.lang.StringBuffer getUserbar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int left,
                                         int top,
                                         int width,
                                         int height)
Gets the content of DHTML user information panel.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of user information panel, measured in pixels
top - the top position of user information panel, measured in pixels
width - the width of user information panel, measured in pixels
height - the height of user information panel, measured in pixels
Returns:
the content of user information panel

getMenu

public java.lang.StringBuffer getMenu(java.lang.String userId,
                                      java.lang.String indent,
                                      int count,
                                      int top)
Gets the content of DHTML menu.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of menu, measured in pixels
Returns:
the content of menu

getMenu

public java.lang.StringBuffer getMenu(java.lang.String userId,
                                      java.lang.String indent,
                                      int count,
                                      int left,
                                      int top,
                                      int width,
                                      int height)
Gets the content of DHTML Menu.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Menu, measured in pixels
top - the top position of Menu, measured in pixels
width - the width of Menu, measured in pixels
height - the height of Menu, measured in pixels
Returns:
the content of Menu

getMenu

public java.lang.StringBuffer getMenu(java.lang.String userId,
                                      java.lang.String indent,
                                      int count)
Gets the content of DHTML menu.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
Returns:
the content of menu

getVSplitbar

public java.lang.StringBuffer getVSplitbar(java.lang.String indent,
                                           int count,
                                           int top,
                                           int height)
Gets the content of DHTML Split bar.

Parameters:
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of Menu, measured in pixels
height - the height of Menu, measured in pixels
Returns:
the content of Split bar

getReportTabbar

public java.lang.StringBuffer getReportTabbar(java.lang.String id,
                                              java.lang.String indent,
                                              int count,
                                              int left,
                                              int top,
                                              int width)
Gets the content of DHTML Report tab bar.

Parameters:
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Menu, measured in pixels
top - the top position of Menu, measured in pixels
width - the width of Menu, measured in pixels
Returns:
the content of Report tab bar

getToolbar

public java.lang.StringBuffer getToolbar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int top)
Gets the content of DHTML Toolbar.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of Toolbar, measured in pixels
Returns:
the content of DHTML Toolbar

getToolbar

public java.lang.StringBuffer getToolbar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int left,
                                         int top,
                                         int width,
                                         int height)
Gets the content of DHTML Toolbar.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Toolbar, measured in pixels
top - the top position of Toolbar, measured in pixels
width - the width of Toolbar, measured in pixels
height - the height of Toolbar, measured in pixels
Returns:
the content of DHTML Toolbar

getToolbar

public java.lang.StringBuffer getToolbar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int top,
                                         java.lang.String toolbarId)
Gets the content of DHTML Toolbar.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of Toolbar, measured in pixels
toolbarId - the ID of Toolbar
Returns:
the content of DHTML Toolbar

getNavibar

public java.lang.StringBuffer getNavibar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int top)
Gets the content of DHTML Toolbar.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
top - the top position of Toolbar, measured in pixels
Returns:
the content of DHTML Toolbar

getNavibar

public java.lang.StringBuffer getNavibar(java.lang.String userId,
                                         java.lang.String indent,
                                         int count,
                                         int left,
                                         int top,
                                         int width,
                                         int height)
Gets the content of DHTML Navigation bar.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Navigation bar, measured in pixels
top - the top position of Navigation bar, measured in pixels
width - the width of Navigation bar, measured in pixels
height - the height of Navigation bar, measured in pixels
Returns:
the content of DHTML Navigation bar

getTOCBrowser

public java.lang.StringBuffer getTOCBrowser(java.lang.String userId,
                                            java.lang.String indent,
                                            int count,
                                            int left,
                                            int top,
                                            int width,
                                            int height)
Gets the content of DHTML Table Of Content.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of table of content, measured in pixels
top - the top position of Table Of Content, measured in pixels
width - the width of Table Of Content, measured in pixels
height - the height of Table Of Content, measured in pixels
Returns:
the content of DHTML Table Of Content

getTOCTree

public java.lang.StringBuffer getTOCTree(java.lang.String userId,
                                         java.lang.String indent,
                                         int count)
Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
Returns:
the content of DHTML DIV Table Of Content

getReportBrowser

public java.lang.StringBuffer getReportBrowser(java.lang.String userId,
                                               java.lang.String indent,
                                               int count,
                                               int left,
                                               int top,
                                               int width,
                                               int height)
Gets the content of DHTML Report Browser.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Report Browser, measured in pixels
top - the top position of Report Browser, measured in pixels
width - the width of Report Browser, measured in pixels
height - the height of Report Browser, measured in pixels
Returns:
the content of DHTML Report Browser

getFilterPanel

public java.lang.StringBuffer getFilterPanel(java.lang.String userId,
                                             java.lang.String indent,
                                             int count,
                                             int left,
                                             int top,
                                             int width,
                                             int height)
Gets the content of DHTML Filter Panel.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Filter Panel, measured in pixels
top - the top position of Filter Panel, measured in pixels
width - the width of Filter Panel, measured in pixels
height - the height of Filter Panel, measured in pixels
Returns:
the content of DHTML Filter Panel

getSortPanel

public java.lang.StringBuffer getSortPanel(java.lang.String userId,
                                           java.lang.String indent,
                                           int count,
                                           int left,
                                           int top,
                                           int width,
                                           int height)
Gets the content of DHTML Sort Panel.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of Sort Panel, measured in pixels
top - the top position of Sort Panel, measured in pixels
width - the width of Sort Panel, measured in pixels
height - the height of Sort Panel, measured in pixels
Returns:
the content of DHTML Sort Panel

getHeader

public java.lang.StringBuffer getHeader(java.lang.String title,
                                        java.lang.String encoding,
                                        java.lang.String[][] js,
                                        java.lang.String[][] css,
                                        java.lang.String userID)
Gets the content of DHTML header.

Parameters:
title - the page title
encoding - the page encoding
js - the javascripts included in this page, in which the js names are stored in the 1st element of the 2nd dimension, and the js IDs are stored in the 2nd element of the 2nd dimension, like {{name, id},{name, id},...}
css - the CSS files included in this page, in which the CSS names are stored in the 1st element of the 2nd dimension, and the CSS IDs are stored in the 2nd element of the 2nd dimension, like {{name, id},{name, id},...}
Returns:
the content of DHTML header

getHeader

public java.lang.StringBuffer getHeader(java.lang.String title,
                                        java.lang.String encoding,
                                        java.lang.String[] meta,
                                        java.lang.String[][] js,
                                        java.lang.String[][] css,
                                        java.lang.String userID)
Gets the content of DHTML header.

Parameters:
title - the page title
encoding - the page encoding
meta - the page meta elements
js - the javascripts included in this page, in which the js names are stored in the 1st element of the 2nd dimension, and the js IDs are stored in the 2nd element of the 2nd dimension, like {{name, id},{name, id},...}
css - the CSS files included in this page, in which the CSS names are stored in the 1st element of the 2nd dimension, and the CSS IDs are stored in the 2nd element of the 2nd dimension, like {{name, id},{name, id},...}
Returns:
the content of DHTML header

getFooter

public java.lang.StringBuffer getFooter()
Gets the content of DHTML footer.

Returns:
the content of DHTML footer

getFooter

public java.lang.StringBuffer getFooter(boolean pageLoaded)
Gets the content of DHTML footer.

Parameters:
pageLoaded - specifies whether to generate the page loaded flag
Returns:
the content of DHTML footer

getExec

public java.lang.StringBuffer getExec(java.lang.String userId,
                                      java.lang.String indent,
                                      java.lang.String[] function)
Gets the executeable javascript code fragment based on the specified functions

Parameters:
userId - the user session id
indent - the indent that is used to format output content
Returns:
the executeable javascript code fragment based on the specified functions

toolbarButton

public void toolbarButton(java.lang.String userid,
                          java.lang.String indent,
                          int count,
                          int left,
                          int top,
                          java.lang.String onmouseover,
                          java.lang.String onmouseout,
                          boolean enable,
                          java.lang.String onclick,
                          java.lang.String onmousedown,
                          java.lang.String onmouseup,
                          java.lang.String id,
                          java.lang.String src,
                          java.lang.String title,
                          java.lang.StringBuffer buffer)
Generates the content of toolbar button to the specified StringBuffer.

Parameters:
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of toolbar button, measured in pixels
top - the top position of toolbar button, measured in pixels
onmouseover - specifies the method names of the javasript that you want to invoke when the mouse is hanging over the button.
onmouseout - specifies the method names of the javasript that you want to invoke when the mouse is moving out of the button.
enable - specifies the button status, enabled or disabled
onclick - specifies the method names of the javasript that you want to invoke when the button is being clicked.
onmousedown - specifies the method names of the javasript that you want to invoke when the button is being pressed down.
onmouseup - specifies the method names of the javasript that you want to invoke when the button is being released.
id - the button element id
src - the button image file name
title - the button tooltip

getExcelDialogAct

public java.lang.String getExcelDialogAct(java.lang.String uid,
                                          boolean modal,
                                          java.lang.String title,
                                          int width,
                                          int height)
Gets the command string of the "show Export to Excel Dialog" action.

Parameters:
uid - the user session id
Returns:
the command string of the "show Export to Excel Dialog" action

getPrintDialogAct

public java.lang.String getPrintDialogAct()
Gets the command string of the "show Print Dialog" action.

Returns:
the command string of the "show Print Dialog" action

getSearchDialogAct

public java.lang.String getSearchDialogAct(java.lang.String uid)
Gets the command string of the "show Search Dialog" action.

Parameters:
uid - the user session id
Returns:
the command string of the "show Search Dialog" action

getSaveRstDialogAct

public java.lang.String getSaveRstDialogAct(java.lang.String uid)
Gets the command string of the "show Save Result Dialog" action.

Parameters:
uid - the user session id
Returns:
the command string of the "show Save Result Dialog" action

getSaveAsDialogAct

public java.lang.String getSaveAsDialogAct(java.lang.String uid)
Gets the command string of the "show Save as Dialog" action.

Parameters:
uid - the user session id
Returns:
the command string of the "show Save save Dialog" action

getExitAct

public java.lang.String getExitAct(java.lang.String uid)
Gets the command string of the exit action.

Parameters:
uid - the user session id
Returns:
the command string of the exit action

indent

public void indent(java.lang.StringBuffer buffer,
                   java.lang.String indent,
                   int count)
Indents the content of specified StringBuffer.

Parameters:
buffer - the StringBuffer
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
Returns:
a char array

getChars

public char[] getChars(java.lang.StringBuffer buf)
Converts the content of the specified StringBuffer to a char array.

Parameters:
buf - the StringBuffer
Returns:
a char array

setLayoutFunction

public void setLayoutFunction(java.lang.String jsName,
                              java.lang.String funName)
Sets the javascript file name and function name that are used to format the UI layout.

Parameters:
jsName - the javascript file name
funName - the function name

getApplySortAct

public java.lang.String getApplySortAct(java.lang.String uid)
Gets the command string of the "apply sort" action.

Parameters:
uid - the user session id.
Returns:
the command string of 'apply sort' action.

getResetSortAct

public java.lang.String getResetSortAct(java.lang.String uid)
Gets the command string of the "reset sort" action.

Parameters:
uid - the user session id.
Returns:
the command string of 'reset sort' action.

getDeleteSortAct

public java.lang.String getDeleteSortAct(java.lang.String uid,
                                         int row)
the command string of the "delete sort" action.

Parameters:
uid - the user session id.
row - the row index will be removed.
Returns:
the command string of 'delete sort' action.

getAddSortAct

public java.lang.String getAddSortAct(java.lang.String uid)
the command string of "add sort" action.

Parameters:
uid - the user session id.
Returns:
the command string of 'add sort' action.

getChangeSortOrderAct

public java.lang.String getChangeSortOrderAct(java.lang.String uid,
                                              int row,
                                              boolean bUp)
the command string of "change sort item order" action

Parameters:
uid - the user session id.
row - the row index will be up/down
bUp - is move up or down.
Returns:
the command string of 'change sort item order' action.

getSortOrderAct

public java.lang.String getSortOrderAct(java.lang.String uid,
                                        int row,
                                        boolean bAscending)
Gets the command string of the "change sort order" action.

Parameters:
uid - the user session id.
row - the row index will be change order
bAscending - true?ascend:descend
Returns:
the command string of the "change sort order" action.

getOneStepApplySortAct

public java.lang.String getOneStepApplySortAct(java.lang.String uid,
                                               java.lang.String sorts)
Gets the command string of the "one-step apply sort" action. String sorts format should be like this: col0="column_name0"&asc0=true&col1="column_name1"&asc1=false&colN="column_nameN"&ascN=true

Parameters:
uid - the user session id.
sorts - uri string with user define.
Returns:
the command string of "one-step apply sort" action.

getFilterAct

public java.lang.String getFilterAct(java.lang.String uid)
Gets the command string of the "apply filter" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "apply filter" action.

getResetFilterAct

public java.lang.String getResetFilterAct(java.lang.String uid)
Gets the command string of the "reset filter" action.

Parameters:
uid - the user session id. return the command string of the "reset filter" action.

getDeleteFilterAct

public java.lang.String getDeleteFilterAct(java.lang.String uid,
                                           int row)
Gets the command string of the "delete filter" action.

Parameters:
uid - the user session id.
row - the row index will be delete.
Returns:
the command string of the "delete filter" action.

getChangeFilterLogicAct

public java.lang.String getChangeFilterLogicAct(java.lang.String uid,
                                                int row,
                                                int logic)
Gets the command string of the "change logic operator" action.

Parameters:
uid - the user session id.
row - the row index will be changed
logic - the filter's logic condition, "and" or "or" ...
Returns:
the command string of the "change logic operator" action.

getChangeFilterColumnAct

public java.lang.String getChangeFilterColumnAct(java.lang.String uid,
                                                 int row,
                                                 int value)
Gets the command string of the "change filter column" action.

Parameters:
uid - the user session id.
row - the row index will be changed
value - the column index.
Returns:
the command string of the "change filter column" action.

getChangeFilterOperatorAct

public java.lang.String getChangeFilterOperatorAct(java.lang.String uid,
                                                   int row,
                                                   int value)
Gets the command string of the "change filter operator" action.

Parameters:
uid - the user session id.
row - the row index will be changed.
value - the operator's index.
Returns:
the command string of the "change filter operator" action.

getChangeFilterValueAct

public java.lang.String getChangeFilterValueAct(java.lang.String uid,
                                                int row,
                                                java.lang.String value)
Gets the command string of the "change filter value" action.

Parameters:
uid - the user session id.
row - the row index will be changed.
value - the value.
Returns:
the command string of the "change filter value" action.

getSwitchFilterValueAct

public java.lang.String getSwitchFilterValueAct(java.lang.String uid,
                                                int row)
Gets the command string of the "switch input component" action.

Parameters:
uid - the user session id.
row - the row index will be switch.
Returns:
the command string of the "switch input component" action.

getOneStepApplyFilterAct

public java.lang.String getOneStepApplyFilterAct(java.lang.String uid,
                                                 java.lang.String filters)
Gets the command string of the "one-step apply filter" action. String filters format should be like this: col0="column_name0"&operator0=3&value0="xxx"&logic0=0&col1="column_name1"&operator1=2&value1="ddd"&logic1=1

Parameters:
uid - the user session id.
filters - the uri string be user defined.
Returns:
the command string of the "one-step apply filter" action.

getOneStepDrillToAct

public java.lang.String getOneStepDrillToAct(java.lang.String uid,
                                             java.lang.String drillto)
Gets the command string of the "one-step apply drill to" action. String drillto format should be like this: group="group_name"&value="group_value"

Parameters:
uid - the user session id.
drillto - the uri string with drillto.
Returns:
the command string of the "one-step apply drill to" action.

getOneStepDrillAct

public java.lang.String getOneStepDrillAct(java.lang.String uid,
                                           java.lang.String drill)
Gets the command string of the "one-step apply drill down/up" action. String drill format should be like this: group="group_name"&value="group_value"&up=true

Parameters:
uid - the user session id.
drill - the uri string with drill down or up
Returns:
the command string of the "one-step apply drill down/up" action.

getOneStepSearchAct

public java.lang.String getOneStepSearchAct(java.lang.String uid,
                                            java.lang.String search)
Gets the command string of the "one-step search " action. String search format should be like this: (1) search column value content=false&col="column_name"&value="xxx"&matchcase=true&wholeword=true&up=true (2) search content content=true&value="xxx"&matchcase=true&wholeword=true&up=false

Parameters:
uid - the user session id.
search - the uri string with search.
Returns:
the command string of the "one-step search " action.

getOneStepPrintAct

public java.lang.String getOneStepPrintAct(java.lang.String uid,
                                           java.lang.String param)
Gets the command string of the "one-step print" action. String search format should be like this: pagerange=-1&copies=2&from=0&to=1 pagerange: 0 means "All", 1 means "current", 2 means "fromĦ­toĦ­"

Parameters:
uid - the user session id.
param - the uri string with print config.
Returns:
the command string of the "one-step print" action.

getOneStepSaveAct

public java.lang.String getOneStepSaveAct(java.lang.String uid,
                                          java.lang.String param)
Gets the command string of the "one-step save" action.

Parameters:
uid - the user session id.
param - the uri string with save config.
Returns:
the command string of the "one-step save" action.

getOneStepSaveRstAct

public java.lang.String getOneStepSaveRstAct(java.lang.String uid)
Gets the command string of the "one-step save result" action.

Parameters:
uid - the user session id. For use the API, user should joint an uri in his javaScripr function. The uri can be: name1 + "=" + val1 + "&" + name2 + "=" + val2 + & + .... The name and val in uri can be: name val DHTMLConstant.RSTFORMATTYPE(for set save result format type) DHTMLConstant.PDF, DHTMLConstant.EXCEL, DHTMLConstant.RTF, DHTMLConstant.HTML, DHTMLConstant.TEXT, DHTMLConstant.PS, DHTMLConstant.XML. DHTMLConstant.SAVEINLOCAL(for set Save in Local) "true" or "false" save PDF format: DHTMLConstant.COMP(for set Compress) "true" or "false" DHTMLConstant.PERC(for compress Percent) integer DHTMLConstant.NOMARGIN(for set No Margin) "true" or "false" DHTMLConstant.ENCRYPT(for set Encrypt) "true" or "false" DHTMLConstant.PW(for set encrypt Password) String DHTMLConstant.TOCPDF(for set display TOC) "true" or "false" DHTMLConstant.DRILLPDF(for set Drill down) "true" or "false" DHTMLConstant.SIMULATEDMOD(for set Simulated mode) DHTMLConstant.SIMULATEDMODE, DHTMLConstant.STANDARDMODE save Excel format: DHTMLConstant.WARP(for set Word Wrap) 0:Keep Existing, 1:All Disabled, 2:All Enabled DHTMLConstant.ISEXCEL2K(for set Excel2000) "true" or "false" DHTMLConstant.SHAPE(for set Has Shape) "true" or "false" save RTF format: DHTMLConstant.NOMARGIN(for set No Margin) "true" or "false" save HTML format: DHTMLConstant.ISSINGLEFILE(for set Single File) "true" or "false" DHTMLConstant.NOMARGIN(for set No Margin) "true" or "false" DHTMLConstant.NOHYPERLINK(for set No Hyperlink) "true" or "false" DHTMLConstant.NOPAGENUM(for set No Page Number) "true" or "false" DHTMLConstant.RELATIVEFS(for set Relative Font Size) "true" or "false" DHTMLConstant.USETABLE(for set Use Table) "true" or "false" DHTMLConstant.APPLETCHART(for set Applet Chart) "true" or "false" DHTMLConstant.RL(for set Resolution) integer DHTMLConstant.BS(for set Browser type) DHTMLConstant.IE, DHTMLConstant.NETSCAPE save Text format: DHTMLConstant.COMP(for set Compress) "true" or "false" DHTMLConstant.STANDARDDF(for set Standard Data Format) "true" or "false" DHTMLConstant.ISQUOTEMARK(for set Quote Mark) "true" or "false" DHTMLConstant.HF(for set has Header and Footer) "true" or "false" DHTMLConstant.TEXTDELIMITER(for set delimiter) character DHTMLConstant.HD(for set Horizontal Density integer DHTMLConstant.VD(for set vertical Density) integer save PostScript format: DHTMLConstant.NOMARGIN(for set No Margin) "true" or "false" save XML format: DHTMLConstant.SFILENAME(for set Schema File Name) String DHTMLConstant.DATA(for set only data) "true" or "false"
Returns:
the command string of the "one-step save result" action.

getSaveRstParamAct

public java.lang.String getSaveRstParamAct(java.lang.String uid,
                                           int subOpID,
                                           java.lang.String paramName)
Gets the command string of the "save result parameter" action.

Parameters:
uid - the user session id.
subOpID - the subOperator ID in save result to other format type config.
paramName - the parameter name in save result to other format type config. user should joint a value in his javaScript function for the API subOpID paramName value DHTMLConstant.RSTTYPE(set save rst DHTMLConstant.VALUE DHTMLConstant.PDF, DHTMLConstant.EXCEL format type) DHTMLConstant.RTF, DHTMLConstant.HTML, DHTMLConstant.TEXT, DHTMLConstant.PS, DHTMLConstant.XML. DHTMLConstant.SAVELOCAL(save in local DHTMLConstant.OBJTYPE "true" or "false" or not) PDF format subOpID: DHTMLConstant.COMPRESS DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.MARGIN DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.PDFENCRYPT DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.PASSWORD DHTMLConstant.VALUE String DHTMLConstant.PDFTOC DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.PDFDRILLDOWN DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.PERCENT DHTMLConstant.VALUE integer DHTMLConstant.SIMULATED DHTMLConstant.VALUE DHTMLConstant.SIMULATEDMODE, DHTMLConstant.STANDARDMODE Excel format subOpID: DHTMLConstant.WORDWARP DHTMLConstant.VALUE 0:Keep Existing, 1:All Disabled, 2:All Enabled DHTMLConstant.IS2K DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.HASSHAPE DHTMLConstant.OBJTYPE "true" or "false" RTF format subOpID: DHTMLConstant.MARGIN DHTMLConstant.OBJTYPE "true" or "false" HTML format subOpID: DHTMLConstant.SINGLEFILE DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.PAGENUMBER DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.MARGIN DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.HYPERLINK DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.RELATIVEFONT DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.USINGTABLE DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.APPLET DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.RESOLUTION(for html) DHTMLConstant.VALUE integer DHTMLConstant.BROWSER DHTMLConstant.VALUE DHTMLConstant.IE, DHTMLConstant.NETSCAPE Text format subOpID: DHTMLConstant.COMPRESS DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.STANDARD DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.QUOTEMARK DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.HEADERFOOTER DHTMLConstant.OBJTYPE "true" or "false" DHTMLConstant.DELIMITER DHTMLConstant.VALUE character DHTMLConstant.HDENSITY DHTMLConstant.VALUE integer DHTMLConstant.VDENSITY DHTMLConstant.VALUE integer PostScript format subOpID: DHTMLConstant.MARGIN DHTMLConstant.OBJTYPE "true" or "false" XML format subOpID: DHTMLConstant.SCHEMAFILENAME DHTMLConstant.VALUE String DHTMLConstant.ONLYDATA DHTMLConstant.OBJTYPE "true" or "false"
Returns:
the command string of the "save result parameter" action.

getSaveRstAct

public java.lang.String getSaveRstAct(java.lang.String uid)
Gets the command string of the "save result" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "save result" action.

getZoomAct

public java.lang.String getZoomAct(java.lang.String uid,
                                   int percent)
Gets the command string of the "zoom" action.

Parameters:
uid - the user session id.
percent - the percent will be zoom.
Returns:
the command string of the "zoom" action.

getUndoAct

public java.lang.String getUndoAct(java.lang.String uid)
Gets the command string of the "undo" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "undo" action.

getRedoAct

public java.lang.String getRedoAct(java.lang.String uid)
Gets the command string of the "redo" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "redo" action.

getPageSetupAct

public java.lang.String getPageSetupAct(java.lang.String uid,
                                        java.lang.String param)
Gets the command string of the "page setup" action.

Parameters:
uid - the user session id.
param -
Returns:
the command string of the "page setup" action.

getSearchNextAct

public java.lang.String getSearchNextAct(java.lang.String uid)
Gets the command string of the "search next" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "search next" action.

getSearchPrevAct

public java.lang.String getSearchPrevAct(java.lang.String uid)
Gets the command string of the "search previous" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "search previous" action.

getResetAct

public java.lang.String getResetAct(java.lang.String uid)
Gets the command string of the "reset" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "reset" action.

getRefreshAct

public java.lang.String getRefreshAct(java.lang.String uid)
Gets the command string of the "refresh" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "refresh" action.

getShowTocAct

public java.lang.String getShowTocAct(java.lang.String uid,
                                      boolean bShow)
Gets the command string of the "show TOC" action.

Parameters:
uid - the user session id.
bShow - true?show:hide
Returns:
the command string of the "show TOC" action.

getShowToolbarAct

public java.lang.String getShowToolbarAct(java.lang.String uid,
                                          boolean bShow)
Gets the command string of the "show toolbar" action.

Parameters:
uid - the user session id.
bShow - true?show:hide
Returns:
the command string of the "show toolbar" action.

getShowNavibarAct

public java.lang.String getShowNavibarAct(java.lang.String uid,
                                          boolean bShow)
Gets the command string of the "show navigation bar" action.

Parameters:
uid - the user session id.
bShow - true?show:hide
Returns:
the command string of the "show navigation bar" action.

getNextPageAct

public java.lang.String getNextPageAct(java.lang.String uid)
Gets the command string of the "next page" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "next page" action.

getPrevPageAct

public java.lang.String getPrevPageAct(java.lang.String uid)
Gets the command string of the "previous page" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "previous page" action.

getFirstPageAct

public java.lang.String getFirstPageAct(java.lang.String uid)
Gets the command string of the "first page" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "first page" action.

getLastPageAct

public java.lang.String getLastPageAct(java.lang.String uid)
Gets the command string of the "last page" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "last page" action.

getShowSortPanelAct

public java.lang.String getShowSortPanelAct(java.lang.String uid,
                                            boolean bShow)
Gets the command string of the "Show Sort Panel" action.

Parameters:
uid - the user session id.
Returns:
command string of the "Show Sort Panel" action.

getShowFilterPanelAct

public java.lang.String getShowFilterPanelAct(java.lang.String uid,
                                              boolean bShow)
Gets the command string of the "Show Filter Panel" action.

Parameters:
uid - the user session id.
Returns:
command string of the "Show Filter Panel" action.

getChangeStyleAct

public java.lang.String getChangeStyleAct(java.lang.String uid,
                                          java.lang.String style)
Gets the command string of the "change style" action.

Parameters:
uid - the user session id.
style - the style name will be changed.
Returns:
the command string of the "change style" action.

getCloseDetailAct

public java.lang.String getCloseDetailAct(java.lang.String uid)
Gets the command string of the "close detail" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "close detail" action.

getPrevDetailAct

public java.lang.String getPrevDetailAct(java.lang.String uid)
Gets the command string of the "previous detail" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "previous detail" action.

getNextDetailAct

public java.lang.String getNextDetailAct(java.lang.String uid)
Gets the command string of the "next detail" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "next detail" action.

setCurrentReportAct

public java.lang.String setCurrentReportAct(java.lang.String uid,
                                            int index)
Gets the command string of the "set current report" action.

Parameters:
uid - the user session id.
index - the report index
Returns:
the command string of the "set current report" action.

setCurrentReportAct

public java.lang.String setCurrentReportAct(java.lang.String uid,
                                            java.lang.String reportName)
Gets the command string of the "set current report" action.

Parameters:
uid - the user session id.
reportName - the report name
Returns:
the command string of the "set current report" action.

getTOCBrowser

public java.lang.StringBuffer getTOCBrowser(java.lang.String userId,
                                            java.lang.String indent,
                                            int count,
                                            int left,
                                            int top,
                                            int width,
                                            int height,
                                            java.lang.String id,
                                            java.lang.String fid,
                                            boolean isDisplay,
                                            java.lang.String bgColor)
Gets the content of DHTML Table Of Content.

Parameters:
userId - the user session id
indent - the indent that is used to format output content
count - the distance between start position and the leftmost column, measured in Tab numbers
left - the left position of table of content, measured in pixels
top - the top position of Table Of Content, measured in pixels
width - the width of Table Of Content, measured in pixels
height - the height of Table Of Content, measured in pixels
id -
fid -
isDisplay -
bgColor -
Returns:
the content of DHTML Table Of Content

getTOCBrowser

public java.lang.StringBuffer getTOCBrowser(java.lang.String userId,
                                            int left,
                                            int top,
                                            int width,
                                            int height,
                                            boolean isDisplay,
                                            java.lang.String bgColor)
Gets the content of DHTML Table Of Content.

Parameters:
userId - the user session id
left - the left position of table of content, measured in pixels
top - the top position of Table Of Content, measured in pixels
width - the width of Table Of Content, measured in pixels
height - the height of Table Of Content, measured in pixels
isDisplay -
bgColor -
Returns:
the content of DHTML Table Of Content

getReportBrowser

public java.lang.StringBuffer getReportBrowser(java.lang.String userid,
                                               java.lang.String indent,
                                               int count,
                                               int left,
                                               int top,
                                               int width,
                                               int height,
                                               boolean isDisplay,
                                               java.lang.String bgcolor)
Gets the html which the DHTML's Report Browser

Parameters:
indent -
count -
left - the left position of table of content, measured in pixels
top - the top position of Table Of Content, measured in pixels
width - the width of Table Of Content, measured in pixels
height - the height of Table Of Content, measured in pixels
isDisplay - whether the iframe is visible.
Returns:
the content of DHTML through open a new windows.

getPageMenuBtn

public java.lang.String getPageMenuBtn(java.lang.String uid,
                                       java.lang.String indent,
                                       int count)
customize mainpage components


getPageTocBtn

public java.lang.String getPageTocBtn(java.lang.String uid,
                                      java.lang.String indent,
                                      int count)

getPageZoomSelect

public java.lang.String getPageZoomSelect(java.lang.String uid,
                                          java.lang.String indent,
                                          int count)

getPageNavBtn

public java.lang.String getPageNavBtn(java.lang.String uid,
                                      java.lang.String indent,
                                      int count)

getPageSearchBtn

public java.lang.String getPageSearchBtn(java.lang.String uid,
                                         java.lang.String indent,
                                         int count)

getPageSortBtn

public java.lang.String getPageSortBtn(java.lang.String uid,
                                       java.lang.String indent,
                                       int count)

getPageFilterBtn

public java.lang.String getPageFilterBtn(java.lang.String uid,
                                         java.lang.String indent,
                                         int count)

getPageSaveBtn

public java.lang.String getPageSaveBtn(java.lang.String uid,
                                       java.lang.String indent,
                                       int count)

getPageResetBtn

public java.lang.String getPageResetBtn(java.lang.String uid,
                                        java.lang.String indent,
                                        int count)

getPagePrintBtn

public java.lang.String getPagePrintBtn(java.lang.String uid,
                                        java.lang.String indent,
                                        int count)

getPageRefreshBtn

public java.lang.String getPageRefreshBtn(java.lang.String uid,
                                          java.lang.String indent,
                                          int count)

getPageLockBtn

public java.lang.String getPageLockBtn(java.lang.String uid,
                                       java.lang.String indent,
                                       int count)

getPageHelpBtn

public java.lang.String getPageHelpBtn(java.lang.String uid,
                                       java.lang.String indent,
                                       int count)

getPageCloseBtn

public java.lang.String getPageCloseBtn(java.lang.String uid,
                                        java.lang.String indent,
                                        int count,
                                        boolean popwin)

setProperty

public void setProperty(java.lang.String userId,
                        java.lang.String objectId,
                        java.lang.String propertyKey,
                        java.lang.String propertyValue)
                 throws java.lang.Exception
java.lang.Exception

setProperty

public void setProperty(java.lang.String userId,
                        java.lang.String objectId,
                        java.lang.String propertyKey,
                        int propertyValue)
                 throws java.lang.Exception
java.lang.Exception

setProperty

public void setProperty(java.lang.String userId,
                        java.lang.String objectId,
                        java.lang.String propertyKey,
                        float propertyValue)
                 throws java.lang.Exception
java.lang.Exception

setProperty

public void setProperty(java.lang.String userId,
                        java.lang.String objectId,
                        java.lang.String propertyKey,
                        double propertyValue)
                 throws java.lang.Exception
java.lang.Exception

setProperty

public void setProperty(java.lang.String userId,
                        java.lang.String objectId,
                        java.util.Hashtable properties)
                 throws java.lang.Exception
java.lang.Exception

getStep1CreateReportAct

public java.lang.String getStep1CreateReportAct(java.lang.String userId,
                                                java.lang.String uri)
Gets the command string of the "step 1 create report" action. set report name and which template will be used. String uri format should be like this: tpl=standard&title=Report Title&name=report1

Parameters:
userId - the user session id.
Returns:
the command string of the "step 1" action.

getStep2CreateReportAct

public java.lang.String getStep2CreateReportAct(java.lang.String userId,
                                                java.lang.String uri)
Gets the command string of the "step 2 create report" action. set datasource, query and set display fields String uri format should be like this: ds=&query=AddressBook&fldsize=2&fld0=FirstName&fld1=LastName

Parameters:
userId - the user session id.
Returns:
the command string of the "step 2" action.

getStep3CreateReportAct

public java.lang.String getStep3CreateReportAct(java.lang.String userId,
                                                java.lang.String uri)
Gets the command string of the "step 3 create report" action. set group info. String uri format should be like this: grpsize=1&grpfld0=Addresses_Country&grpsort0=0 &grpfun0=for each year sort: ascend 0; descend 1; no sort 2

Parameters:
userId - the user session id.
Returns:
the command string of the "step 3" action.

getStep4CreateReportAct

public java.lang.String getStep4CreateReportAct(java.lang.String userId,
                                                java.lang.String uri)
Gets the command string of the "step 4 create report" action. set summary info. String uri format should be like this: sumsize=1&sumfld0=Addresses_Country&sumfun0=Count &sumlab0=Count_Addresses_Country

Parameters:
userId - the user session id.
Returns:
the command string of the "step 4" action.

getOneStepCreateReportAct

public java.lang.String getOneStepCreateReportAct(java.lang.String userId,
                                                  java.lang.String uri)
Gets the command string of the "one-step create report" action. String uri format should be like this: &tpl=standard&title=Report Title&name=report1 &ds=&query=AddressBook&fldsize=2&fld0=FirstName&fld1=LastName &grpsize=1&grpfld0=Addresses_Country&grpsort0=2 &grpfun0=for each year sumsize=1&sumfld0=Addresses_Country&sumfun0=Count &sumlab0=Count_Addresses_Country sort: ascend 0; descend 1; no sort 2

Parameters:
userId - the user session id.
Returns:
the command string of the "one-step create" action.

getFinishCreate

public java.lang.String getFinishCreate(java.lang.String userId)
Gets the command string of the "finish create report" action.

Parameters:
userId - the user session id.
Returns:
the command string of the "finish create report" action.

getNewRptDlg

public java.lang.String getNewRptDlg(java.lang.String userId)
Gets the command string of the "show dialog of create new report "

Parameters:
userId - the user session id.
Returns:
the command string of the "show dialog of create new report "

getSortOrderAct

public java.lang.String getSortOrderAct(java.lang.String uid,
                                        int row)
Gets the command string of the "change sort order" action. return string like : op=19&row=2&val= the val should is "true" or "false".

Parameters:
uid - the user session id.
row - the row index will be change order
Returns:
the command string of the "change sort order" action.

getOneStepApplySortAct

public java.lang.String getOneStepApplySortAct(java.lang.String uid)
Gets the command string of the "one-step apply sort" action. the format of user self define sorts should be like this: col0="column_name0"&asc0=true&col1="column_name1"&asc1=false&colN="column_nameN"&ascN=true

Parameters:
uid - the user session id.
Returns:
the command string of "one-step apply sort" action.

getOneStepApplyFilterAct

public java.lang.String getOneStepApplyFilterAct(java.lang.String uid)
Gets the command string of the "one-step apply filter" action. String filter format of user self define should be like this: col0="column_name0"&operator0=3&value0="xxx"&logic0=0&col1="column_name1"&operator1=2&value1="ddd"&logic1=1

Parameters:
uid - the user session id.
Returns:
the command string of the "one-step apply filter" action.

getOneStepDrillToAct

public java.lang.String getOneStepDrillToAct(java.lang.String uid)
Gets the command string of the "one-step apply drill to" action. String drillto format should be like this: group="group_name"&value="group_value"

Parameters:
uid - the user session id.
Returns:
the command string of the "one-step apply drill to" action.

getOneStepDrillAct

public java.lang.String getOneStepDrillAct(java.lang.String uid)
Gets the command string of the "one-step apply drill down/up" action. String drill format should be like this: group="group_name"&value="group_value"&up=true

Parameters:
uid - the user session id.
Returns:
the command string of the "one-step apply drill down/up" action.

getOneStepSearchAct

public java.lang.String getOneStepSearchAct(java.lang.String uid)
Gets the command string of the "one-step search " action. String search format should be like this: (1) search column value content=false&col="column_name"&value="xxx"&matchcase=true&wholeword=true&up=true (2) search content content=true&value="xxx"&matchcase=true&wholeword=true&up=false

Parameters:
uid - the user session id.
Returns:
the command string of the "one-step search " action.

getOneStepPrintAct

public java.lang.String getOneStepPrintAct(java.lang.String uid)
Gets the command string of the "one-step print" action. String search format should be like this: pagerange=-1&copies=2&from=0&to=1 pagerange: 0 means "All", 1 means "current", 2 means "fromĦ­toĦ­"

Parameters:
uid - the user session id.
Returns:
the command string of the "one-step print" action.

getPageSetupAct

public java.lang.String getPageSetupAct(java.lang.String uid)
Gets the command string of the "page setup" action.

Parameters:
uid - the user session id.
Returns:
the command string of the "page setup" action.

getShowTocAct

public java.lang.String getShowTocAct(java.lang.String uid)
Gets the command string of the "show TOC" action. use self define tocbrowser's value "true" is show and "false" is hide

Parameters:
uid - the user session id.
Returns:
the command string of the "show TOC" action.

getShowToolbarAct

public java.lang.String getShowToolbarAct(java.lang.String uid)
Gets the command string of the "show toolbar" action. use self define toolbar's value "true" is show and "false" is hide.

Parameters:
uid - the user session id.
Returns:
the command string of the "show toolbar" action.

getShowNavibarAct

public java.lang.String getShowNavibarAct(java.lang.String uid)
Gets the command string of the "show navigation bar" action. use self define navibar's value "true" is show and "false" is hide.

Parameters:
uid - the user session id.
Returns:
the command string of the "show navigation bar" action.

getShowSortPanelAct

public java.lang.String getShowSortPanelAct(java.lang.String uid)
Gets the command string of the "Show Sort Panel" action. use self define info_sort's value "true" is show and "false" is hide.

Parameters:
uid - the user session id.
Returns:
command string of the "Show Sort Panel" action.

getShowFilterPanelAct

public java.lang.String getShowFilterPanelAct(java.lang.String uid)
Gets the command string of the "Show Filter Panel" action. use self define info_filter's value "true" is show and "false" is hide.

Parameters:
uid - the user session id.
Returns:
command string of the "Show Filter Panel" action.

getOneStepCreateReportAct

public java.lang.String getOneStepCreateReportAct(java.lang.String userId)
Gets the command string of the "one-step create report" action. the format of use self define uri should be like this: &tpl=standard&title=Report Title&name=report1 &ds=&query=AddressBook&fldsize=2&fld0=FirstName&fld1=LastName &grpsize=1&grpfld0=Addresses_Country&grpsort0=2 &grpfun0=for each year &sumsize=1&sumfld0=Addresses_Country&sumfun0=Count &sumlab0=Count_Addresses_Country sort: ascend 0; descend 1; no sort 2

Parameters:
userId - the user session id.
Returns:
the command string of the "one-step create" action.

getRequiredHTML

public java.lang.StringBuffer getRequiredHTML(java.lang.String userId)
Gets the Required HTML information,include js file,css file and some System Information.

Parameters:
userId - the user session id.
Returns:
the string of the "the Required HTML information".