Class HTMLTool

  • Direct Known Subclasses:
    HTMLPage

    public class HTMLTool
    extends java.lang.Object

    HTML page common constant and static methods

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HTMLTool.Area
      Area data structure to be used with area manipulation APIs
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLTool()
      Constructor
      Don't instantiate this class, it only provides static variables and methods
    • Method Summary

      Modifier and Type Method Description
      static java.lang.String[] aceJS()
      Ace® editor additional JS scripts
      static java.lang.String[] ajaxJS()
      Ajax JS scripts
      static java.lang.String[] ajaxJS​(boolean bundle)
      Ajax JS scripts
      static java.lang.String[] applicationCSS​(Grant grant)
      Application specific CSS stylesheets
      static java.lang.String[] applicationJS​(Grant grant)
      Application specific JS script
      static java.lang.String audio​(java.lang.String formName, java.lang.String name, java.lang.String[] mimes, java.lang.String[] urls, int width, int height)
      HTML5 audio tag
      static java.lang.String booleanInputAsCheckBox​(java.lang.String formName, java.lang.String name, boolean value, int tab)
      Boolean input (Check box style)
      static java.lang.String booleanInputAsRadioButtons​(java.lang.String formName, java.lang.String name, java.lang.String yes, java.lang.String no, boolean valueSelected, boolean value, int tab)
      Boolean input (radio button style)
      static java.lang.String booleanInputAsSelectBox​(java.lang.String formName, java.lang.String name, java.lang.String yes, java.lang.String no, boolean valueSelected, boolean value, int tab)
      Boolean input (select box style)
      static java.lang.String[] bootboxJS()
      BootBox® JS scripts
      static java.lang.String[] bootstrapCSS()
      Bootstrap® default CSS stylesheets
      static java.lang.String[] bootstrapCSS​(java.lang.String theme)
      Bootstrap® CSS stylesheets
      static java.lang.String[] bootstrapCSS​(java.lang.String theme, boolean datetimepicker)
      Bootstrap® CSS stylesheets
      static java.lang.String[] bootstrapJS()
      Bootstrap® JS scripts
      static java.lang.String[] bootstrapJS​(boolean datetimepicker, java.lang.String lang)
      Bootstrap JS scripts
      static java.lang.String border​(java.lang.String content)
      Standard border without tab
      static java.lang.String border​(java.lang.String content, java.lang.String title, java.lang.String cls)
      Standard panel with tab
      static java.lang.String border​(java.lang.String content, java.lang.String icon, java.lang.String title, java.lang.String cls)
      Standard panel with tab
      static java.lang.String button​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String url, java.lang.String cls, int tab)
      Submit button (type = button)
      static java.lang.String buttonJS​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String js, java.lang.String cls, int tab)
      Button (type = button) with custom JavaScript on the onclick event
      static java.lang.String calculatorJS()
      Calculator JS script
      static java.lang.String calculatorPopup​(Grant g, java.lang.String formName, java.lang.String name)
      Calculator popup
      static java.lang.String calculatorPopup​(java.lang.String formName, java.lang.String name)
      Deprecated. 
      static java.lang.String calendarCSS()
      Calendar CSS script
      static java.lang.String calendarJS()
      Calendar JS script
      static java.lang.String calendarPopup​(Grant g, java.lang.String formName, java.lang.String name)
      Deprecated. 
      static java.lang.String[] chartJS()
      Chart.js JS scripts
      static java.lang.String checkBoxInput​(java.lang.String formName, java.lang.String name, boolean checked, java.lang.String value, int tab)
      Simple checkbox.
      static java.lang.String[] cleditorCSS()
      Deprecated.
      CLEditor is not available anymore
      static java.lang.String[] cleditorJS()
      Deprecated.
      CLEditor is not available anymore
      static java.lang.String closeBorder()
      Closes standard panel with tab
      static java.lang.String closeExtraZone()
      Closes HTML extra zone
      static java.lang.String closeForm​(java.lang.String formName)
      Closes form
      static java.lang.String closeForm​(java.lang.String formName, java.lang.String defaultInputName, java.lang.String defaultButtonName)
      Closes form with optional default focus on a designated input field and optional default button activated on pressing the return key
      static java.lang.String closeHierarchyArea()
      Closes hierarcy area.
      static java.lang.String closePage()
      Closes HTML page
      static java.lang.String closeSimpleArea()
      Closes (non)collapsible area panel.
      static java.lang.String colorpickerJS()
      Color picker JS script
      static java.lang.String colorPopup​(Grant g, java.lang.String formName, java.lang.String name)
      Color chooser popup
      static java.lang.String colorPopup​(java.lang.String formName, java.lang.String name)
      Deprecated. 
      static java.lang.String compatCSS​(java.lang.String theme)
      Legacy UI compatibility UI CSS stylesheet
      static java.lang.String compatIcon​(Grant g, java.lang.String icon, java.lang.String dfault)
      Legacy: exclude fontawesome, glyphicon...
      static java.lang.String completionJS()
      Completion JS script
      void coreJS()
      Deprecated.
      Core now needs grant parameter
      static java.lang.String coreJS​(Grant g)
      Core JS script
      static java.lang.String cssBlock​(java.lang.String css)
      Encloses CSS styles into start/end tags
      static java.lang.String cssInclude​(java.lang.String cssFile)
      Includes CSS file
      static java.lang.String cssInclude​(java.lang.String cssFile, java.lang.String encoding)
      Includes CSS file in specified encoding
      static java.lang.String cssIncludes​(java.lang.String[] cssFiles)
      Includes CSS files
      static java.lang.String cssIncludes​(java.lang.String[] cssFiles, java.lang.String encoding)
      Includes CSS files in specified encoding
      static java.lang.String cssMinify​(java.lang.String css)
      Minifies CSS stylesheet
      static java.lang.String dateInput​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String popupName, java.lang.String value, boolean readOnly, java.lang.String cls, int tab)
      Date input.
      static java.lang.String dateInput​(java.lang.String formName, java.lang.String name, java.lang.String popupName, java.lang.String value, boolean readOnly, java.lang.String cls, int tab)
      Deprecated. 
      static java.lang.String datetimeInput​(java.lang.String formName, java.lang.String name, java.lang.String popupName, java.lang.String value, boolean readOnly, java.lang.String cls, int tab)
      Deprecated.
      Date time input.
      static java.lang.String datetimeInput​(java.lang.String formName, java.lang.String name, java.lang.String popupName, java.lang.String value, boolean readOnly, java.lang.String cls, int tab, boolean time)
      Deprecated. 
      static java.lang.String docCSS()
      Documentation CSS stylesheet
      static java.lang.String domainRelaxing​(Grant g)  
      static java.lang.String dropdownButton​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String hover, java.lang.String src, java.lang.String onclick, java.lang.String onblur, java.lang.String cls, int tab, boolean rightBtn, java.lang.String menuId, java.lang.String menuContent, boolean topMenu, boolean leftMenu)
      Display a drop down button with a popup menu
      static java.lang.String dropdownButton​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String hover, java.lang.String src, java.lang.String onclick, java.lang.String onblur, java.lang.String cls, int tab, boolean rightBtn, java.lang.String menuId, java.util.List<java.lang.String> items, java.lang.String clsMenu, boolean topMenu, boolean leftMenu)
      Display a drop down button with a items menu
      static java.lang.String dropdownItem​(java.lang.String popupId, java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String title, java.lang.String onclick, java.lang.String cls, int tab, boolean closeOnClick)
      Dropdown item
      static java.lang.String dropdownItem​(java.lang.String popupId, java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String title, java.lang.String extra, java.lang.String onclick, java.lang.String cls, int tab, boolean closeOnClick)
      Dropdown item
      static java.lang.String error​(java.lang.String msg, Grant g)
      Formatted error message
      static java.lang.String expandableArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String shortContent, java.lang.String shortCls, java.lang.String longContent, java.lang.String longCls, java.lang.String expandJS, java.lang.String collapseJS, int delay, int tab)
      Opens expandable area.
      static java.lang.String expandableArea​(java.lang.String formName, java.lang.String name, java.lang.String shortContent, java.lang.String shortCls, java.lang.String longContent, java.lang.String longCls, java.lang.String expandJS, java.lang.String collapseJS, int delay, int tab)
      Deprecated. 
      static java.lang.String extractHref​(java.lang.String link)
      Extract href part of an <a/> link
      static java.lang.String extractTarget​(java.lang.String link)
      Extract target part of an <a/> link
      static java.lang.String extractURL​(java.lang.String url, java.lang.String addParams)
      Extract an URL from a string
      static java.lang.String extraZone​(java.lang.String icon, java.lang.String title, java.lang.String content)
      HTML extra zone
      static java.lang.String fatal​(java.lang.String msg, Grant g)
      Formatted fatal error message
      static java.lang.String fileInput​(java.lang.String formName, java.lang.String name, int size, int tab)
      File input.
      static java.lang.String fileInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String cls, int tab)
      File input.
      static java.lang.String filterString​(ObjectDB obj, java.lang.String sep)
      Displayable object filter
      static java.lang.String flashObject​(java.lang.String formName, java.lang.String name, java.lang.String file, java.lang.String vars, int width, int height, boolean allowFullScreen)
      Flash object
      static java.lang.String[] fontawsomeJS()
      Font Awsome® icons JS
      static java.lang.String[] fullcalendarCSS()
      Fullcalendar® CSS stylesheets
      static java.lang.String[] fullcalendarJS()
      Fullcalendar JS scripts (in default language = english)
      static java.lang.String[] fullcalendarJS​(java.lang.String lang)
      Fullcalendar JS scripts (in specified language)
      static java.lang.String fullCalendarLang​(java.lang.String lang)
      Fullcalendar JS language code from Simplicite(R) language code
      static java.lang.String getAboutURL()
      About page URL
      static java.lang.String getAbsoluteURL​(java.lang.String url)
      Get absolute URL from potentially relative URL
      static java.lang.String getAbsoluteURL​(java.lang.String url, boolean pub)
      Return absolute URL from URL
      static java.lang.String getAgendaURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String agendaName, java.lang.String disp, boolean useCurrentFilter)
      Base agenda page URL for specified object and agenda
      static java.lang.String getAgendaURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String agendaName, java.lang.String disp, java.lang.String params)
      Base agenda page URL for specified object and agenda
      static java.lang.String getAPIRoot()
      Get API root
      static java.lang.String getCalendarURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String dateField, java.lang.String params)
      Base calendar page URL for specified object
      static java.lang.String getChangePasswordURL()
      Base change password page URL
      static java.lang.String getChartURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base chart image URL for specified object
      static java.lang.String getConnectFormURL()
      Public main page's connect form URL
      static java.lang.String getCrosstabURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String crosstabName)
      Base pivot table page URL for specified object and crosstab
      static java.lang.String getDatamapSelectURL​(ObjectDB obj, java.lang.String params)
      Base data mapping select page URL for specified object
      static java.lang.String getDatamapSelectURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base data mapping select page URL for specified object
      static java.lang.String getDataURL​(java.lang.String mime, byte[] data)
      Return a data URL
      static java.lang.String getDataURL​(java.lang.String mime, java.lang.String data)
      Return a data URL
      static java.lang.String getDirectURL​(ObjectDB obj, boolean form)
      Direct URL to open the object update form
      static java.lang.String getDivIdFromZoneCode​(java.lang.String zone)
      Returns div id from zone code.
      static java.lang.String getDocPreviewURL​(ObjectDB obj, java.lang.String fieldName)
      Document preview page URL for specified object's field
      static java.lang.String getDocPreviewURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, java.lang.String fieldName)
      Document preview page URL for specified object's field
      static java.lang.String getDocumentURL​(java.lang.String params)
      Base URL for document from DBDoc
      static java.lang.String getDocumentURL​(java.lang.String object, java.lang.String field, java.lang.String rowId, java.lang.String docId, java.lang.String cdisp, boolean cache, boolean thumbnail)
      Base URL for document
      static java.lang.String getEditorURL​(java.lang.String params)
      Base editor page URL
      static java.lang.String getErrorURL​(java.lang.Exception e)
      Base error page URL for specified exception
      static java.lang.String getErrorURL​(java.lang.Exception e, boolean pub)
      Deprecated.
      Use getErrorURL without pub argument
      static java.lang.String getErrorURL​(java.lang.String code)
      Base error page URL for specified error code
      static java.lang.String getErrorURL​(java.lang.String code, boolean pub)
      Deprecated.
      Use getErrorURL without pub argument
      static java.lang.String getErrorURL​(java.lang.String code, java.lang.String param)
      Base error page URL for specified error code
      static java.lang.String getErrorURL​(java.lang.String code, java.lang.String param, boolean pub)
      Deprecated.
      Use getErrorURL without pub argument
      static java.lang.String getExternalObjectNameFromURL​(java.lang.String url)
      Get external object name from URL matching pattern /ext/[/path][?]
      static java.lang.String getExternalObjectURL​(java.lang.String extObjName)
      Base external object URL for specified external object
      static java.lang.String getExternalObjectURL​(java.lang.String extObjName, java.lang.String params)
      Base external object URL for specified external object with parameters
      static java.lang.String getExtraPreferencesURL​(java.lang.String params)
      Base extra preferences URL
      static java.lang.String getExtraURL​(java.lang.String params)
      Base extra URL
      static java.lang.String getFaviconURL​(Grant g)
      Get favicon URL 16x16
      static java.lang.String getFaviconURL​(Grant g, int size)
      Get favicon URL
      static java.lang.String getFooterURL​(java.lang.String params)
      Base footer URL
      static java.lang.String getFormAreaId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormButtonId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormButtonTransitionId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormCellId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormDivId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormFieldId​(java.lang.String formName, ObjectField f)  
      static java.lang.String getFormFunctionId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormId​(java.lang.String name)
      Formats form name into DOM Id
      static java.lang.String getFormInputId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormLinkId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormObjId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormPopupId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormPreviewURL​(java.lang.String rowId)
      Form preview page URL for specified object's row ID
      static java.lang.String getFormRowId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFormURL​(ObjectDB obj, boolean nav)
      Deprecated.
      Use getFormURL with extra parameters
      static java.lang.String getFormURL​(ObjectDB obj, java.lang.String params)
      Base form page URL for specified object (for current row ID)
      static java.lang.String getFormURL​(ObjectDB obj, java.lang.String rowId, boolean nav)
      Deprecated.
      Use getFormURL with extra parameters
      static java.lang.String getFormURL​(ObjectDB obj, java.lang.String rowId, java.lang.String params)
      Base form page URL for specified object and row ID
      static java.lang.String getFormURL​(java.lang.String objName, java.lang.String rowId, java.lang.String params)
      Base form page URL for specified object and row ID on responsive UI
      static java.lang.String getFormURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, boolean nav)
      Deprecated.
      Use getFormURL with extra parameters
      static java.lang.String getFormURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, java.lang.String params)
      Base form page URL for specified object and row ID
      static java.lang.String getFormVarId​(java.lang.String formName, java.lang.String name)  
      static java.lang.String getFrameFromZoneCode​(java.lang.String zone)
      Returns frame JS naming from zone code.
      static java.lang.String getGitRoot()
      Get Git root
      static java.lang.String getGoogleCalendarURL​(int width, int height, java.lang.String id)
      Google calendar URL
      static java.lang.String getGoogleMapURL​(float lat, float lng, int zoom, int width, int height, java.lang.String address, java.lang.String info)
      Google map URL
      static java.lang.String getGraphURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String graphName)
      Base chart page URL for specified object and graph
      static java.lang.String getHeaderURL​(java.lang.String params)
      Base header URL
      static java.lang.String getHelpURL​(ObjectDB obj, java.lang.String params)
      Base help page URL for specified object
      static java.lang.String getHelpURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base help page URL for specified object
      static java.lang.String getHomeURL()
      Base home URL
      static java.lang.String getHomeURL​(java.lang.String params)
      Base home URL
      static java.lang.String getIcon​(Grant g, java.lang.String name, java.lang.String size, java.lang.String cls)
      Front icon
      static java.lang.String getIconURL​(Grant grant, java.lang.String name)
      URL for icon set resource
      static java.lang.String getImageDataURL​(java.lang.String mime, byte[] data)
      Alias to getDataURL
      static java.lang.String getImageDataURL​(java.lang.String mime, java.lang.String data)
      Alias to getDataURL
      static java.lang.String getImportExportURL​(java.lang.String params)
      Base import/export URL
      static java.lang.String getIndexSearchURL​(java.lang.String params)
      Base index search page URL
      static java.lang.String getIORoot()
      Get I/O root
      static java.lang.String getListURL​(ObjectDB obj, boolean nav)
      Deprecated.
      Use getListURL with extra parameters
      static java.lang.String getListURL​(ObjectDB obj, java.lang.String params)
      Base list page URL for specified object
      static java.lang.String getListURL​(java.lang.String objName, java.lang.String params)
      Base list page URL for specified object on responsive UI
      static java.lang.String getListURL​(java.lang.String objName, java.lang.String objInstanceName, boolean nav)
      Deprecated.
      Use getListURL with extra parameters
      static java.lang.String getListURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base list page URL for specified object
      static java.lang.String getLoadingIcon()
      Get loading icon HTML tag
      static java.lang.String getLoadingIconURL()
      Get loading icon URL
      static java.lang.String getLoadingImage()
      Get loading image HTML tag
      static java.lang.String getLoadingImageURL()
      Get loading image URL
      static java.lang.String getLoginURL()
      Base login page URL
      static java.lang.String getLogoutURL()
      Base logout page URL
      static java.lang.String getLogsURL​(java.lang.String params)
      Base logs page URL
      static java.lang.String getMainURL​(java.lang.String params)
      Base main page URL
      static java.lang.String getManifestURL​(java.lang.String sessionId)
      Get manifest URL
      static java.lang.String getMapURL​(float lat, float lng, int zoom, int width, int height, java.lang.String address, java.lang.String info)
      Map URL
      static java.lang.String getMapURL​(float lat, float lng, int zoom, java.lang.String info)
      Map URL
      static java.lang.String getMapURL​(java.lang.String address, int zoom, java.lang.String info)
      Map
      static java.lang.String getMediaURL​(java.lang.String media, java.lang.String mime, int width, int height)
      Media URL
      static java.lang.String getMenuURL​(java.lang.String params)
      Base menu URL
      static java.lang.String getMergeURL​(ObjectDB obj)
      Base merge form page URL for specified object
      static java.lang.String getMergeURL​(java.lang.String objName, java.lang.String objInstanceName)
      Base merge form page URL for specified object
      static java.lang.String getModuleChooserURL​(java.lang.String params)
      Base module chooser URL
      static java.lang.String getNewsURL​(java.lang.String params)
      Base news reader URL
      static java.lang.String getObjectPreferencesURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base object preferences page URL for specified object and place map
      static java.lang.String getObjectRefSelectURL​(ObjectDB obj, java.lang.String params)
      Base object reference select page URL for specified object
      static java.lang.String getObjectRefSelectURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base object reference select page URL for specified object
      static java.lang.String getObjectURL​(java.lang.String type, java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Get base object URL for specified type
      static java.lang.String getPanelURL​(ObjectDB obj, java.lang.String params)
      Base panel page URL for specified object
      static java.lang.String getPanelURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, java.lang.String params)
      Base panel page URL for specified object
      static java.lang.String getPlaceMapURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String placemapName, java.lang.String params)
      Base place map page URL for specified object and place map
      static java.lang.String getPrintTemplateURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String printTemplateName)
      Base publication URL for specified object and print template (list level template)
      static java.lang.String getPrintTemplateURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, java.lang.String printTemplateName, boolean mailing)
      Base publication URL for specified object and print template (row level template)
      static java.lang.String getProcessStartURL​(java.lang.String pcsName)
      Base process start page URL for specified process
      static java.lang.String getProcessURL​(java.lang.String type, java.lang.String pcsName, java.lang.String params)
      Base process URL for specified type
      static java.lang.String getProgressBar​(Grant g, int prct)
      Display a progress bar
      static java.lang.String getPublicDocumentURL​(java.lang.String params)
      Base URL for public document from DBDoc
      static java.lang.String getPublicDocumentURL​(java.lang.String object, java.lang.String field, java.lang.String rowId, java.lang.String docId, java.lang.String cdisp, boolean cache, boolean thumbnail)
      Base public URL for document
      static java.lang.String getPublicErrorURL​(java.lang.Exception e)
      Deprecated.
      Use getErrorURL
      static java.lang.String getPublicErrorURL​(java.lang.String code)
      Deprecated.
      Use getErrorURL
      static java.lang.String getPublicErrorURL​(java.lang.String code, java.lang.String param)
      Deprecated.
      Use getErrorURL
      static java.lang.String getPublicExternalObjectURL​(java.lang.String extObjName)
      Base public external object URL for specified external object
      static java.lang.String getPublicExternalObjectURL​(java.lang.String extObjName, java.lang.String params)
      Base public external page URL for specified external object with parameters
      static java.lang.String getPublicHomeURL()
      Base public home page URL
      static java.lang.String getPublicMainURL​(java.lang.String params)
      Base public main page URL
      static java.lang.String getPublicNewsURL​(java.lang.String params)
      Base public news reader URL
      static java.lang.String getReferenceSelectURL​(ObjectDB obj, java.lang.String params)
      Base reference select page URL for specified object
      static java.lang.String getReferenceSelectURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base reference select page URL for specified object
      static byte[] getResourceContent​(ExternalObject ext, java.lang.String type, java.lang.String code)
      Content of specified external object resource
      static byte[] getResourceContent​(Grant grant, java.lang.String type, java.lang.String code)
      Content of specified disposition resource
      static byte[] getResourceContent​(ObjectDB obj, java.lang.String type, java.lang.String code)
      Content of specified business object resource
      static java.lang.String getResourceCSSContent​(ExternalObject ext, java.lang.String code)
      Content of specified external object CSS stylesheet resource
      static java.lang.String getResourceCSSContent​(Grant grant, java.lang.String code)
      Content of specified disposition CSS stylesheet resource
      static java.lang.String getResourceCSSContent​(ObjectDB obj, java.lang.String code)
      Content of specified business object CSS stylesheet resource
      static java.lang.String getResourceCSSURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object CSS stylesheet resource
      static java.lang.String getResourceCSSURL​(Grant grant, java.lang.String code)
      URL for specified disposition CSS stylesheet resource
      static java.lang.String getResourceCSSURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition CSS stylesheet resource
      static java.lang.String getResourceCSSURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object CSS stylesheet resource
      static java.lang.String getResourceHTMLContent​(ExternalObject ext, java.lang.String code)
      Content of specified external object HTML resource
      static java.lang.String getResourceHTMLContent​(Grant grant, java.lang.String code)
      Content of specified disposition HTML resource
      static java.lang.String getResourceHTMLContent​(ObjectDB obj, java.lang.String code)
      Content of specified business object HTML resource
      static java.lang.String getResourceHTMLURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object HTML resource
      static java.lang.String getResourceHTMLURL​(Grant grant, java.lang.String code)
      URL for specified disposition HTML resource
      static java.lang.String getResourceHTMLURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition HTML resource
      static java.lang.String getResourceHTMLURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object HTML resource
      static java.lang.String getResourceIconURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object icon resource
      static java.lang.String getResourceIconURL​(Grant grant, java.lang.String code)
      URL for specified disposition icon resource
      static java.lang.String getResourceIconURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition icon resource
      static java.lang.String getResourceIconURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object icon resource
      static java.lang.String getResourceImageURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object image resource
      static java.lang.String getResourceImageURL​(Grant grant, java.lang.String code)
      URL for specified disposition image resource
      static java.lang.String getResourceImageURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition image resource
      static java.lang.String getResourceImageURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object image resource
      static java.lang.String getResourceJSContent​(ExternalObject ext, java.lang.String code)
      Content of specified external object JavaScript resource
      static java.lang.String getResourceJSContent​(Grant grant, java.lang.String code)
      Content of specified disposition JavaScript resource
      static java.lang.String getResourceJSContent​(ObjectDB obj, java.lang.String code)
      Content of specified business object JavaScript resource
      static java.lang.String getResourceJSURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object JavaScript resource
      static java.lang.String getResourceJSURL​(Grant grant, java.lang.String code)
      URL for specified disposition JavaScript resource
      static java.lang.String getResourceJSURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition JavaScript resource
      static java.lang.String getResourceJSURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object JavaScript resource
      static java.lang.String getResourceMarkdownURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object markdown resource
      static java.lang.String getResourceMarkdownURL​(Grant grant, java.lang.String code)
      URL for specified disposition markdown resource
      static java.lang.String getResourceMarkdownURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition markdown resource
      static java.lang.String getResourceMarkdownURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object markdown resource
      static java.lang.String getResourceMDContent​(ExternalObject ext, java.lang.String code)
      Content of specified external object markdown resource
      static java.lang.String getResourceMDContent​(Grant grant, java.lang.String code)
      Content of specified disposition markdown resource
      static java.lang.String getResourceMDContent​(ObjectDB obj, java.lang.String code)
      Content of specified business object markdown resource
      static byte[] getResourcePDFContent​(ExternalObject ext, java.lang.String code)
      Content of specified external object PDF document resource
      static byte[] getResourcePDFContent​(Grant grant, java.lang.String code)
      Content of specified disposition PDF document resource
      static byte[] getResourcePDFContent​(ObjectDB obj, java.lang.String code)
      Content of specified business object PDF document resource
      static java.lang.String getResourcePDFURL​(ExternalObject ext, java.lang.String code)
      URL for specified external object PDF resource
      static java.lang.String getResourcePDFURL​(Grant grant, java.lang.String code)
      URL for specified disposition PDF resource
      static java.lang.String getResourcePDFURL​(Grant grant, java.lang.String code, java.lang.String deflt)
      URL for specified disposition PDF resource
      static java.lang.String getResourcePDFURL​(ObjectDB obj, java.lang.String code)
      URL for specified business object PDF resource
      static java.lang.String getResourceURL​(ExternalObject ext, java.lang.String type, java.lang.String code, java.lang.String deflt)
      URL for specified external object resource
      static java.lang.String getResourceURL​(Grant grant, java.lang.String type, java.lang.String code, java.lang.String deflt)
      URL for specified disposition resource
      static java.lang.String getResourceURL​(Grant grant, java.lang.String type, java.lang.String code, java.lang.String object, java.lang.String objId, java.lang.String deflt)
      URL for specified object resource
      static java.lang.String getResourceURL​(ObjectDB obj, java.lang.String type, java.lang.String code, java.lang.String deflt)
      URL for specified business object resource
      static java.lang.String getRoot()
      Get webapp root = context path, same as Globals.getContextPath()
      static java.lang.String getRSSURL​(java.lang.String params)
      Base news reader URL
      static java.lang.String getScopesURL​(java.lang.String params)
      Base scopes page URL
      static java.lang.String getScriptFromJavascriptStatement​(java.lang.String s)
      Get script from JavaScript statement
      static java.lang.String getSearchURL​(ObjectDB obj)
      Deprecated.
      Use getSearchURL with extra parameters
      static java.lang.String getSearchURL​(ObjectDB obj, java.lang.String params)
      Base search page URL for specified object
      static java.lang.String getSearchURL​(java.lang.String objName, java.lang.String objInstanceName)
      Deprecated.
      Use getSearchURL with extra parameters
      static java.lang.String getSearchURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
      Base search page URL for specified object
      static java.lang.String getShortcutsURL​(java.lang.String params)
      Base shortcuts URL
      static java.lang.String getSimpleViewURL​(java.lang.String viewName, java.lang.String params)
      Base simple view URL
      static java.lang.String getStaticContent​(java.lang.String fileName)
      Static content
      static java.lang.String getStaticContentURL​(java.lang.String fileName)
      URL for specified static content
      static java.lang.String getSubHeaderURL​(java.lang.String params)
      Base sub-header URL
      static java.lang.String getTimesheetURL​(java.lang.String objName, java.lang.String objInstanceName, java.lang.String tsName, java.lang.String params)
      Base time sheet page URL for specified time sheet
      static java.lang.String getTinyFormURL​(java.lang.String objName, java.lang.String rowId)
      Tiny URL to object form
      static java.lang.String getTinyListURL​(java.lang.String objName)
      Tiny URL to object list
      static java.lang.String getTreeviewURL​(java.lang.String treeviewName, java.lang.String params)
      Base treeview URL
      static java.lang.String getUIRoot()
      Get UI root
      static java.lang.String getUndoRedoURL​(boolean patch, java.lang.String params)
      Base undo/redo URL
      static java.lang.String getUniqueID​(Grant grant)
      Get a unique hash ID for grant
      static java.lang.String getUpdateAllURL​(ObjectDB obj)
      Base update all form page URL for specified object
      static java.lang.String getUpdateAllURL​(java.lang.String objName, java.lang.String objInstanceName)
      Base update all form page URL for specified object
      static java.lang.String getURLFromRedirectStatement​(java.lang.String s)
      Get URL from Redirect statement
      static java.lang.String getViewURL​(java.lang.String viewName, java.lang.String params)
      Base view URL
      static java.lang.String globalJSVars()
      Deprecated.
      use jsGlobals
      static java.lang.String[] gmapJS()
      GoogleMaps® JS scripts
      static java.lang.String[] gmapJS​(Grant g)
      GoogleMaps® JS scripts
      static java.lang.String help​(java.lang.String help)
      Standard help
      static java.lang.String hiddenInput​(java.lang.String formName, java.lang.String name, java.lang.String value)
      Hidden input.
      static java.lang.String hierarchyArea​(Grant g, java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, int tab)
      Hierarchy area.
      static java.lang.String hierarchyArea​(java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, int tab)
      Deprecated. 
      static java.lang.String highlightCSS()
      Highlight® CSS stylesheet
      static java.lang.String highlightJS()
      Highlight® JS script
      static java.lang.String htmlChart​(java.lang.String divId, java.lang.String json, int width, int height)
      HTML chart
      static java.lang.String[] htmleditorCSS()
      HTML editor CSS stylesheets
      static java.lang.String[] htmleditorJS()
      HTML editor JS scripts
      static java.lang.String htmlPopup​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String content)
      HTML content popup without title
      static java.lang.String htmlPopup​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String title, boolean closeButton, java.lang.String content)
      HTML content popup
      static java.lang.String htmlPopup​(java.lang.String formName, java.lang.String name, java.lang.String content)
      Deprecated. 
      static java.lang.String htmlPopup​(java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String title, boolean closeButton, java.lang.String content)
      Deprecated. 
      static java.lang.String htmlPopupButton​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String alt, java.lang.String title, boolean closeButton, java.lang.String content, int width, int height, int tab)
      Image button to a inlined HTML content popup
      static java.lang.String htmlPopupButton​(java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String alt, java.lang.String title, boolean closeButton, java.lang.String content, int width, int height, int tab)
      Deprecated. 
      static java.lang.String htmlPopupButtonOnly​(java.lang.String formName, java.lang.String popupName, java.lang.String imgName, java.lang.String icon, java.lang.String alt, java.lang.String jsCallback, java.lang.String jsCallbackParam, int width, int height, int tab)
      Image button to a refered HTML content popup (the popup has to be present)
      static java.lang.String icon​(Grant g, java.lang.String name, java.lang.String title)
      Standard icon tag
      static java.lang.String icon​(java.lang.String name, java.lang.String title)
      Deprecated. 
      static java.lang.String image​(java.lang.String name, java.lang.String title)
      Standard image tag
      static java.lang.String imageButton​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String src, java.lang.String url, int tab)
      Submit button (type = image)
      static java.lang.String imageButtonJS​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String hover, java.lang.String src, java.lang.String onclick, java.lang.String onblur, boolean rightIcon, java.lang.String cls, int tab)
      Simple button image with custom JavaScript on the onclick event
      static java.lang.String imageJS​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String src, java.lang.String js, int tab)
      Simple image with custom JavaScript on the onclick event
      static java.lang.String imageJS​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String src, java.lang.String js, java.lang.String cls, int tab)
      Simple image with custom JavaScript on the onclick event
      static java.lang.String info​(java.lang.String msg, Grant g)
      Formatted information message
      static boolean isJavascriptStatement​(java.lang.String s)
      Is specified value a simple JavaScript statement?
      static boolean isListVisible​(ObjectDB obj, FieldArea fa)
      Deprecated.
      use obj.isAreaVisible(fa,true,true)
      static boolean isListVisible​(ObjectDB obj, ObjectField f)
      Deprecated.
      use obj.isFieldVisible(f,true,true)
      static boolean isRedirectStatement​(java.lang.String s)
      Is specified value a simple redirect statement?
      static java.lang.String javascriptStatement​(java.lang.String js)
      Simple JavaScript statement
      static java.lang.String[] jqplotCSS()
      JQPlot® CSS stylesheets
      static java.lang.String[] jqplotJS()
      JQPlot® additional JS scripts
      static java.lang.String jsBlock​(java.lang.String js)
      Encloses JavaScript code into start/end tags
      static java.lang.String jsConstants()
      JavaScript constants
      static java.lang.String jsGlobals​(Grant g)
      JavaScript globals
      static java.lang.String jsInclude​(java.lang.String jsFile)
      Includes JavaScript file
      static java.lang.String jsInclude​(java.lang.String jsFile, java.lang.String encoding)
      Includes JavaScript file in specified encoding
      static java.lang.String jsInclude​(java.lang.String jsFile, java.lang.String encoding, boolean async, boolean defer)
      Includes JavaScript file in specified encoding
      static java.lang.String jsIncludes​(java.lang.String[] jsFiles)
      Includes JavaScript files
      static java.lang.String jsIncludes​(java.lang.String[] jsFiles, java.lang.String encoding)
      Includes JavaScript files in specified encoding
      static java.lang.String jsIncludes​(java.lang.String[] jsFiles, java.lang.String encoding, boolean async, boolean defer)
      Includes JavaScript files in specified encoding
      static java.lang.String jsMinify​(java.lang.String js)
      Minifies JavaScript code
      static java.lang.String jsOnload​(java.lang.String js)
      JavaScript onload statement
      static java.lang.String jsontreeCSS()
      JsonTreeViewer® CSS stylesheet
      static java.lang.String jsontreeJS()
      JsonTreeViewer® JS script
      static java.lang.String jsTexts​(Grant g, java.lang.String regex)
      JavaScript texts
      static java.lang.String leafletCSS()
      OpenStreetMap leaflet® CSS stylesheet
      static java.lang.String leafletJS()
      OpenStreetMap leaflet® JS script
      static java.lang.String lessToCss​(java.io.File less)
      Converts LESS file to CSS
      static java.lang.String lessToCss​(java.lang.String less)
      Converts LESS string to CSS
      static java.lang.String link​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String targetZone, java.lang.String url, java.lang.String confirmMsg, java.lang.String extraTags, java.lang.String cls, int tab)
      Anchor link with target zone and confirm dialog management.
      static java.lang.String linkPopup​(Grant g, java.lang.String formName, java.lang.String name)
      Link popup
      static java.lang.String linkPopup​(java.lang.String formName, java.lang.String name)
      Deprecated. 
      static java.lang.String[] mainPageCSS​(Grant grant)
      Main page additional CSS stylesheets
      static java.lang.String[] mainPageJS()
      Main page additional JS scripts
      static java.lang.String[] markdownCSS()
      Markdown CSS stylesheets
      static java.lang.String[] markdownJS()
      Markdown JS scripts
      static java.lang.String message​(char level, java.lang.String msg, Grant g)
      Formatted message
      static java.lang.String[] modelerCSS​(Grant grant)
      Modeler CSS stylesheets
      static java.lang.String[] modelerJS()
      Modeler JS scripts
      static java.lang.String multimediaObject​(java.lang.String formName, java.lang.String name, java.lang.String mime, java.lang.String url, int width, int height)
      WindowsMediaPlayer® multimedia object
      static java.lang.String multipleArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String[] titles, java.lang.String[] contents, boolean[] visible, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab, ObjectDB obj)
      Collapsible multiple areas panel.
      static java.lang.String multipleArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String[] titles, java.lang.StringBuilder[] contents, boolean[] visible, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab, ObjectDB obj)
      Collapsible multiple areas panel.
      static java.lang.String multipleArea​(Grant g, java.util.List<HTMLTool.Area> areas, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab)
      Collapsible multiple areas panel.
      static java.lang.String multipleArea​(java.lang.String formName, java.lang.String name, java.lang.String[] titles, java.lang.String[] contents, boolean[] visible, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab, ObjectDB obj)
      Deprecated. 
      static java.lang.String multipleArea​(java.lang.String formName, java.lang.String name, java.lang.String[] titles, java.lang.StringBuilder[] contents, boolean[] visible, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab, ObjectDB obj)
      Deprecated. 
      static java.lang.String multipleArea​(java.util.List<HTMLTool.Area> areas, int currentIndex, boolean collapsible, boolean collapsed, java.lang.String cls, int tab)
      Deprecated. 
      static java.lang.String multipleComboBox​(Grant g, java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String[] selectedValues, java.lang.String cls, int tab)
      Multiple selection in a drop-down combobox
      static java.lang.String multipleComboBox​(java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String[] selectedValues, java.lang.String cls, int tab)
      Deprecated. 
      static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, boolean[] selectedFlags, boolean lineBreaks, int tab)
      Deprecated. 
      static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, boolean[] selectedFlags, int lineBreaksEach, int tab)
      Multiple select list (check boxes style).
      static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String[] selectedValues, boolean lineBreaks, int tab)
      Deprecated. 
      static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String[] selectedValues, int lineBreaksEach, int tab)
      Multiple select list (check boxes style).
      static java.lang.String multipleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, boolean[] selectedFlags, java.lang.String cls, int tab)
      Multiple select list (select box style).
      static java.lang.String multipleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String[] selectedValues, java.lang.String cls, int tab)
      Multiple select list (select box style).
      static java.lang.String multipleSelectBox​(Grant g, java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, boolean[] selectedFlags, java.lang.String cls, int tab)
      Multiple selection in in a drop-down combobox
      static java.lang.String multipleSelectBox​(java.lang.String formName, java.lang.String name, int size, java.lang.String[] values, java.lang.String[] valueLabels, boolean[] selectedFlags, java.lang.String cls, int tab)
      Deprecated. 
      static java.lang.String[] mustacheJS()
      Mustache® JS script
      static java.lang.String openBorder()
      Opens standard panel without tab
      static java.lang.String openBorder​(java.lang.String icon, java.lang.String title, java.lang.String cls)
      Opens standard panel with tab
      static java.lang.String openExtraZone​(Grant g, java.lang.String icon, java.lang.String title, java.lang.String id, boolean collapsible, boolean collapsed, int fixedHeight, java.lang.String cls)
      Opens HTML extra zone (with extended parameters)
      static java.lang.String openExtraZone​(java.lang.String icon, java.lang.String title)
      Opens HTML extra zone
      static java.lang.String openExtraZone​(java.lang.String icon, java.lang.String title, java.lang.String id, boolean collapsible, boolean collapsed)
      Deprecated. 
      static java.lang.String openExtraZone​(java.lang.String icon, java.lang.String title, java.lang.String id, boolean collapsible, boolean collapsed, int fixedHeight, java.lang.String cls)
      Deprecated. 
      static java.lang.String openForm​(java.lang.String formName, java.lang.String action, java.lang.String method, boolean multipart, java.lang.String extraTags)
      Opens managed form with optional extra tags (e.g.
      static java.lang.String openHierarchyArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String title, int tab)
      Opens hierarchy area.
      static java.lang.String openHierarchyArea​(java.lang.String formName, java.lang.String name, java.lang.String title, int tab)
      Deprecated. 
      static java.lang.String openHierarchyArea​(java.lang.String formName, java.lang.String name, java.lang.String title, java.lang.String imgExpand, java.lang.String imgCollapse, int tab)
      Opens hierarchy area.
      static java.lang.String openPage​(Grant grant, java.lang.String title, java.lang.String disp, boolean std, boolean calend, boolean calc, boolean color, boolean htmledit, boolean undoredo, boolean treeview, boolean completion, boolean charts, java.lang.String extrahead, java.lang.String[] extracss, java.lang.String[] extrajs, java.lang.String cls)
      Opens HTML page
      static java.lang.String openSimpleArea​(Grant g, HTMLTool.Area area, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls)
      Opens (non)collapsible simple area panel.
      static java.lang.String openSimpleArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int width, int height, int tab, ObjectDB object, boolean visible)
      Opens (non)collapsible area panel.
      static java.lang.String openSimpleArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int tab, ObjectDB obj, boolean visible)
      openSimpleArea
      static java.lang.String openSimpleArea​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      Opens (non)collapsible area panel.
      static java.lang.String openSimpleArea​(HTMLTool.Area area, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls)
      Deprecated. 
      static java.lang.String openSimpleArea​(java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int width, int height, int tab, ObjectDB object, boolean visible)
      Deprecated. 
      static java.lang.String openSimpleArea​(java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int tab, ObjectDB obj, boolean visible)
      Deprecated. 
      static java.lang.String openSimpleArea​(java.lang.String formName, java.lang.String name, java.lang.String title, boolean collapsible, boolean collapsed, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      Deprecated. 
      static java.lang.String openSimpleForm​(java.lang.String formName, java.lang.String action, java.lang.String method)
      Opens simple action form
      static java.lang.String openSimpleMultipartForm​(java.lang.String formName, java.lang.String action)
      Opens simple multipart action form
      static java.lang.String openSimplePage​(java.lang.String title, java.lang.String[] extracss, java.lang.String[] extrajs)
      Opens simple HTML page
      static java.lang.String pageIncludes​(Grant grant, java.lang.String disp, boolean standard, boolean calendar, boolean calculator, boolean colorpicker, boolean htmleditor, boolean undoredo, boolean treeview, boolean modeler, boolean completion, boolean charts, java.lang.String extrahead, java.lang.String[] extracss, java.lang.String[] extrajs, java.lang.String page)
      HTML page headers
      static java.lang.String passwordInput​(java.lang.String formName, java.lang.String name, int visualsize, int maxsize, java.lang.String value, boolean forceNewPassword, java.lang.String cls, int tab)
      Password input
      static java.lang.String passwordInput​(java.lang.String formName, java.lang.String name, int visualsize, int maxsize, java.lang.String value, java.lang.String cls, int tab)
      Deprecated.
      Use passwordInput with one additional parameter
      static java.lang.String passwordInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, int tab)
      Password input
      static java.lang.String passwordInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, java.lang.String cls, int tab)
      Password input
      static java.lang.String placeMapIncludes()
      Placemap includes
      static java.lang.String prepareURLs​(Grant g, java.lang.String str)
      Substitute the following tokens in a string:
      - [HOMEURL] : Home URL (without quotes)
      - [EXTOBJECTURL:<external object name>[:<optional URL parameters>]] : External object URL (without quotes)
      - [EXTOBJECTPUBLICURL:<external object name>[:<optional URL parameters>]] : External object URL (without quotes)
      - [CONTENTURL:<static content file name>] : Static content URL (without quotes)
      - [IMAGERESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Image resource URL (without quotes)
      - [ICONRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Icon resource URL (without quotes)
      - [CSSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : CSS stylesheet resource URL (without quotes)
      - [JSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : JavaScript resource URL (without quotes)
      - [HTMLRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : HTML resource URL (without quotes)
      static java.lang.String redirectJS​(java.lang.String url)
      Javascript (client side) redirect (suitable for both responsive and legacy UI)
      static java.lang.String redirectStatement​(java.lang.String url)
      Simple redirect statement
      static java.lang.String servicesJS()
      Deprecated.
      Synchronous services JS has been removed, Simplicite.Ajax must be used
      static void setRoot​(java.lang.String cp)
      Deprecated.
      Does nothing
      static java.lang.String simpleArea​(Grant g, HTMLTool.Area area, boolean collapsible, boolean collapsed, int tab)
      (Non)collapsible area panel.
      static java.lang.String simpleArea​(Grant g, HTMLTool.Area area, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls)
      (Non)collapsible area panel.
      static java.lang.String simpleArea​(Grant g, java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      (Non)collapsible area panel.
      static java.lang.String simpleArea​(Grant g, java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int tab, ObjectDB obj, boolean visible)
      (Non)collapsible area panel.
      static java.lang.String simpleArea​(Grant g, java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      (Non)collapsible area panel.
      static java.lang.String simpleArea​(HTMLTool.Area area, boolean collapsible, boolean collapsed, int tab)
      Deprecated. 
      static java.lang.String simpleArea​(HTMLTool.Area area, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls)
      Deprecated. 
      static java.lang.String simpleArea​(java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int width, int height, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      Deprecated. 
      static java.lang.String simpleArea​(java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int tab, ObjectDB obj, boolean visible)
      Deprecated. 
      static java.lang.String simpleArea​(java.lang.String formName, java.lang.String areaName, java.lang.String title, java.lang.String content, boolean collapsible, boolean collapsed, int tab, java.lang.String cls, ObjectDB obj, boolean visible)
      Deprecated. 
      static java.lang.String simplePlaceMap​(Grant g, java.lang.String formName, java.lang.String name, int width, int height, java.lang.String address, int zoom, java.lang.String info)
      Simple GoogleMaps® with single marker
      static java.lang.String simplePlaceMap​(java.lang.String formName, java.lang.String name, int width, int height, float lat, float lng, int zoom, java.lang.String info)
      Simple GoogleMaps® map block with single marker
      static java.lang.String simplePlaceMap​(java.lang.String formName, java.lang.String name, int width, int height, java.lang.String address, int zoom, java.lang.String info)
      Deprecated. 
      static java.lang.String singleListInputAsRadioButtons​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, int selectedIndex, boolean lineBreaks, int tab)
      Single select list (radio button style).
      static java.lang.String singleListInputAsRadioButtons​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String value, boolean lineBreaks, int tab)
      Single select list (radio button style).
      static java.lang.String singleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, boolean nullValue, java.lang.String[] values, java.lang.String[] valueLabels, int selectedIndex, java.lang.String onChange, java.lang.String cls, int tab)
      Single select list (select box style).
      static java.lang.String singleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, boolean nullValue, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String value, java.lang.String onChange, java.lang.String cls, int tab)
      Single select list (select box style).
      static java.lang.String singleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, int selectedIndex, java.lang.String cls, int tab)
      Single select list (select box style).
      static java.lang.String singleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String value, java.lang.String cls, int tab)
      Single select list (Select box style).
      static java.lang.String singleListInputAsSelectBox​(java.lang.String formName, java.lang.String name, java.lang.String[] values, java.lang.String[] valueLabels, java.lang.String value, java.lang.String onChange, java.lang.String cls, int tab)
      Single select list (Select box style).
      static java.lang.String[] standardCSS​(Grant grant, boolean htmleditor, boolean charts, boolean calendar)
      Standard CSS stylesheets
      static java.lang.String[] standardJS​(Grant grant, boolean calendar, boolean calculator, boolean colorpicker, boolean htmleditor, boolean undoredo, boolean treeview, boolean completion, boolean charts)
      Standard JS scripts
      static java.lang.String submit​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String url, java.lang.String cls, int tab)
      Submit button (type = submit)
      static java.lang.String submitForm​(java.lang.String formName, java.lang.String url, java.lang.String buttonId)
      Standard call to "submitForm()" JavaScript function
      static java.lang.String submitJS​(java.lang.String formName, java.lang.String name, java.lang.String label, java.lang.String js, java.lang.String cls, int tab)
      Button (type = submit) with custom JavaScript on the onclick event
      static java.lang.String tab​(java.lang.String type, java.lang.String icon, java.lang.String content)
      Simple tab.
      static java.lang.String tab​(java.lang.String id, java.lang.String type, java.lang.String icon, java.lang.String content, java.lang.String help, boolean visible, java.lang.String onclick)
      Simple tab.
      static java.lang.String tabExt​(java.lang.String id, java.lang.String type, java.lang.String icon, java.lang.String content, java.lang.String help, boolean visible, java.lang.String onclick)  
      static java.lang.String text​(java.lang.String msg, Grant g)
      Formatted text message
      static java.lang.String textareaInput​(java.lang.String formName, java.lang.String name, int cols, int rows, boolean readOnly, java.lang.String value, java.lang.String cls, int tab)
      Textarea input.
      static java.lang.String textareaInput​(java.lang.String formName, java.lang.String name, int cols, int rows, boolean readOnly, java.lang.String value, java.lang.String onChange, java.lang.String cls, int tab)
      Textarea input.
      static java.lang.String textareaInput​(java.lang.String formName, java.lang.String name, int cols, int rows, java.lang.String value, int tab)
      Textarea input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int visualsize, int maxsize, java.lang.String value, boolean readOnly, java.lang.String cls, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int visualsize, int maxsize, java.lang.String value, boolean readOnly, java.lang.String onChange, java.lang.String cls, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int visualsize, int maxsize, java.lang.String value, java.lang.String placeholder, boolean readOnly, java.lang.String onChange, java.lang.String cls, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, boolean readOnly, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, boolean readOnly, java.lang.String cls, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, boolean readOnly, java.lang.String onChange, java.lang.String cls, int tab)
      Text input.
      static java.lang.String textInput​(java.lang.String formName, java.lang.String name, int size, java.lang.String value, int tab)
      Text input.
      static java.lang.String[] tinymceJS()
      TinyMCE® HTML editor JS scripts
      static java.lang.String title​(Grant grant, java.lang.String title, java.lang.String iconCode, java.lang.String iconDecCode, java.lang.String nav, java.lang.String help)
      Standard page title
      static java.lang.String titleButtons​(java.lang.String[] btns)
      Title buttons
      static java.lang.String toolsJS()
      Tools JS script
      static java.lang.String toPlainText​(java.lang.String html)
      Remove all HTML tags from text
      static java.lang.String toSafeHTML​(java.lang.String html)
      Remove all script tags from HTML
      static java.lang.String toSafeHTML​(java.lang.String html, java.lang.String[] tags)
      Remove all script tags from HTML (restricted to body part if any)
      static java.lang.String treeviewJS()
      Treeview JS script
      static java.lang.String[] uiJS()
      UI JS scripts (Note: it includes Ajax scripts)
      static java.lang.String uiToolsCSS()
      Legacy UI tools CSS stylesheet
      static java.lang.String uiToolsJS()
      Legacy UI tools JS script
      static java.lang.String undoredoJS()
      UndoRedo JS script
      static java.lang.String urlBlock​(java.lang.String url)
      Client-side asynchronously-loaded URL block
      static java.lang.String urlBlock​(java.lang.String url, java.lang.String id, boolean loading)
      Client-side asynchronously-loaded URL block
      static java.lang.String urlPopup​(Grant g, java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String title, boolean closeButton, java.lang.String url)
      URL content popup
      static java.lang.String urlPopupButton​(Grant g, java.lang.String formName, java.lang.String popupName, java.lang.String icon, java.lang.String alt, java.lang.String title, boolean closeButton, java.lang.String url, int width, int height, int tab)
      Image button to an inlined URL content popup
      static java.lang.String urlPopupButton​(java.lang.String formName, java.lang.String popupName, java.lang.String icon, java.lang.String alt, java.lang.String title, boolean closeButton, java.lang.String url, int width, int height, int tab)
      Deprecated. 
      static java.lang.String urlPopupButtonOnly​(java.lang.String formName, java.lang.String popupName, java.lang.String imgName, java.lang.String icon, java.lang.String alt, java.lang.String url, int width, int height, int tab)
      Image button to a relatively positionned URL content popup (the popup has to be present)
      static java.lang.String urlPopupButtonOnly​(java.lang.String formName, java.lang.String popupName, java.lang.String imgName, java.lang.String icon, java.lang.String alt, java.lang.String url, int width, int height, int left, int top, int tab)
      Image button to an absolutely positionned URL content popup (the popup has to be present)
      static java.lang.String video​(java.lang.String formName, java.lang.String name, java.lang.String[] mimes, java.lang.String[] urls, int width, int height)
      HTML5 video tag
      static java.lang.String warning​(java.lang.String msg, Grant g)
      Formatted warning message
      static java.lang.String windowPopupButton​(java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String alt, java.lang.String url, int tab)
      Window popup button
      static java.lang.String windowPopupButton​(java.lang.String formName, java.lang.String name, java.lang.String icon, java.lang.String alt, java.lang.String url, int width, int height, int tab)
      Window popup button
      static java.lang.String winIEIncludes​(boolean canvas)
      Specific IE compatibility include headers
      static java.lang.String winIEWarning()
      Old IE warning
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NULL

        public static final java.lang.String NULL
        Null constant (same as HTTPTool.NULL)
        See Also:
        Constant Field Values
      • LAYOUT_ZONE

        public static final java.lang.String LAYOUT_ZONE
        Layout zone constant
        See Also:
        Constant Field Values
      • HEAD_ZONE

        public static final java.lang.String HEAD_ZONE
        Header zone constant
        See Also:
        Constant Field Values
      • SUBHEAD_ZONE

        public static final java.lang.String SUBHEAD_ZONE
        Sub-header zone constant
        See Also:
        Constant Field Values
      • FOOT_ZONE

        public static final java.lang.String FOOT_ZONE
        Footer zone constant
        See Also:
        Constant Field Values
      • MENU_ZONE

        public static final java.lang.String MENU_ZONE
        Menu zone constant
        See Also:
        Constant Field Values
      • EXTRA_ZONE

        public static final java.lang.String EXTRA_ZONE
        Extra zone constant
        See Also:
        Constant Field Values
      • LEFT_ZONE

        public static final java.lang.String LEFT_ZONE
        Public left zone constant
        See Also:
        Constant Field Values
      • RIGHT_ZONE

        public static final java.lang.String RIGHT_ZONE
        Public right zone constant
        See Also:
        Constant Field Values
      • MAIN_ZONE

        public static final java.lang.String MAIN_ZONE
        Main zone constant
        See Also:
        Constant Field Values
      • WORK_ZONE

        public static final java.lang.String WORK_ZONE
        Work zone constant
        See Also:
        Constant Field Values
      • TOP_ZONE

        public static final java.lang.String TOP_ZONE
        Top page zone constant
        See Also:
        Constant Field Values
      • BOTTOM_ZONE

        public static final java.lang.String BOTTOM_ZONE
        Bottom page zone constant
        See Also:
        Constant Field Values
      • BLANK_ZONE

        public static final java.lang.String BLANK_ZONE
        Blank page zone constant
        See Also:
        Constant Field Values
      • POPUP_ZONE

        public static final java.lang.String POPUP_ZONE
        Popup zone constant
        See Also:
        Constant Field Values
      • POPUP_HEIGHT

        public static final int POPUP_HEIGHT
        Default popup height
        See Also:
        Constant Field Values
      • POPUP_OFFSET

        public static final int POPUP_OFFSET
        Default popup offset
        See Also:
        Constant Field Values
      • POPUP_MARGIN

        public static final int POPUP_MARGIN
        Default popup margin
        See Also:
        Constant Field Values
      • JS_START_TAG

        public static final java.lang.String JS_START_TAG
        Start tag for JavaScript
        See Also:
        Constant Field Values
      • JS_END_TAG

        public static final java.lang.String JS_END_TAG
        End tag for JavaScript
        See Also:
        Constant Field Values
      • CSS_START_TAG

        public static final java.lang.String CSS_START_TAG
        Start tag for CSS
        See Also:
        Constant Field Values
      • CSS_END_TAG

        public static final java.lang.String CSS_END_TAG
        End tag for CSS
        See Also:
        Constant Field Values
      • ICON_HOME

        public static final java.lang.String ICON_HOME
        Home page icon
        See Also:
        Constant Field Values
      • ICON_OBJECT

        public static final java.lang.String ICON_OBJECT
        Object icon
        See Also:
        Constant Field Values
      • ICON_EXTOBJECT

        public static final java.lang.String ICON_EXTOBJECT
        External object icon
        See Also:
        Constant Field Values
      • ICON_PROCESS

        public static final java.lang.String ICON_PROCESS
        Workflow icon
        See Also:
        Constant Field Values
      • ICON_CROSSTAB

        public static final java.lang.String ICON_CROSSTAB
        Cross table icon
        See Also:
        Constant Field Values
      • ICON_CALENDAR

        public static final java.lang.String ICON_CALENDAR
        Calendar table icon
        See Also:
        Constant Field Values
      • ICON_BUILDING

        public static final java.lang.String ICON_BUILDING
        Building icon
        See Also:
        Constant Field Values
      • ICON_DATABASE

        public static final java.lang.String ICON_DATABASE
        Database icon
        See Also:
        Constant Field Values
      • ICON_DOCUMENT

        public static final java.lang.String ICON_DOCUMENT
        Document icon
        See Also:
        Constant Field Values
      • ICON_PROJECT

        public static final java.lang.String ICON_PROJECT
        Project icon
        See Also:
        Constant Field Values
      • ICON_PROJECTITEM

        public static final java.lang.String ICON_PROJECTITEM
        Project item icon
        See Also:
        Constant Field Values
      • ICON_WORK

        public static final java.lang.String ICON_WORK
        Work in progress icon
        See Also:
        Constant Field Values
      • ICON_WARNING

        public static final java.lang.String ICON_WARNING
        Error icon
        See Also:
        Constant Field Values
      • ICON_MESSAGE

        public static final java.lang.String ICON_MESSAGE
        Message icon
        See Also:
        Constant Field Values
      • ICON_MAILBOX

        public static final java.lang.String ICON_MAILBOX
        Mailbox icon
        See Also:
        Constant Field Values
      • ICON_FOLDER

        public static final java.lang.String ICON_FOLDER
        Folder icon
        See Also:
        Constant Field Values
      • ICON_FOLDERITEM

        public static final java.lang.String ICON_FOLDERITEM
        Folder item icon
        See Also:
        Constant Field Values
      • ICON_COMPUTER

        public static final java.lang.String ICON_COMPUTER
        Computer icon
        See Also:
        Constant Field Values
      • ICON_TIMESHEET

        public static final java.lang.String ICON_TIMESHEET
        Time sheet
        See Also:
        Constant Field Values
      • ICONDEC_SEARCH

        public static final java.lang.String ICONDEC_SEARCH
        Search icon decoration
        See Also:
        Constant Field Values
      • ICONDEC_LIST

        @Deprecated
        public static final java.lang.String ICONDEC_LIST
        Deprecated.
        List icon decoration
      • ICONDEC_UPDATE

        @Deprecated
        public static final java.lang.String ICONDEC_UPDATE
        Deprecated.
        Update icon decoration
      • ICONDEC_CREATE

        @Deprecated
        public static final java.lang.String ICONDEC_CREATE
        Deprecated.
        Create icon decoration
      • ICONDEC_DELETE

        @Deprecated
        public static final java.lang.String ICONDEC_DELETE
        Deprecated.
        Delete icon decoration
      • ICONDEC_LINK

        public static final java.lang.String ICONDEC_LINK
        Link icon decoration
        See Also:
        Constant Field Values
      • ICONDEC_HELP

        public static final java.lang.String ICONDEC_HELP
        Help icon decoration
        See Also:
        Constant Field Values
      • ICONDEC_LOCK

        @Deprecated
        public static final java.lang.String ICONDEC_LOCK
        Deprecated.
        Lock icon decoration
      • ICONDEC_UNLOCK

        @Deprecated
        public static final java.lang.String ICONDEC_UNLOCK
        Deprecated.
        Unlock icon decoration
      • ICONDEC_XML

        public static final java.lang.String ICONDEC_XML
        XML icon decoration
        See Also:
        Constant Field Values
      • ICONDEC_CSV

        public static final java.lang.String ICONDEC_CSV
        CSV icon decoration
        See Also:
        Constant Field Values
      • ICONDEC_SELECT

        public static final java.lang.String ICONDEC_SELECT
        CSV icon decoration
        See Also:
        Constant Field Values
      • TAB_ON

        public static final java.lang.String TAB_ON
        Active grouped tab constant
        See Also:
        Constant Field Values
      • TAB_OFF

        public static final java.lang.String TAB_OFF
        Inactive grouped tab constant
        See Also:
        Constant Field Values
      • TAB_FORM_ON

        public static final java.lang.String TAB_FORM_ON
        Active form tab constant
        See Also:
        Constant Field Values
      • TAB_FORM_OFF

        public static final java.lang.String TAB_FORM_OFF
        Inactive form tab constant
        See Also:
        Constant Field Values
      • TAB_EXT_ON

        public static final java.lang.String TAB_EXT_ON
        Active extended tab constant
        See Also:
        Constant Field Values
      • TAB_EXT_OFF

        public static final java.lang.String TAB_EXT_OFF
        Inactive extended tab constant
        See Also:
        Constant Field Values
      • DATA_URL_NULL

        public static final java.lang.String DATA_URL_NULL
        Null data URL
        See Also:
        Constant Field Values
      • DATA_URL_BLANK

        public static final java.lang.String DATA_URL_BLANK
        Data URL for a GIF image with one single transparent pixel
        See Also:
        Constant Field Values
    • Constructor Detail

      • HTMLTool

        public HTMLTool()
        Constructor
        Don't instantiate this class, it only provides static variables and methods
    • Method Detail

      • setRoot

        @Deprecated
        public static void setRoot​(java.lang.String cp)
        Deprecated.
        Does nothing
      • getRoot

        public static java.lang.String getRoot()
        Get webapp root = context path, same as Globals.getContextPath()
        Returns:
        webapp root
      • getUIRoot

        public static java.lang.String getUIRoot()
        Get UI root
        Returns:
        UI root
      • getAPIRoot

        public static java.lang.String getAPIRoot()
        Get API root
        Returns:
        API root
      • getIORoot

        public static java.lang.String getIORoot()
        Get I/O root
        Returns:
        I/O root
      • getGitRoot

        public static java.lang.String getGitRoot()
        Get Git root
        Returns:
        Git root
      • globalJSVars

        @Deprecated
        public static java.lang.String globalJSVars()
        Deprecated.
        use jsGlobals
        Returns:
        jsGlobals
      • jsConstants

        public static java.lang.String jsConstants()
        JavaScript constants
        Returns:
        Javascript constants declarations
      • jsGlobals

        public static java.lang.String jsGlobals​(Grant g)
        JavaScript globals
        Parameters:
        g - Grant
        Returns:
        Javascript globals declarations
      • jsTexts

        public static java.lang.String jsTexts​(Grant g,
                                               java.lang.String regex)
        JavaScript texts
        Parameters:
        g - Grant
        regex - Optional regex to filter texts (null means all texts)
        Returns:
        Javascript texts declarations
      • jsOnload

        public static java.lang.String jsOnload​(java.lang.String js)
        JavaScript onload statement
        Parameters:
        js - JavaScript code
        Returns:
        Javascript onload statement
      • jsBlock

        public static java.lang.String jsBlock​(java.lang.String js)
        Encloses JavaScript code into start/end tags
        Parameters:
        js - JavaScript code
        Returns:
        Javascript tag block
      • jsInclude

        public static java.lang.String jsInclude​(java.lang.String jsFile)
        Includes JavaScript file
        Parameters:
        jsFile - JavaScript file
        Returns:
        JavaScript file include tag
      • jsInclude

        public static java.lang.String jsInclude​(java.lang.String jsFile,
                                                 java.lang.String encoding)
        Includes JavaScript file in specified encoding
        Parameters:
        jsFile - JavaScript file
        encoding - File encoding
        Returns:
        JavaScript file include tag
      • jsInclude

        public static java.lang.String jsInclude​(java.lang.String jsFile,
                                                 java.lang.String encoding,
                                                 boolean async,
                                                 boolean defer)
        Includes JavaScript file in specified encoding
        Parameters:
        jsFile - JavaScript file
        encoding - File encoding
        async - Asynchronous loading?
        defer - Defered execution?
        Returns:
        JavaScript file include tag
      • jsIncludes

        public static java.lang.String jsIncludes​(java.lang.String[] jsFiles)
        Includes JavaScript files
        Parameters:
        jsFiles - JavaScript files
        Returns:
        JavaScript file include tags
      • jsIncludes

        public static java.lang.String jsIncludes​(java.lang.String[] jsFiles,
                                                  java.lang.String encoding)
        Includes JavaScript files in specified encoding
        Parameters:
        jsFiles - JavaScript files
        encoding - File encoding
        Returns:
        JavaScript file include tags
      • jsIncludes

        public static java.lang.String jsIncludes​(java.lang.String[] jsFiles,
                                                  java.lang.String encoding,
                                                  boolean async,
                                                  boolean defer)
        Includes JavaScript files in specified encoding
        Parameters:
        jsFiles - JavaScript files
        encoding - File encoding
        async - Asynchronous loading?
        defer - Defered execution?
        Returns:
        JavaScript file include tags
      • cssBlock

        public static java.lang.String cssBlock​(java.lang.String css)
        Encloses CSS styles into start/end tags
        Parameters:
        css - CSS styles
        Returns:
        CSS tag block
      • cssInclude

        public static java.lang.String cssInclude​(java.lang.String cssFile)
        Includes CSS file
        Parameters:
        cssFile - CSS file
        Returns:
        CSS file include tag
      • cssInclude

        public static java.lang.String cssInclude​(java.lang.String cssFile,
                                                  java.lang.String encoding)
        Includes CSS file in specified encoding
        Parameters:
        cssFile - CSS file
        encoding - File encoding
        Returns:
        CSS file include tag
      • cssIncludes

        public static java.lang.String cssIncludes​(java.lang.String[] cssFiles)
        Includes CSS files
        Parameters:
        cssFiles - CSS files
        Returns:
        CSS file include tags
      • cssIncludes

        public static java.lang.String cssIncludes​(java.lang.String[] cssFiles,
                                                   java.lang.String encoding)
        Includes CSS files in specified encoding
        Parameters:
        cssFiles - CSS files
        encoding - File encoding
        Returns:
        CSS file include tags
      • lessToCss

        public static java.lang.String lessToCss​(java.lang.String less)
        Converts LESS string to CSS
        Parameters:
        less - LESS string
        Returns:
        CSS
      • lessToCss

        public static java.lang.String lessToCss​(java.io.File less)
                                          throws java.io.IOException
        Converts LESS file to CSS
        Parameters:
        less - LESS file
        Returns:
        CSS
        Throws:
        java.io.IOException - I/O exception
      • jsMinify

        public static java.lang.String jsMinify​(java.lang.String js)
        Minifies JavaScript code
        Parameters:
        js - JavaScript code
        Returns:
        Minified JavaScript code
        Throws:
        java.lang.Exception - exception
      • cssMinify

        public static java.lang.String cssMinify​(java.lang.String css)
        Minifies CSS stylesheet
        Parameters:
        css - CSS stylesheet
        Returns:
        Minified CSS stylesheet
        Throws:
        java.lang.Exception - exception
      • javascriptStatement

        public static java.lang.String javascriptStatement​(java.lang.String js)
        Simple JavaScript statement
        Parameters:
        js - JavaScript statement
      • isJavascriptStatement

        public static boolean isJavascriptStatement​(java.lang.String s)
        Is specified value a simple JavaScript statement?
        Parameters:
        s - Value to check
      • getScriptFromJavascriptStatement

        public static java.lang.String getScriptFromJavascriptStatement​(java.lang.String s)
        Get script from JavaScript statement
        Parameters:
        s - Value to check
      • redirectStatement

        public static java.lang.String redirectStatement​(java.lang.String url)
        Simple redirect statement
      • isRedirectStatement

        public static boolean isRedirectStatement​(java.lang.String s)
        Is specified value a simple redirect statement?
        Parameters:
        s - Value to check
      • getURLFromRedirectStatement

        public static java.lang.String getURLFromRedirectStatement​(java.lang.String s)
        Get URL from Redirect statement
        Parameters:
        s - Value to check
      • redirectJS

        public static java.lang.String redirectJS​(java.lang.String url)
        Javascript (client side) redirect (suitable for both responsive and legacy UI)
        Parameters:
        url - URL to redirect to
        Returns:
        Javascript statement
      • getFrameFromZoneCode

        public static java.lang.String getFrameFromZoneCode​(java.lang.String zone)
        Returns frame JS naming from zone code.
        Parameters:
        zone - Zone code
        Returns:
        Frame JS naming
      • getDivIdFromZoneCode

        public static java.lang.String getDivIdFromZoneCode​(java.lang.String zone)
        Returns div id from zone code.
        Parameters:
        zone - Zone code
        Returns:
        Div id
      • extractHref

        public static java.lang.String extractHref​(java.lang.String link)
        Extract href part of an <a/> link
        Parameters:
        link - Link tag to extract href from
        Returns:
        href
      • extractTarget

        public static java.lang.String extractTarget​(java.lang.String link)
        Extract target part of an <a/> link
        Parameters:
        link - Link tag to extract target from
        Returns:
        target
      • extractURL

        public static java.lang.String extractURL​(java.lang.String url,
                                                  java.lang.String addParams)
        Extract an URL from a string
        Parameters:
        url - String to extract URL from
        addParams - Additional parameters to append to URL
        Returns:
        Extracted URL
      • getAbsoluteURL

        public static java.lang.String getAbsoluteURL​(java.lang.String url,
                                                      boolean pub)
        Return absolute URL from URL
        Parameters:
        url - URL
        pub - Public URL ?
        Returns:
        Absolute URL
      • getAbsoluteURL

        public static java.lang.String getAbsoluteURL​(java.lang.String url)
        Get absolute URL from potentially relative URL
        Parameters:
        url - Potentially relative URL
        Returns:
        Absolute URL
      • getUniqueID

        public static java.lang.String getUniqueID​(Grant grant)
        Get a unique hash ID for grant
        Parameters:
        grant - Grant
        Returns:
        Unique hash ID
      • standardCSS

        public static java.lang.String[] standardCSS​(Grant grant,
                                                     boolean htmleditor,
                                                     boolean charts,
                                                     boolean calendar)
        Standard CSS stylesheets
        Parameters:
        grant - User grant
        htmleditor - Include HTML editor stylesheets
        charts - Include HTML charts stylesheets
        calendar - Include calendar stylesheets
        Returns:
        Standard CSS stylesheets
      • standardJS

        public static java.lang.String[] standardJS​(Grant grant,
                                                    boolean calendar,
                                                    boolean calculator,
                                                    boolean colorpicker,
                                                    boolean htmleditor,
                                                    boolean undoredo,
                                                    boolean treeview,
                                                    boolean completion,
                                                    boolean charts)
        Standard JS scripts
        Parameters:
        grant - User grant
        calendar - Include calendars scripts
        calculator - Include calculator scripts
        colorpicker - Include color picker scripts
        htmleditor - Include HTML editor scripts
        undoredo - Include Undo Redo features scripts
        treeview - Include Tree view scripts
        completion - Include completion picker scripts
        charts - Include HTML charts scripts
        Returns:
        Standard JS scripts
      • coreJS

        @Deprecated
        public void coreJS()
        Deprecated.
        Core now needs grant parameter
      • coreJS

        public static java.lang.String coreJS​(Grant g)
        Core JS script
        Parameters:
        g - Grant
        Returns:
        Core JS script
      • toolsJS

        public static java.lang.String toolsJS()
        Tools JS script
        Returns:
        Tools JS script
      • servicesJS

        @Deprecated
        public static java.lang.String servicesJS()
        Deprecated.
        Synchronous services JS has been removed, Simplicite.Ajax must be used
        Returns:
        Nothing
      • calendarJS

        public static java.lang.String calendarJS()
        Calendar JS script
        Returns:
        Calendar JS script
      • calendarCSS

        public static java.lang.String calendarCSS()
        Calendar CSS script
        Returns:
        Calendar CSS script
      • calculatorJS

        public static java.lang.String calculatorJS()
        Calculator JS script
        Returns:
        Calculator JS script
      • colorpickerJS

        public static java.lang.String colorpickerJS()
        Color picker JS script
        Returns:
        Color picker JS script
      • undoredoJS

        public static java.lang.String undoredoJS()
        UndoRedo JS script
        Returns:
        UndoRedo JS script
      • treeviewJS

        public static java.lang.String treeviewJS()
        Treeview JS script
        Returns:
        Treeview JS script
      • completionJS

        public static java.lang.String completionJS()
        Completion JS script
        Returns:
        Completion JS script
      • uiToolsJS

        public static java.lang.String uiToolsJS()
        Legacy UI tools JS script
        Returns:
        Legacy UI tools JS script
      • uiToolsCSS

        public static java.lang.String uiToolsCSS()
        Legacy UI tools CSS stylesheet
        Returns:
        Legacy UI CSS stylesheet
      • ajaxJS

        public static java.lang.String[] ajaxJS()
        Ajax JS scripts
        Returns:
        Ajax JS scripts
      • ajaxJS

        public static java.lang.String[] ajaxJS​(boolean bundle)
        Ajax JS scripts
        Parameters:
        bundle - Single bundle file instead of individual files
        Returns:
        Ajax JS scripts
      • uiJS

        public static java.lang.String[] uiJS()
        UI JS scripts (Note: it includes Ajax scripts)
        Returns:
        UI JS scripts
      • modelerCSS

        public static java.lang.String[] modelerCSS​(Grant grant)
        Modeler CSS stylesheets
        Parameters:
        grant - Grant
        Returns:
        Modeler CSS stylesheets
      • modelerJS

        public static java.lang.String[] modelerJS()
        Modeler JS scripts
        Returns:
        js
      • cleditorCSS

        @Deprecated
        public static java.lang.String[] cleditorCSS()
        Deprecated.
        CLEditor is not available anymore
      • cleditorJS

        @Deprecated
        public static java.lang.String[] cleditorJS()
        Deprecated.
        CLEditor is not available anymore
      • tinymceJS

        public static java.lang.String[] tinymceJS()
        TinyMCE® HTML editor JS scripts
        Returns:
        TinyMCE® JS scripts
      • htmleditorCSS

        public static java.lang.String[] htmleditorCSS()
        HTML editor CSS stylesheets
        Returns:
        HTML editor CSS stylesheets
      • htmleditorJS

        public static java.lang.String[] htmleditorJS()
        HTML editor JS scripts
        Returns:
        HTML editor JS scripts
      • fullcalendarCSS

        public static java.lang.String[] fullcalendarCSS()
        Fullcalendar® CSS stylesheets
        Returns:
        Fullcalendar® CSS stylesheets
      • fullcalendarJS

        public static java.lang.String[] fullcalendarJS()
        Fullcalendar JS scripts (in default language = english)
        Returns:
        Fullcalendar® JS scripts
      • fullCalendarLang

        public static java.lang.String fullCalendarLang​(java.lang.String lang)
        Fullcalendar JS language code from Simplicite(R) language code
        Parameters:
        lang - Simplicite(R) language code (e.g. getGrant().getLang())
        Returns:
        Fullcalendar® JS scripts
      • fullcalendarJS

        public static java.lang.String[] fullcalendarJS​(java.lang.String lang)
        Fullcalendar JS scripts (in specified language)
        Parameters:
        lang - Simplicite(R) language code (e.g. getGrant().getLang())
        Returns:
        Fullcalendar® JS scripts
      • highlightJS

        public static java.lang.String highlightJS()
        Highlight® JS script
        Returns:
        Highlight® JS script
      • highlightCSS

        public static java.lang.String highlightCSS()
        Highlight® CSS stylesheet
        Returns:
        Highlight® CSS stylesheets
      • docCSS

        public static java.lang.String docCSS()
        Documentation CSS stylesheet
        Returns:
        Documentation UI CSS stylesheet
      • markdownCSS

        public static java.lang.String[] markdownCSS()
        Markdown CSS stylesheets
        Returns:
        Markdown CSS stylesheets
      • markdownJS

        public static java.lang.String[] markdownJS()
        Markdown JS scripts
        Returns:
        Markdown JS scripts
      • mustacheJS

        public static java.lang.String[] mustacheJS()
        Mustache® JS script
        Returns:
        Mustache® JS scripts
      • jsontreeJS

        public static java.lang.String jsontreeJS()
        JsonTreeViewer® JS script
        Returns:
        JsonTreeViewer® JS script
      • jsontreeCSS

        public static java.lang.String jsontreeCSS()
        JsonTreeViewer® CSS stylesheet
        Returns:
        JsonTreeViewer® CSS stylesheets
      • leafletJS

        public static java.lang.String leafletJS()
        OpenStreetMap leaflet® JS script
        Returns:
        OpenStreetMap leaflet® JS script
      • leafletCSS

        public static java.lang.String leafletCSS()
        OpenStreetMap leaflet® CSS stylesheet
        Returns:
        OpenStreetMap leaflet® CSS stylesheets
      • bootstrapCSS

        public static java.lang.String[] bootstrapCSS()
        Bootstrap® default CSS stylesheets
        Returns:
        Bootstrap® default CSS stylesheets
      • bootstrapCSS

        public static java.lang.String[] bootstrapCSS​(java.lang.String theme)
        Bootstrap® CSS stylesheets
        Parameters:
        theme - Theme name (empty means default theme)
        Returns:
        Bootstrap® CSS stylesheets
      • bootstrapCSS

        public static java.lang.String[] bootstrapCSS​(java.lang.String theme,
                                                      boolean datetimepicker)
        Bootstrap® CSS stylesheets
        Parameters:
        theme - Theme name (empty means default theme)
        datetimepicker - Date time picker ?
        Returns:
        Bootstrap® default CSS stylesheets
      • bootstrapJS

        public static java.lang.String[] bootstrapJS()
        Bootstrap® JS scripts
        Returns:
        Bootstrap® JS scripts
      • bootstrapJS

        public static java.lang.String[] bootstrapJS​(boolean datetimepicker,
                                                     java.lang.String lang)
        Bootstrap JS scripts
        Parameters:
        datetimepicker - Date time picker ?
        lang - Date time picker language (null if datatimepicker = false)
        Returns:
        Bootstrap® JS scripts
      • bootboxJS

        public static java.lang.String[] bootboxJS()
        BootBox® JS scripts
        Returns:
        BootBox® default JS scripts
      • fontawsomeJS

        public static java.lang.String[] fontawsomeJS()
        Font Awsome® icons JS
      • compatCSS

        public static java.lang.String compatCSS​(java.lang.String theme)
        Legacy UI compatibility UI CSS stylesheet
        Parameters:
        theme - Theme
        Returns:
        Legacy UI compatibility CSS stylesheet
      • applicationCSS

        public static java.lang.String[] applicationCSS​(Grant grant)
        Application specific CSS stylesheets
        Parameters:
        grant - User grant
        Returns:
        Application CSS stylesheets
      • applicationJS

        public static java.lang.String[] applicationJS​(Grant grant)
        Application specific JS script
        Parameters:
        grant - User grant
        Returns:
        Application JS scripts
      • mainPageCSS

        public static java.lang.String[] mainPageCSS​(Grant grant)
        Main page additional CSS stylesheets
        Parameters:
        grant - Grant
        Returns:
        Main page additional CSS stylesheets
      • mainPageJS

        public static java.lang.String[] mainPageJS()
        Main page additional JS scripts
        Returns:
        Main page additional JS scripts
      • winIEIncludes

        public static java.lang.String winIEIncludes​(boolean canvas)
        Specific IE compatibility include headers
        Parameters:
        canvas - Include excanvas lib ?
        Returns:
        headers
      • winIEWarning

        public static java.lang.String winIEWarning()
        Old IE warning
        Returns:
        Old IE warning HTML
      • gmapJS

        public static java.lang.String[] gmapJS​(Grant g)
        GoogleMaps® JS scripts
        Returns:
        GoogleMaps® JS scripts
      • gmapJS

        public static java.lang.String[] gmapJS()
        GoogleMaps® JS scripts
        Returns:
        GoogleMaps® JS scripts
      • aceJS

        public static java.lang.String[] aceJS()
        Ace® editor additional JS scripts
        Returns:
        Ace® editor additional JS scripts
      • jqplotCSS

        public static java.lang.String[] jqplotCSS()
        JQPlot® CSS stylesheets
        Returns:
        JQPlot® CSS stylesheets
      • jqplotJS

        public static java.lang.String[] jqplotJS()
        JQPlot® additional JS scripts
        Returns:
        JQPlot® JS scripts
      • chartJS

        public static java.lang.String[] chartJS()
        Chart.js JS scripts
        Returns:
        Chart.js® JS scripts
      • getManifestURL

        public static java.lang.String getManifestURL​(java.lang.String sessionId)
        Get manifest URL
        Parameters:
        sessionId - Session ID
        Returns:
        Manifest URL
      • pageIncludes

        public static java.lang.String pageIncludes​(Grant grant,
                                                    java.lang.String disp,
                                                    boolean standard,
                                                    boolean calendar,
                                                    boolean calculator,
                                                    boolean colorpicker,
                                                    boolean htmleditor,
                                                    boolean undoredo,
                                                    boolean treeview,
                                                    boolean modeler,
                                                    boolean completion,
                                                    boolean charts,
                                                    java.lang.String extrahead,
                                                    java.lang.String[] extracss,
                                                    java.lang.String[] extrajs,
                                                    java.lang.String page)

        HTML page headers

        Parameters:
        grant - User grant
        disp - Disposition
        standard - True for adding standard styles and javascript
        calendar - Include calendars
        calculator - Include calculator
        colorpicker - Include color picker
        htmleditor - Include HTML editor
        undoredo - Include undo-redo features
        treeview - Include tree view
        modeler - Include modeler
        completion - Include completion picker
        charts - Include HTML charts
        extrahead - Extra header content
        extracss - Extra CSS includes
        extrajs - Extra JavaScript includes
        page - Optional page name (can be null)
        Returns:
        Page headers
      • openSimplePage

        public static java.lang.String openSimplePage​(java.lang.String title,
                                                      java.lang.String[] extracss,
                                                      java.lang.String[] extrajs)

        Opens simple HTML page

        Parameters:
        title - Page title
        extracss - Extra stylesheet
        extrajs - Extra javascripts
        Returns:
        html
      • openPage

        public static java.lang.String openPage​(Grant grant,
                                                java.lang.String title,
                                                java.lang.String disp,
                                                boolean std,
                                                boolean calend,
                                                boolean calc,
                                                boolean color,
                                                boolean htmledit,
                                                boolean undoredo,
                                                boolean treeview,
                                                boolean completion,
                                                boolean charts,
                                                java.lang.String extrahead,
                                                java.lang.String[] extracss,
                                                java.lang.String[] extrajs,
                                                java.lang.String cls)

        Opens HTML page

        Parameters:
        grant - User grant
        title - Page title
        disp - Disposition
        std - True for adding standard styles and javascript
        calend - Include calendars
        calc - Include calculator
        color - Include color picker
        htmledit - Include HTML editor
        undoredo - Include Undo Redo features
        treeview - Include Tree view
        completion - Include completion picker
        charts - Include HTML charts (also needs HTML_CHARTS system parameter)
        extrahead - Extra header content
        extracss - Extra CSS includes
        extrajs - Extra JavaScript includes
        cls - CSS class(es) for body
        Returns:
        Beginning of an HTML Page
      • domainRelaxing

        public static java.lang.String domainRelaxing​(Grant g)
      • help

        public static java.lang.String help​(java.lang.String help)

        Standard help

        Parameters:
        help - Help content
        Returns:
        HTML for help
      • title

        public static java.lang.String title​(Grant grant,
                                             java.lang.String title,
                                             java.lang.String iconCode,
                                             java.lang.String iconDecCode,
                                             java.lang.String nav,
                                             java.lang.String help)

        Standard page title

        Parameters:
        grant - User rights
        title - Title
        iconCode - Code for icon (e.g. HTMLTool.ICON_HOME)
        iconDecCode - Code for icon decoration (e.g. HTMLTool.ICONDEC_SEARCH)
        nav - Current navigation railway to add below Title
        help - Help displayed below title block
        Returns:
        HTML for title
      • titleButtons

        public static java.lang.String titleButtons​(java.lang.String[] btns)

        Title buttons

        Parameters:
        btns - Buttons
        Returns:
        Title buttons
      • closePage

        public static java.lang.String closePage()

        Closes HTML page

        Returns:
        End of an HTML page
      • openExtraZone

        public static java.lang.String openExtraZone​(java.lang.String icon,
                                                     java.lang.String title)

        Opens HTML extra zone

        Parameters:
        icon - Extra zone icon
        title - Extra zone title
        Returns:
        html
      • openExtraZone

        @Deprecated
        public static java.lang.String openExtraZone​(java.lang.String icon,
                                                     java.lang.String title,
                                                     java.lang.String id,
                                                     boolean collapsible,
                                                     boolean collapsed)
        Deprecated.
        Parameters:
        icon - Extra zone icon
        title - Extra zone title
        id - Extra zone id (must be non null if collapsible = true)
        collapsible - Collapsible zone ?
        collapsed - Collapsed by default ?
        Returns:
        Extra zone HTML openning tags
      • openExtraZone

        @Deprecated
        public static java.lang.String openExtraZone​(java.lang.String icon,
                                                     java.lang.String title,
                                                     java.lang.String id,
                                                     boolean collapsible,
                                                     boolean collapsed,
                                                     int fixedHeight,
                                                     java.lang.String cls)
        Deprecated.
        Parameters:
        icon - Extra zone icon
        title - Extra zone title
        id - Extra zone id (must be non null if collapsible = true)
        collapsible - Collapsible zone ?
        collapsed - Collapsed by default ?
        fixedHeight - Fixed height (0 means no fixedHeight)
        cls - CSS class(es) (defaults to "extra")
        Returns:
        Extra zone HTML openning tags
      • openExtraZone

        public static java.lang.String openExtraZone​(Grant g,
                                                     java.lang.String icon,
                                                     java.lang.String title,
                                                     java.lang.String id,
                                                     boolean collapsible,
                                                     boolean collapsed,
                                                     int fixedHeight,
                                                     java.lang.String cls)

        Opens HTML extra zone (with extended parameters)

        Parameters:
        g - Grant
        icon - Extra zone icon
        title - Extra zone title
        id - Extra zone id (must be non null if collapsible = true)
        collapsible - Collapsible zone ?
        collapsed - Collapsed by default ?
        fixedHeight - Fixed height (0 means no fixedHeight)
        cls - CSS class(es) (defaults to "extra")
        Returns:
        Extra zone HTML openning tags
      • closeExtraZone

        public static java.lang.String closeExtraZone()

        Closes HTML extra zone

        Returns:
        Extra zone HTML closing tags
      • extraZone

        public static java.lang.String extraZone​(java.lang.String icon,
                                                 java.lang.String title,
                                                 java.lang.String content)

        HTML extra zone

        Parameters:
        icon - Extra zone icon
        title - Extra zone title
        content - HTML content
        Returns:
        Extra zone HTML
      • getFormId

        public static java.lang.String getFormId​(java.lang.String name)

        Formats form name into DOM Id

        Parameters:
        name - Form name
        Returns:
        Form DOM Id
      • getFormDivId

        public static java.lang.String getFormDivId​(java.lang.String formName,
                                                    java.lang.String name)
      • getFormInputId

        public static java.lang.String getFormInputId​(java.lang.String formName,
                                                      java.lang.String name)
      • getFormButtonTransitionId

        public static java.lang.String getFormButtonTransitionId​(java.lang.String formName,
                                                                 java.lang.String name)
      • getFormButtonId

        public static java.lang.String getFormButtonId​(java.lang.String formName,
                                                       java.lang.String name)
      • getFormLinkId

        public static java.lang.String getFormLinkId​(java.lang.String formName,
                                                     java.lang.String name)
      • getFormPopupId

        public static java.lang.String getFormPopupId​(java.lang.String formName,
                                                      java.lang.String name)
      • getFormAreaId

        public static java.lang.String getFormAreaId​(java.lang.String formName,
                                                     java.lang.String name)
      • getFormCellId

        public static java.lang.String getFormCellId​(java.lang.String formName,
                                                     java.lang.String name)
      • getFormRowId

        public static java.lang.String getFormRowId​(java.lang.String formName,
                                                    java.lang.String name)
      • getFormObjId

        public static java.lang.String getFormObjId​(java.lang.String formName,
                                                    java.lang.String name)
      • getFormFunctionId

        public static java.lang.String getFormFunctionId​(java.lang.String formName,
                                                         java.lang.String name)
      • getFormFieldId

        public static java.lang.String getFormFieldId​(java.lang.String formName,
                                                      ObjectField f)
      • getFormVarId

        public static java.lang.String getFormVarId​(java.lang.String formName,
                                                    java.lang.String name)
      • openForm

        public static java.lang.String openForm​(java.lang.String formName,
                                                java.lang.String action,
                                                java.lang.String method,
                                                boolean multipart,
                                                java.lang.String extraTags)

        Opens managed form with optional extra tags (e.g. action="", method="", ...)

        Parameters:
        formName - Form name
        action - Action (defaults to javascript:)
        method - Method (defaults to POST, NB: POST forms are multipart forms)
        multipart - Multipart ?
        extraTags - Extra tags to append to <form> tag
        Returns:
        html
      • openSimpleForm

        public static java.lang.String openSimpleForm​(java.lang.String formName,
                                                      java.lang.String action,
                                                      java.lang.String method)

        Opens simple action form

        Parameters:
        formName - Form name
        action - Form action URL
        method - Form method
        Returns:
        html
      • openSimpleMultipartForm

        public static java.lang.String openSimpleMultipartForm​(java.lang.String formName,
                                                               java.lang.String action)

        Opens simple multipart action form

        Parameters:
        formName - Form name
        action - Form action URL
        Returns:
        html
      • closeForm

        public static java.lang.String closeForm​(java.lang.String formName)

        Closes form

        Parameters:
        formName - Form name
        Returns:
        html
      • closeForm

        public static java.lang.String closeForm​(java.lang.String formName,
                                                 java.lang.String defaultInputName,
                                                 java.lang.String defaultButtonName)

        Closes form with optional default focus on a designated input field and optional default button activated on pressing the return key

        Parameters:
        formName - Form name
        defaultInputName - Default input field name (can be null)
        defaultButtonName - Default button name (can be null)
        Returns:
        html
      • submitForm

        public static java.lang.String submitForm​(java.lang.String formName,
                                                  java.lang.String url,
                                                  java.lang.String buttonId)

        Standard call to "submitForm()" JavaScript function

        Parameters:
        formName - Form name
        url - Form URL
        buttonId - Optional submit button Id
        Returns:
        JavaScript statement for calling "submitForm()" function
      • submit

        public static java.lang.String submit​(java.lang.String formName,
                                              java.lang.String name,
                                              java.lang.String label,
                                              java.lang.String url,
                                              java.lang.String cls,
                                              int tab)

        Submit button (type = submit)

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        url - URL
        cls - CSS class (defaults to "button")
        tab - Tab index (0 = no tab index tag)
        Returns:
        Submit button input HTML tag
      • link

        public static java.lang.String link​(java.lang.String formName,
                                            java.lang.String name,
                                            java.lang.String label,
                                            java.lang.String targetZone,
                                            java.lang.String url,
                                            java.lang.String confirmMsg,
                                            java.lang.String extraTags,
                                            java.lang.String cls,
                                            int tab)
        Anchor link with target zone and confirm dialog management.
        Parameters:
        formName - Form name
        name - Link name
        label - Link label
        targetZone - Target zone
        url - URL
        confirmMsg - Label to confirm
        extraTags - Extra HTML tags
        cls - CSS class(es) (defaults to "work")
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • button

        public static java.lang.String button​(java.lang.String formName,
                                              java.lang.String name,
                                              java.lang.String label,
                                              java.lang.String url,
                                              java.lang.String cls,
                                              int tab)

        Submit button (type = button)

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        url - URL
        cls - CSS class(es) (defaults to "button")
        tab - Tab index (0 = no tab index tag)
        Returns:
        Button input HTML tag
      • imageButton

        public static java.lang.String imageButton​(java.lang.String formName,
                                                   java.lang.String name,
                                                   java.lang.String label,
                                                   java.lang.String src,
                                                   java.lang.String url,
                                                   int tab)

        Submit button (type = image)

        Parameters:
        formName - Form name
        name - Button name
        label - Button alt text
        src - Image src
        url - URL
        tab - Tab index (0 = no tab index tag)
        Returns:
        Image button input HTML tag
      • buttonJS

        public static java.lang.String buttonJS​(java.lang.String formName,
                                                java.lang.String name,
                                                java.lang.String label,
                                                java.lang.String js,
                                                java.lang.String cls,
                                                int tab)

        Button (type = button) with custom JavaScript on the onclick event

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        js - Custom Javascript statement, put in the onclick="" (beware of using ' or \\" for quotes inside JavaScript statement)
        cls - CSS class(es) (defaults to "button")
        tab - Tab index (0 = no tab index tag)
        Returns:
        Button input HTML tag
      • submitJS

        public static java.lang.String submitJS​(java.lang.String formName,
                                                java.lang.String name,
                                                java.lang.String label,
                                                java.lang.String js,
                                                java.lang.String cls,
                                                int tab)

        Button (type = submit) with custom JavaScript on the onclick event

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        js - Custom Javascript statement, put in the onclick="" (beware of using ' or \\" for quotes inside JavaScript statement)
        cls - CSS class(es) (defaults to "button")
        tab - Tab index (0 = no tab index tag)
        Returns:
        Button input HTML tag
      • imageJS

        public static java.lang.String imageJS​(java.lang.String formName,
                                               java.lang.String name,
                                               java.lang.String label,
                                               java.lang.String src,
                                               java.lang.String js,
                                               int tab)

        Simple image with custom JavaScript on the onclick event

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        src - Image source
        js - Custom Javascript statement, put in the onclick="" (beware of using ' or \\" for quotes inside JavaScript statement)
        tab - Tab index (0 = no tab index tag)
        Returns:
        Button input HTML tag
      • imageJS

        public static java.lang.String imageJS​(java.lang.String formName,
                                               java.lang.String name,
                                               java.lang.String label,
                                               java.lang.String src,
                                               java.lang.String js,
                                               java.lang.String cls,
                                               int tab)

        Simple image with custom JavaScript on the onclick event

        Parameters:
        formName - Form name
        name - Button name
        label - Button label
        src - Image source
        js - Custom Javascript statement, put in the onclick="" (beware of using ' or \\" for quotes inside JavaScript statement)
        cls - CSS class(es) (defaults to "button icon")
        tab - Tab index (0 = no tab index tag)
        Returns:
        Button input HTML tag
      • imageButtonJS

        public static java.lang.String imageButtonJS​(java.lang.String formName,
                                                     java.lang.String name,
                                                     java.lang.String label,
                                                     java.lang.String hover,
                                                     java.lang.String src,
                                                     java.lang.String onclick,
                                                     java.lang.String onblur,
                                                     boolean rightIcon,
                                                     java.lang.String cls,
                                                     int tab)

        Simple button image with custom JavaScript on the onclick event

        Parameters:
        formName - Form name
        name - Button name
        label - Button label (html syntax to display in a span)
        hover - Button hover text
        src - Optional image source
        onclick - Custom Javascript statement, put in the onclick="" (beware of using ' or \\" for quotes inside JavaScript statement)
        onblur - Custom Javascript statement, put in the onblur="" (beware of using ' or \\" for quotes inside JavaScript statement)
        cls - CSS class(es) (defaults to "button")
        tab - Tab index (0 = no tab index tag)
        rightIcon - Display the icon on the right side ?
        Returns:
        Button HTML tag
      • dropdownButton

        public static java.lang.String dropdownButton​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String label,
                                                      java.lang.String hover,
                                                      java.lang.String src,
                                                      java.lang.String onclick,
                                                      java.lang.String onblur,
                                                      java.lang.String cls,
                                                      int tab,
                                                      boolean rightBtn,
                                                      java.lang.String menuId,
                                                      java.util.List<java.lang.String> items,
                                                      java.lang.String clsMenu,
                                                      boolean topMenu,
                                                      boolean leftMenu)
        Display a drop down button with a items menu
        Parameters:
        g - Grant
        formName - Form name
        name - Button name
        label - HTML label: display a text button or a image if null
        hover - optional title
        src - optonal icon
        onclick - Javascript onclick (open the menu if null)
        onblur - Javascript onblur (close the menu if null)
        cls - optional button class
        tab - form tabulation
        rightBtn - Display the dropdown button on the right side
        menuId - Id of popup menu
        items - Items built with dropdownItem, or empty string=separator
        clsMenu - Menu style (default workmenu)
        topMenu - Display the menu up or down the button
        leftMenu - Display the menu on left or right
        Returns:
        HTML
      • dropdownButton

        public static java.lang.String dropdownButton​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String label,
                                                      java.lang.String hover,
                                                      java.lang.String src,
                                                      java.lang.String onclick,
                                                      java.lang.String onblur,
                                                      java.lang.String cls,
                                                      int tab,
                                                      boolean rightBtn,
                                                      java.lang.String menuId,
                                                      java.lang.String menuContent,
                                                      boolean topMenu,
                                                      boolean leftMenu)
        Display a drop down button with a popup menu
        Parameters:
        g - Grant
        formName - Form name
        name - Button name
        label - HTML label: display a text button or a image if null
        hover - optional title
        src - icon
        onclick - Javascript onclick (open the menu if null)
        onblur - Javascript onblur (close the menu if null)
        cls - optional button class
        tab - form tabulation
        rightBtn - Display the dropdown button on the right side
        menuId - Id of popup menu
        menuContent - HTML content
        topMenu - Display the menu up or down the button
        leftMenu - Display the menu on left or right
        Returns:
        HTML
      • dropdownItem

        public static java.lang.String dropdownItem​(java.lang.String popupId,
                                                    java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String icon,
                                                    java.lang.String title,
                                                    java.lang.String onclick,
                                                    java.lang.String cls,
                                                    int tab,
                                                    boolean closeOnClick)
        Dropdown item
        Parameters:
        popupId - Popup id
        formName - Optional form name
        name - Item name
        icon - Optional icon
        title - Item title
        onclick - Optional script
        cls - Optional class (default workmenu)
        tab - Tabulation
        closeOnClick - Close popup on click ?
        Returns:
        li element with spans
      • dropdownItem

        public static java.lang.String dropdownItem​(java.lang.String popupId,
                                                    java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String icon,
                                                    java.lang.String title,
                                                    java.lang.String extra,
                                                    java.lang.String onclick,
                                                    java.lang.String cls,
                                                    int tab,
                                                    boolean closeOnClick)
        Dropdown item
        Parameters:
        popupId - Popup id
        formName - Optional form name
        name - Item name
        icon - Optional icon
        title - Item title
        extra - Item extra content
        onclick - Optional script
        cls - Optional class (default workmenu)
        tab - Tabulation
        closeOnClick - Close popup on click ?
        Returns:
        li element with spans
      • hiddenInput

        public static java.lang.String hiddenInput​(java.lang.String formName,
                                                   java.lang.String name,
                                                   java.lang.String value)
        Hidden input.
        Parameters:
        formName - Form name
        name - Input name
        value - Input value
        Returns:
        HTML
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 java.lang.String value,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        readOnly - Read only ?
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String cls,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String onChange,
                                                 java.lang.String cls,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        readOnly - Read only ?
        onChange - JavaScript for onchange event
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int visualsize,
                                                 int maxsize,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String cls,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        visualsize - Visual size
        maxsize - Max input size
        value - Input value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int visualsize,
                                                 int maxsize,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String onChange,
                                                 java.lang.String cls,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        visualsize - Visual size (0=default browser size)
        maxsize - Max input size (0=unlimited)
        value - Input value
        readOnly - Read only ?
        onChange - JavaScript for onchange event
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textInput

        public static java.lang.String textInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int visualsize,
                                                 int maxsize,
                                                 java.lang.String value,
                                                 java.lang.String placeholder,
                                                 boolean readOnly,
                                                 java.lang.String onChange,
                                                 java.lang.String cls,
                                                 int tab)
        Text input.
        Parameters:
        formName - Form name
        name - Input name
        visualsize - Visual size (0=default browser size)
        maxsize - Max input size (0=unlimited)
        value - Input value
        placeholder - Placeholder message
        readOnly - Read only ?
        onChange - JavaScript for onchange event
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • passwordInput

        public static java.lang.String passwordInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int size,
                                                     java.lang.String value,
                                                     int tab)
        Password input
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • passwordInput

        public static java.lang.String passwordInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int size,
                                                     java.lang.String value,
                                                     java.lang.String cls,
                                                     int tab)
        Password input
        Parameters:
        formName - Form name
        name - Input name
        size - Max input size
        value - Input value
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • passwordInput

        @Deprecated
        public static java.lang.String passwordInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int visualsize,
                                                     int maxsize,
                                                     java.lang.String value,
                                                     java.lang.String cls,
                                                     int tab)
        Deprecated.
        Use passwordInput with one additional parameter
      • passwordInput

        public static java.lang.String passwordInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int visualsize,
                                                     int maxsize,
                                                     java.lang.String value,
                                                     boolean forceNewPassword,
                                                     java.lang.String cls,
                                                     int tab)
        Password input
        Parameters:
        formName - Form name
        name - Input name
        visualsize - Visual size
        maxsize - Max input size
        value - Input value
        forceNewPassword - Force "new password" autocompletion?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • dateInput

        public static java.lang.String dateInput​(Grant g,
                                                 java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String popupName,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String cls,
                                                 int tab)
        Date input.
        Parameters:
        g - Grant
        formName - Form name
        name - Input name
        popupName - Popup name (optional : if null a specific popup is generated)
        value - Input date value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • dateInput

        @Deprecated
        public static java.lang.String dateInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String popupName,
                                                 java.lang.String value,
                                                 boolean readOnly,
                                                 java.lang.String cls,
                                                 int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Input name
        popupName - Popup name (optional : if null a specific popup is generated)
        value - Input date value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • datetimeInput

        @Deprecated
        public static java.lang.String datetimeInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     java.lang.String popupName,
                                                     java.lang.String value,
                                                     boolean readOnly,
                                                     java.lang.String cls,
                                                     int tab)
        Deprecated.
        Date time input.
        Parameters:
        formName - Form name
        name - Input name
        popupName - Popup name (optional : if null a specific popup is generated)
        value - Input date time value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • datetimeInput

        @Deprecated
        public static java.lang.String datetimeInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     java.lang.String popupName,
                                                     java.lang.String value,
                                                     boolean readOnly,
                                                     java.lang.String cls,
                                                     int tab,
                                                     boolean time)
        Deprecated.
        Parameters:
        formName - Form name
        name - Input name
        popupName - Popup name (optional : if null a specific popup is generated)
        value - Input date time value
        readOnly - Read only ?
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        time - time
        Returns:
        html
      • fileInput

        public static java.lang.String fileInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 int tab)
        File input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max size
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • fileInput

        public static java.lang.String fileInput​(java.lang.String formName,
                                                 java.lang.String name,
                                                 int size,
                                                 java.lang.String cls,
                                                 int tab)
        File input.
        Parameters:
        formName - Form name
        name - Input name
        size - Max size (0 defaults to 100, < 0 sets 100% width style)
        cls - Class
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textareaInput

        public static java.lang.String textareaInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int cols,
                                                     int rows,
                                                     java.lang.String value,
                                                     int tab)
        Textarea input.
        Parameters:
        formName - Form name
        name - Input name
        cols - Number of columns
        rows - Number of lines
        value - Input value
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textareaInput

        public static java.lang.String textareaInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int cols,
                                                     int rows,
                                                     boolean readOnly,
                                                     java.lang.String value,
                                                     java.lang.String cls,
                                                     int tab)
        Textarea input.
        Parameters:
        formName - Form name
        name - Input name
        cols - Number of columns
        rows - Number of lines
        readOnly - Read only ?
        value - Input value
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • textareaInput

        public static java.lang.String textareaInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     int cols,
                                                     int rows,
                                                     boolean readOnly,
                                                     java.lang.String value,
                                                     java.lang.String onChange,
                                                     java.lang.String cls,
                                                     int tab)
        Textarea input.
        Parameters:
        formName - Form name
        name - Input name
        cols - Number of columns (0 defaults to 100, < 0 sets 100% width style)
        rows - Number of lines (0 defaults to 10, < 0 sets 100% height style)
        readOnly - Read only ?
        value - Input value
        onChange - JavaScript for onchange event
        cls - CSS class(es) (no default class)
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • checkBoxInput

        public static java.lang.String checkBoxInput​(java.lang.String formName,
                                                     java.lang.String name,
                                                     boolean checked,
                                                     java.lang.String value,
                                                     int tab)
        Simple checkbox.
        Parameters:
        formName - Form name
        name - Checkbox name
        checked - Checked ?
        value - Checkbox value
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • booleanInputAsSelectBox

        public static java.lang.String booleanInputAsSelectBox​(java.lang.String formName,
                                                               java.lang.String name,
                                                               java.lang.String yes,
                                                               java.lang.String no,
                                                               boolean valueSelected,
                                                               boolean value,
                                                               int tab)
        Boolean input (select box style)
        Parameters:
        formName - Form name
        name - Input name
        yes - Yes translation
        no - No translation
        valueSelected - Is a value selected by default ?
        value - Input value
        tab - Tab index (0 = no tab index tag)
        Returns:
        html
      • booleanInputAsRadioButtons

        public static java.lang.String booleanInputAsRadioButtons​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  java.lang.String yes,
                                                                  java.lang.String no,
                                                                  boolean valueSelected,
                                                                  boolean value,
                                                                  int tab)
        Boolean input (radio button style)
        Parameters:
        formName - Form name
        name - Input name
        yes - Yes translation
        no - No translation
        valueSelected - Is a value selected by default ?
        value - Input value (true/false) ?
        tab - Start tab index (0 = no tab index tag)
        Returns:
        html
      • booleanInputAsCheckBox

        public static java.lang.String booleanInputAsCheckBox​(java.lang.String formName,
                                                              java.lang.String name,
                                                              boolean value,
                                                              int tab)
        Boolean input (Check box style)
        Parameters:
        formName - Form name
        name - Input name
        value - Input value (true/false) ?
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsSelectBox

        public static java.lang.String singleListInputAsSelectBox​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  java.lang.String[] values,
                                                                  java.lang.String[] valueLabels,
                                                                  java.lang.String value,
                                                                  java.lang.String onChange,
                                                                  java.lang.String cls,
                                                                  int tab)
        Single select list (Select box style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        value - Selected value
        onChange - JavaScript for onchange event
        cls - CSS class(es) (default to \"normal\")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsSelectBox

        public static java.lang.String singleListInputAsSelectBox​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  java.lang.String[] values,
                                                                  java.lang.String[] valueLabels,
                                                                  java.lang.String value,
                                                                  java.lang.String cls,
                                                                  int tab)
        Single select list (Select box style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        value - Selected value
        cls - CSS class(es) (default to \"normal\")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsSelectBox

        public static java.lang.String singleListInputAsSelectBox​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  java.lang.String[] values,
                                                                  java.lang.String[] valueLabels,
                                                                  int selectedIndex,
                                                                  java.lang.String cls,
                                                                  int tab)
        Single select list (select box style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedIndex - Selected index (-1 = none selected)
        cls - CSS class(es) (default to \"normal\")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsSelectBox

        public static java.lang.String singleListInputAsSelectBox​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  boolean nullValue,
                                                                  java.lang.String[] values,
                                                                  java.lang.String[] valueLabels,
                                                                  java.lang.String value,
                                                                  java.lang.String onChange,
                                                                  java.lang.String cls,
                                                                  int tab)
        Single select list (select box style).
        Parameters:
        formName - Form name
        name - Input name
        nullValue - Add an intial null value
        values - Possible values
        valueLabels - Possible values labels
        value - Selected value
        onChange - JavaScript for onchange event
        cls - CSS class(es) (default to \"normal\")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsSelectBox

        public static java.lang.String singleListInputAsSelectBox​(java.lang.String formName,
                                                                  java.lang.String name,
                                                                  boolean nullValue,
                                                                  java.lang.String[] values,
                                                                  java.lang.String[] valueLabels,
                                                                  int selectedIndex,
                                                                  java.lang.String onChange,
                                                                  java.lang.String cls,
                                                                  int tab)
        Single select list (select box style).
        Parameters:
        formName - Form name
        name - Input name
        nullValue - Add an intial null value
        values - Possible values
        valueLabels - Possible values labels
        selectedIndex - Selected index (-1 = none selected)
        onChange - JavaScript for onchange event
        cls - CSS class (defaults to "normal")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsRadioButtons

        public static java.lang.String singleListInputAsRadioButtons​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     java.lang.String value,
                                                                     boolean lineBreaks,
                                                                     int tab)
        Single select list (radio button style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        value - Selected value
        lineBreaks - Forces line break after each radio button
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • singleListInputAsRadioButtons

        public static java.lang.String singleListInputAsRadioButtons​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     int selectedIndex,
                                                                     boolean lineBreaks,
                                                                     int tab)
        Single select list (radio button style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedIndex - Selected index (-1 = none selected)
        lineBreaks - Forces line break after each radio button
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsSelectBox

        public static java.lang.String multipleListInputAsSelectBox​(java.lang.String formName,
                                                                    java.lang.String name,
                                                                    int size,
                                                                    java.lang.String[] values,
                                                                    java.lang.String[] valueLabels,
                                                                    java.lang.String[] selectedValues,
                                                                    java.lang.String cls,
                                                                    int tab)
        Multiple select list (select box style).
        Parameters:
        formName - Form name
        name - Input name
        size - Select box size (height)
        values - Possible values
        valueLabels - Possible values labels
        selectedValues - Selected values (can be null)
        cls - CSS class (defaults to "normal")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsSelectBox

        public static java.lang.String multipleListInputAsSelectBox​(java.lang.String formName,
                                                                    java.lang.String name,
                                                                    int size,
                                                                    java.lang.String[] values,
                                                                    java.lang.String[] valueLabels,
                                                                    boolean[] selectedFlags,
                                                                    java.lang.String cls,
                                                                    int tab)
        Multiple select list (select box style).
        Parameters:
        formName - Form name
        name - Input name
        size - Select box size (height)
        values - Possible values
        valueLabels - Possible values labels
        selectedFlags - Selected values flags (same size as values)
        cls - CSS class (defaults to "normal")
        tab - Tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleComboBox

        public static java.lang.String multipleComboBox​(Grant g,
                                                        java.lang.String formName,
                                                        java.lang.String name,
                                                        int size,
                                                        java.lang.String[] values,
                                                        java.lang.String[] valueLabels,
                                                        java.lang.String[] selectedValues,
                                                        java.lang.String cls,
                                                        int tab)
        Multiple selection in a drop-down combobox
        Parameters:
        g - Grant
        formName - Form name
        name - Input name
        size - size
        values - Possible values
        valueLabels - Possible values labels
        selectedValues - Selected values (can be null)
        cls - class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleComboBox

        @Deprecated
        public static java.lang.String multipleComboBox​(java.lang.String formName,
                                                        java.lang.String name,
                                                        int size,
                                                        java.lang.String[] values,
                                                        java.lang.String[] valueLabels,
                                                        java.lang.String[] selectedValues,
                                                        java.lang.String cls,
                                                        int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Input name
        size - size
        values - Possible values
        valueLabels - Possible values labels
        selectedValues - Selected values (can be null)
        cls - class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleSelectBox

        public static java.lang.String multipleSelectBox​(Grant g,
                                                         java.lang.String formName,
                                                         java.lang.String name,
                                                         int size,
                                                         java.lang.String[] values,
                                                         java.lang.String[] valueLabels,
                                                         boolean[] selectedFlags,
                                                         java.lang.String cls,
                                                         int tab)
        Multiple selection in in a drop-down combobox
        Parameters:
        g - Grant
        formName - Form name
        name - Input name
        size - size
        values - Possible values
        valueLabels - Possible values labels
        selectedFlags - Selected flags (can be null)
        cls - class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleSelectBox

        @Deprecated
        public static java.lang.String multipleSelectBox​(java.lang.String formName,
                                                         java.lang.String name,
                                                         int size,
                                                         java.lang.String[] values,
                                                         java.lang.String[] valueLabels,
                                                         boolean[] selectedFlags,
                                                         java.lang.String cls,
                                                         int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Input name
        size - size
        values - Possible values
        valueLabels - Possible values labels
        selectedFlags - Selected flags (can be null)
        cls - class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsCheckBoxes

        @Deprecated
        public static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     java.lang.String[] selectedValues,
                                                                     boolean lineBreaks,
                                                                     int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedValues - Selected values (can be null)
        lineBreaks - Forces line break
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsCheckBoxes

        public static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     java.lang.String[] selectedValues,
                                                                     int lineBreaksEach,
                                                                     int tab)
        Multiple select list (check boxes style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedValues - Selected values (can be null)
        lineBreaksEach - Forces line break after each specified number of check boxes (0 = no line breaks)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsCheckBoxes

        @Deprecated
        public static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     boolean[] selectedFlags,
                                                                     boolean lineBreaks,
                                                                     int tab)
        Deprecated.
        Multiple select list (check boxes style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedFlags - Selected values flags (same size as values)
        lineBreaks - Forces line break after each check box
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleListInputAsCheckBoxes

        public static java.lang.String multipleListInputAsCheckBoxes​(java.lang.String formName,
                                                                     java.lang.String name,
                                                                     java.lang.String[] values,
                                                                     java.lang.String[] valueLabels,
                                                                     boolean[] selectedFlags,
                                                                     int lineBreaksEach,
                                                                     int tab)
        Multiple select list (check boxes style).
        Parameters:
        formName - Form name
        name - Input name
        values - Possible values
        valueLabels - Possible values labels
        selectedFlags - Selected values flags (same size as values)
        lineBreaksEach - Forces line break after each specified number of check boxes (0 = no line breaks)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • tab

        public static java.lang.String tab​(java.lang.String type,
                                           java.lang.String icon,
                                           java.lang.String content)
        Simple tab.
        Parameters:
        type - Tab style
        icon - Tab icon
        content - Tab content
        Returns:
        html
      • tab

        public static java.lang.String tab​(java.lang.String id,
                                           java.lang.String type,
                                           java.lang.String icon,
                                           java.lang.String content,
                                           java.lang.String help,
                                           boolean visible,
                                           java.lang.String onclick)
        Simple tab.
        Parameters:
        id - Tab id
        type - Tab style
        icon - Tab icon
        content - Tab content
        help - Tab hover help
        visible - show/hide tab
        onclick - optional javascript
        Returns:
        html
      • tabExt

        public static java.lang.String tabExt​(java.lang.String id,
                                              java.lang.String type,
                                              java.lang.String icon,
                                              java.lang.String content,
                                              java.lang.String help,
                                              boolean visible,
                                              java.lang.String onclick)
      • border

        public static java.lang.String border​(java.lang.String content)
        Standard border without tab
        Parameters:
        content - Content
        Returns:
        html
      • border

        public static java.lang.String border​(java.lang.String content,
                                              java.lang.String title,
                                              java.lang.String cls)
        Standard panel with tab
        Parameters:
        content - Content
        title - Tab title (can be null, then no title and icon ignored)
        cls - CSS class(s)
        Returns:
        html
      • border

        public static java.lang.String border​(java.lang.String content,
                                              java.lang.String icon,
                                              java.lang.String title,
                                              java.lang.String cls)
        Standard panel with tab
        Parameters:
        content - Content
        icon - Tab icon (can be null, then no icon)
        title - Tab title (can be null, then no title and icon ignored)
        cls - CSS class(es)
        Returns:
        html
      • openBorder

        public static java.lang.String openBorder()
        Opens standard panel without tab
        Returns:
        html
      • openBorder

        public static java.lang.String openBorder​(java.lang.String icon,
                                                  java.lang.String title,
                                                  java.lang.String cls)
        Opens standard panel with tab
        Parameters:
        icon - Tab icon (can be null, then no icon)
        title - Tab title (can be null, then no title and icon ignored)
        cls - CSS class(es)
        Returns:
        html
      • closeBorder

        public static java.lang.String closeBorder()
        Closes standard panel with tab
        Returns:
        html
      • openSimpleArea

        @Deprecated
        public static java.lang.String openSimpleArea​(java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int tab,
                                                      ObjectDB obj,
                                                      boolean visible)
        Deprecated.
        Parameters:
        formName - formName
        name - name
        title - title
        collapsible - collapsible
        collapsed - collapsed
        tab - tab
        obj - obj
        visible - visible
        Returns:
        area
      • openSimpleArea

        public static java.lang.String openSimpleArea​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int tab,
                                                      ObjectDB obj,
                                                      boolean visible)
        openSimpleArea
        Parameters:
        g - Grant
        formName - formName
        name - name
        title - title
        collapsible - collapsible
        collapsed - collapsed
        tab - tab
        obj - ObjectDB
        visible - visible
        Returns:
        area
      • openSimpleArea

        public static java.lang.String openSimpleArea​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int tab,
                                                      java.lang.String cls,
                                                      ObjectDB obj,
                                                      boolean visible)
        Opens (non)collapsible area panel.
        Parameters:
        g - Grant
        formName - Form name
        name - Area name
        title - Title
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        cls - table style (workarea if null)
        obj - Business object
        visible - visible ?
        Returns:
        html
      • openSimpleArea

        @Deprecated
        public static java.lang.String openSimpleArea​(java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int tab,
                                                      java.lang.String cls,
                                                      ObjectDB obj,
                                                      boolean visible)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area name
        title - Title
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        cls - table style (workarea if null)
        obj - Business object
        visible - visible ?
        Returns:
        html
      • openSimpleArea

        public static java.lang.String openSimpleArea​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int width,
                                                      int height,
                                                      int tab,
                                                      ObjectDB object,
                                                      boolean visible)
        Opens (non)collapsible area panel.
        Parameters:
        g - Grant
        formName - Form name
        name - Area name
        title - Title
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        object - Business object
        visible - visible ?
        Returns:
        html
      • openSimpleArea

        @Deprecated
        public static java.lang.String openSimpleArea​(java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String title,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int width,
                                                      int height,
                                                      int tab,
                                                      ObjectDB object,
                                                      boolean visible)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area name
        title - Title
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        object - Business object
        visible - visible ?
        Returns:
        html
      • openSimpleArea

        @Deprecated
        public static java.lang.String openSimpleArea​(HTMLTool.Area area,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int width,
                                                      int height,
                                                      int tab,
                                                      java.lang.String cls)
        Deprecated.
        Parameters:
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        cls - class
        Returns:
        html
      • openSimpleArea

        public static java.lang.String openSimpleArea​(Grant g,
                                                      HTMLTool.Area area,
                                                      boolean collapsible,
                                                      boolean collapsed,
                                                      int width,
                                                      int height,
                                                      int tab,
                                                      java.lang.String cls)
        Opens (non)collapsible simple area panel.
        Parameters:
        g - Grant
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        cls - Class
        Returns:
        html
      • closeSimpleArea

        public static java.lang.String closeSimpleArea()
        Closes (non)collapsible area panel.
        Returns:
        html
      • simpleArea

        public static java.lang.String simpleArea​(Grant g,
                                                  java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab,
                                                  ObjectDB obj,
                                                  boolean visible)
        (Non)collapsible area panel.
        Parameters:
        g - Grant
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        @Deprecated
        public static java.lang.String simpleArea​(java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab,
                                                  ObjectDB obj,
                                                  boolean visible)
        Deprecated.
        Parameters:
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        public static java.lang.String simpleArea​(Grant g,
                                                  java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab,
                                                  java.lang.String cls,
                                                  ObjectDB obj,
                                                  boolean visible)
        (Non)collapsible area panel.
        Parameters:
        g - Grant
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        @Deprecated
        public static java.lang.String simpleArea​(java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab,
                                                  java.lang.String cls,
                                                  ObjectDB obj,
                                                  boolean visible)
        Deprecated.
        Parameters:
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        public static java.lang.String simpleArea​(Grant g,
                                                  HTMLTool.Area area,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab)
        (Non)collapsible area panel.
        Parameters:
        g - Grant
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • simpleArea

        @Deprecated
        public static java.lang.String simpleArea​(HTMLTool.Area area,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int tab)
        Deprecated.
        Parameters:
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • simpleArea

        public static java.lang.String simpleArea​(Grant g,
                                                  java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int width,
                                                  int height,
                                                  int tab,
                                                  java.lang.String cls,
                                                  ObjectDB obj,
                                                  boolean visible)
        (Non)collapsible area panel.
        Parameters:
        g - Grant
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Area width
        height - Area height
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        @Deprecated
        public static java.lang.String simpleArea​(java.lang.String formName,
                                                  java.lang.String areaName,
                                                  java.lang.String title,
                                                  java.lang.String content,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int width,
                                                  int height,
                                                  int tab,
                                                  java.lang.String cls,
                                                  ObjectDB obj,
                                                  boolean visible)
        Deprecated.
        Parameters:
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Area width
        height - Area height
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        obj - Object (optional)
        visible - visible ?
        Returns:
        html
      • simpleArea

        public static java.lang.String simpleArea​(Grant g,
                                                  HTMLTool.Area area,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int width,
                                                  int height,
                                                  int tab,
                                                  java.lang.String cls)
        (Non)collapsible area panel.
        Parameters:
        g - Grant
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Area width
        height - Area height
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        Returns:
        html
      • simpleArea

        @Deprecated
        public static java.lang.String simpleArea​(HTMLTool.Area area,
                                                  boolean collapsible,
                                                  boolean collapsed,
                                                  int width,
                                                  int height,
                                                  int tab,
                                                  java.lang.String cls)
        Deprecated.
        Parameters:
        area - Area data
        collapsible - Collapsible ?
        collapsed - Collapsed
        width - Area width
        height - Area height
        tab - Start tab index (0 = no explicit tab index)
        cls - CSS class(es) (defaults to "workarea")
        Returns:
        html
      • multipleArea

        public static java.lang.String multipleArea​(Grant g,
                                                    java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String[] titles,
                                                    java.lang.String[] contents,
                                                    boolean[] visible,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab,
                                                    ObjectDB obj)
        Collapsible multiple areas panel.
        Parameters:
        g - Grant
        formName - Form name
        name - Area group name (area index is appended for each area name)
        titles - Titles
        contents - Contents
        visible - Content visibilities (true if null)
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - CSS class(es) (defaults to "workarea")
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        Returns:
        html
      • multipleArea

        public static java.lang.String multipleArea​(Grant g,
                                                    java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String[] titles,
                                                    java.lang.StringBuilder[] contents,
                                                    boolean[] visible,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab,
                                                    ObjectDB obj)
        Collapsible multiple areas panel.
        Parameters:
        g - Grant
        formName - Form name
        name - Area group name (area index is appended for each area name)
        titles - Titles
        contents - Contents
        visible - Content visibilities (true if null)
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - CSS class(es) (defaults to "workarea")
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        Returns:
        html
      • multipleArea

        @Deprecated
        public static java.lang.String multipleArea​(java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String[] titles,
                                                    java.lang.String[] contents,
                                                    boolean[] visible,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab,
                                                    ObjectDB obj)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area group name (area index is appended for each area name)
        titles - Titles
        contents - Contents
        visible - Content visibilities (true if null)
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - CSS class(es) (defaults to "workarea")
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        Returns:
        html
      • multipleArea

        @Deprecated
        public static java.lang.String multipleArea​(java.lang.String formName,
                                                    java.lang.String name,
                                                    java.lang.String[] titles,
                                                    java.lang.StringBuilder[] contents,
                                                    boolean[] visible,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab,
                                                    ObjectDB obj)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area group name (area index is appended for each area name)
        titles - Titles
        contents - Contents
        visible - Content visibilities (true if null)
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - CSS class(es) (defaults to "workarea")
        tab - Start tab index (0 = no explicit tab index)
        obj - Object (optional)
        Returns:
        html
      • multipleArea

        public static java.lang.String multipleArea​(Grant g,
                                                    java.util.List<HTMLTool.Area> areas,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab)
        Collapsible multiple areas panel.
        Parameters:
        g - Grant
        areas - Areas data
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - Class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • multipleArea

        @Deprecated
        public static java.lang.String multipleArea​(java.util.List<HTMLTool.Area> areas,
                                                    int currentIndex,
                                                    boolean collapsible,
                                                    boolean collapsed,
                                                    java.lang.String cls,
                                                    int tab)
        Deprecated.
        Parameters:
        areas - Areas data
        currentIndex - Selected panel index
        collapsible - Collapsible ?
        collapsed - Collapsed
        cls - Class
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • expandableArea

        public static java.lang.String expandableArea​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String shortContent,
                                                      java.lang.String shortCls,
                                                      java.lang.String longContent,
                                                      java.lang.String longCls,
                                                      java.lang.String expandJS,
                                                      java.lang.String collapseJS,
                                                      int delay,
                                                      int tab)
        Opens expandable area.
        Parameters:
        g - Grant
        formName - Form name
        name - Area name
        shortContent - Short content (can be null)
        shortCls - Short CSS class(es) (can be null)
        longContent - Long content(es) (can be null)
        longCls - Expanded CSS class(es) (can be null)
        expandJS - Additional JavaScript called after area expand
        collapseJS - Additional JavaScript called after area collapse
        delay - Automatic expand delay (not taken into account if < 0)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • expandableArea

        @Deprecated
        public static java.lang.String expandableArea​(java.lang.String formName,
                                                      java.lang.String name,
                                                      java.lang.String shortContent,
                                                      java.lang.String shortCls,
                                                      java.lang.String longContent,
                                                      java.lang.String longCls,
                                                      java.lang.String expandJS,
                                                      java.lang.String collapseJS,
                                                      int delay,
                                                      int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area name
        shortContent - Short content (can be null)
        shortCls - Short CSS class(es) (can be null)
        longContent - Long content (can be null)
        longCls - Expanded CSS class(es) (can be null)
        expandJS - Additional JavaScript called after area expand
        collapseJS - Additional JavaScript called after area collapse
        delay - Automatic expand delay (not taken into account if < 0)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • openHierarchyArea

        public static java.lang.String openHierarchyArea​(Grant g,
                                                         java.lang.String formName,
                                                         java.lang.String name,
                                                         java.lang.String title,
                                                         int tab)
        Opens hierarchy area.
        Parameters:
        g - Grant
        formName - Form name
        name - Area name
        title - Title
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • openHierarchyArea

        @Deprecated
        public static java.lang.String openHierarchyArea​(java.lang.String formName,
                                                         java.lang.String name,
                                                         java.lang.String title,
                                                         int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Area name
        title - Title
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • openHierarchyArea

        public static java.lang.String openHierarchyArea​(java.lang.String formName,
                                                         java.lang.String name,
                                                         java.lang.String title,
                                                         java.lang.String imgExpand,
                                                         java.lang.String imgCollapse,
                                                         int tab)
        Opens hierarchy area.
        Parameters:
        formName - Form name
        name - Area name
        title - Title
        imgExpand - Image for expand
        imgCollapse - Image for collapse
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • closeHierarchyArea

        public static java.lang.String closeHierarchyArea()
        Closes hierarcy area.
        Returns:
        html
      • hierarchyArea

        public static java.lang.String hierarchyArea​(Grant g,
                                                     java.lang.String formName,
                                                     java.lang.String areaName,
                                                     java.lang.String title,
                                                     java.lang.String content,
                                                     int tab)
        Hierarchy area.
        Parameters:
        g - Grant
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • hierarchyArea

        @Deprecated
        public static java.lang.String hierarchyArea​(java.lang.String formName,
                                                     java.lang.String areaName,
                                                     java.lang.String title,
                                                     java.lang.String content,
                                                     int tab)
        Deprecated.
        Parameters:
        formName - Form name
        areaName - Area name
        title - Title
        content - Content
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • isListVisible

        @Deprecated
        public static boolean isListVisible​(ObjectDB obj,
                                            ObjectField f)
        Deprecated.
        use obj.isFieldVisible(f,true,true)
        Parameters:
        obj - ObjectDB
        f - ObjectField
        Returns:
        isListVisible
      • isListVisible

        @Deprecated
        public static boolean isListVisible​(ObjectDB obj,
                                            FieldArea fa)
        Deprecated.
        use obj.isAreaVisible(fa,true,true)
        Parameters:
        obj - ObjectDB
        fa - FieldArea
        Returns:
        isListVisible
      • filterString

        public static java.lang.String filterString​(ObjectDB obj,
                                                    java.lang.String sep)

        Displayable object filter

        Parameters:
        obj - ObjectDB
        sep - Separator
        Returns:
        filter
      • htmlPopup

        public static java.lang.String htmlPopup​(Grant g,
                                                 java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String content)

        HTML content popup without title

        Parameters:
        g - Grant
        formName - Form name
        name - Popup name
        content - Content
        Returns:
        html
      • htmlPopup

        @Deprecated
        public static java.lang.String htmlPopup​(java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String content)
        Deprecated.
        Parameters:
        formName - Form name
        name - Popup name
        content - Content
        Returns:
        html
      • htmlPopup

        public static java.lang.String htmlPopup​(Grant g,
                                                 java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String icon,
                                                 java.lang.String title,
                                                 boolean closeButton,
                                                 java.lang.String content)

        HTML content popup

        Parameters:
        g - Grant
        formName - Form name
        name - Popup name
        icon - Title icon (can be null, then no icon)
        title - Title (can be null, then no title and icon ignored)
        closeButton - Close button (if false, closing has to be handled explicitly)
        content - Content
        Returns:
        html
      • htmlPopup

        @Deprecated
        public static java.lang.String htmlPopup​(java.lang.String formName,
                                                 java.lang.String name,
                                                 java.lang.String icon,
                                                 java.lang.String title,
                                                 boolean closeButton,
                                                 java.lang.String content)
        Deprecated.
        Parameters:
        formName - Form name
        name - Popup name
        icon - Title icon (can be null, then no icon)
        title - Title (can be null, then no title and icon ignored)
        closeButton - Close button (if false, closing has to be handled explicitly)
        content - Content
        Returns:
        html
      • htmlPopupButton

        public static java.lang.String htmlPopupButton​(Grant g,
                                                       java.lang.String formName,
                                                       java.lang.String name,
                                                       java.lang.String icon,
                                                       java.lang.String alt,
                                                       java.lang.String title,
                                                       boolean closeButton,
                                                       java.lang.String content,
                                                       int width,
                                                       int height,
                                                       int tab)

        Image button to a inlined HTML content popup

        Parameters:
        g - Grant
        formName - Form name
        name - Popup name
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        title - Title (cannot be null)
        closeButton - Close button (if false, closing has to be handled explicitly)
        content - content
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • htmlPopupButton

        @Deprecated
        public static java.lang.String htmlPopupButton​(java.lang.String formName,
                                                       java.lang.String name,
                                                       java.lang.String icon,
                                                       java.lang.String alt,
                                                       java.lang.String title,
                                                       boolean closeButton,
                                                       java.lang.String content,
                                                       int width,
                                                       int height,
                                                       int tab)
        Deprecated.
        Parameters:
        formName - Form name
        name - Popup name
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        title - Title (cannot be null)
        closeButton - Close button (if false, closing has to be handled explicitly)
        content - content
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • htmlPopupButtonOnly

        public static java.lang.String htmlPopupButtonOnly​(java.lang.String formName,
                                                           java.lang.String popupName,
                                                           java.lang.String imgName,
                                                           java.lang.String icon,
                                                           java.lang.String alt,
                                                           java.lang.String jsCallback,
                                                           java.lang.String jsCallbackParam,
                                                           int width,
                                                           int height,
                                                           int tab)

        Image button to a refered HTML content popup (the popup has to be present)

        Parameters:
        formName - Form name
        popupName - Popup name
        imgName - Image unique name (can be null but useful if several links use same popup)
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        jsCallback - Javascript function call back (can be null)
        jsCallbackParam - Javascript function call back parameter (typically a javascript object, can be null)
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • urlPopup

        public static java.lang.String urlPopup​(Grant g,
                                                java.lang.String formName,
                                                java.lang.String name,
                                                java.lang.String icon,
                                                java.lang.String title,
                                                boolean closeButton,
                                                java.lang.String url)

        URL content popup

        Parameters:
        g - Grant
        formName - Form name
        name - Popup name
        icon - Title icon (can be null, then no icon)
        title - Title (can be null, then no title and icon ignored)
        closeButton - Close button (if false, closing has to be handled explicitly)
        url - URL
        Returns:
        html
      • calendarPopup

        @Deprecated
        public static java.lang.String calendarPopup​(Grant g,
                                                     java.lang.String formName,
                                                     java.lang.String name)
        Deprecated.
      • calculatorPopup

        public static java.lang.String calculatorPopup​(Grant g,
                                                       java.lang.String formName,
                                                       java.lang.String name)

        Calculator popup

        Parameters:
        g - Grant
        formName - Form name
        name - Calculator popup name
        Returns:
        html
      • calculatorPopup

        @Deprecated
        public static java.lang.String calculatorPopup​(java.lang.String formName,
                                                       java.lang.String name)
        Deprecated.
        Parameters:
        formName - Form name
        name - Calculator popup name
        Returns:
        html
      • colorPopup

        public static java.lang.String colorPopup​(Grant g,
                                                  java.lang.String formName,
                                                  java.lang.String name)

        Color chooser popup

        Parameters:
        g - Grant
        formName - Form name
        name - colorPopup popup name
        Returns:
        html
      • colorPopup

        @Deprecated
        public static java.lang.String colorPopup​(java.lang.String formName,
                                                  java.lang.String name)
        Deprecated.
        Parameters:
        formName - Form name
        name - colorPopup popup name
        Returns:
        html
      • linkPopup

        public static java.lang.String linkPopup​(Grant g,
                                                 java.lang.String formName,
                                                 java.lang.String name)

        Link popup

        Parameters:
        g - Grant
        formName - Form name
        name - Link popup name
        Returns:
        html
      • linkPopup

        @Deprecated
        public static java.lang.String linkPopup​(java.lang.String formName,
                                                 java.lang.String name)
        Deprecated.
        Parameters:
        formName - Form name
        name - Link popup name
        Returns:
        html
      • urlPopupButton

        public static java.lang.String urlPopupButton​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String popupName,
                                                      java.lang.String icon,
                                                      java.lang.String alt,
                                                      java.lang.String title,
                                                      boolean closeButton,
                                                      java.lang.String url,
                                                      int width,
                                                      int height,
                                                      int tab)

        Image button to an inlined URL content popup

        Parameters:
        g - Grant
        formName - Form name
        popupName - Popup name
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        title - Title (cannot be null)
        closeButton - Close button (if false, closing has to be handled explicitly)
        url - URL
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • urlPopupButton

        @Deprecated
        public static java.lang.String urlPopupButton​(java.lang.String formName,
                                                      java.lang.String popupName,
                                                      java.lang.String icon,
                                                      java.lang.String alt,
                                                      java.lang.String title,
                                                      boolean closeButton,
                                                      java.lang.String url,
                                                      int width,
                                                      int height,
                                                      int tab)
        Deprecated.
        Parameters:
        formName - Form name
        popupName - Popup name
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        title - Title (cannot be null)
        closeButton - Close button (if false, closing has to be handled explicitly)
        url - URL
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • urlPopupButtonOnly

        public static java.lang.String urlPopupButtonOnly​(java.lang.String formName,
                                                          java.lang.String popupName,
                                                          java.lang.String imgName,
                                                          java.lang.String icon,
                                                          java.lang.String alt,
                                                          java.lang.String url,
                                                          int width,
                                                          int height,
                                                          int tab)

        Image button to a relatively positionned URL content popup (the popup has to be present)

        Parameters:
        formName - Form name
        popupName - Popup name
        imgName - Image name (can be null then popupName is used for image name)
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        url - URL
        width - Width (px)
        height - Height (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • urlPopupButtonOnly

        public static java.lang.String urlPopupButtonOnly​(java.lang.String formName,
                                                          java.lang.String popupName,
                                                          java.lang.String imgName,
                                                          java.lang.String icon,
                                                          java.lang.String alt,
                                                          java.lang.String url,
                                                          int width,
                                                          int height,
                                                          int left,
                                                          int top,
                                                          int tab)

        Image button to an absolutely positionned URL content popup (the popup has to be present)

        Parameters:
        formName - Form name
        popupName - Popup name
        imgName - Image name (can be null then popupName is used for image name)
        icon - Link and title icon (cannot be null)
        alt - Link icon alt text (cannot be null)
        url - URL
        width - Width (px)
        height - Height (px)
        left - Absolute left position (px)
        top - Absolute top position (px)
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • windowPopupButton

        public static java.lang.String windowPopupButton​(java.lang.String formName,
                                                         java.lang.String name,
                                                         java.lang.String icon,
                                                         java.lang.String alt,
                                                         java.lang.String url,
                                                         int tab)

        Window popup button

        Parameters:
        formName - Form name
        name - Image button name
        icon - Link and title icon
        alt - Link icon alt text
        url - URL
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • windowPopupButton

        public static java.lang.String windowPopupButton​(java.lang.String formName,
                                                         java.lang.String name,
                                                         java.lang.String icon,
                                                         java.lang.String alt,
                                                         java.lang.String url,
                                                         int width,
                                                         int height,
                                                         int tab)

        Window popup button

        Parameters:
        formName - Form name
        name - Image button name
        icon - Link and title icon
        alt - Link icon alt text
        url - URL
        width - Width (px), 0 means default
        height - Height (px), 0 means default
        tab - Start tab index (0 = no explicit tab index)
        Returns:
        html
      • getFaviconURL

        public static java.lang.String getFaviconURL​(Grant g)
        Get favicon URL 16x16
        Parameters:
        g - Grant (can be null)
        Returns:
        Favicon URL
      • getFaviconURL

        public static java.lang.String getFaviconURL​(Grant g,
                                                     int size)
        Get favicon URL
        Parameters:
        g - Grant (can be null)
        size - Icon size 16, 32, 48, 64, 96, 128, 144, 192, 256
        Returns:
        Favicon URL
      • getLoadingImageURL

        public static java.lang.String getLoadingImageURL()
        Get loading image URL
        Returns:
        Loading image URL
      • getLoadingImage

        public static java.lang.String getLoadingImage()
        Get loading image HTML tag
        Returns:
        Loading image HTML tag
      • getLoadingIconURL

        public static java.lang.String getLoadingIconURL()
        Get loading icon URL
        Returns:
        Loading icon URL
      • getLoadingIcon

        public static java.lang.String getLoadingIcon()
        Get loading icon HTML tag
        Returns:
        Loading icon URL
      • urlBlock

        public static java.lang.String urlBlock​(java.lang.String url)

        Client-side asynchronously-loaded URL block

        Parameters:
        url - URL to load
        Returns:
        URL block
      • urlBlock

        public static java.lang.String urlBlock​(java.lang.String url,
                                                java.lang.String id,
                                                boolean loading)

        Client-side asynchronously-loaded URL block

        Parameters:
        url - URL to load
        id - Div ID (can be null)
        loading - Loading spinner ?
        Returns:
        URL block
      • placeMapIncludes

        public static java.lang.String placeMapIncludes()
        Placemap includes
        Returns:
        Placemap includes
      • simplePlaceMap

        public static java.lang.String simplePlaceMap​(java.lang.String formName,
                                                      java.lang.String name,
                                                      int width,
                                                      int height,
                                                      float lat,
                                                      float lng,
                                                      int zoom,
                                                      java.lang.String info)

        Simple GoogleMaps® map block with single marker

        Parameters:
        formName - Form name
        name - Div name
        width - Map width (px)
        height - Map height (px)
        lat - Latitude
        lng - Longitude
        zoom - Zoom level
        info - HTML for marker information (can be null)
        Returns:
        GoogleMaps® map HTML block
      • simplePlaceMap

        public static java.lang.String simplePlaceMap​(Grant g,
                                                      java.lang.String formName,
                                                      java.lang.String name,
                                                      int width,
                                                      int height,
                                                      java.lang.String address,
                                                      int zoom,
                                                      java.lang.String info)

        Simple GoogleMaps® with single marker

        Parameters:
        g - Grant
        formName - Form name
        name - Div name
        width - Map width (px)
        height - Map height (px)
        address - Place address
        zoom - Zoom level
        info - HTML for marker information (can be null)
        Returns:
        GoogleMaps® map HTML block
      • simplePlaceMap

        @Deprecated
        public static java.lang.String simplePlaceMap​(java.lang.String formName,
                                                      java.lang.String name,
                                                      int width,
                                                      int height,
                                                      java.lang.String address,
                                                      int zoom,
                                                      java.lang.String info)
        Deprecated.
        Parameters:
        formName - Form name
        name - Div name
        width - Map width (px)
        height - Map height (px)
        address - Place address
        zoom - Zoom level
        info - HTML for marker information (can be null)
        Returns:
        Placemap HTML block
      • multimediaObject

        public static java.lang.String multimediaObject​(java.lang.String formName,
                                                        java.lang.String name,
                                                        java.lang.String mime,
                                                        java.lang.String url,
                                                        int width,
                                                        int height)

        WindowsMediaPlayer® multimedia object

        Parameters:
        formName - Form name
        name - Name
        url - Multimedia file URL (*.mp3, *.avi, ...)
        mime - Multimedia file MIME type (cf. MEDIA_* constants)
        width - Width
        height - Height
        Returns:
        object block
      • audio

        public static java.lang.String audio​(java.lang.String formName,
                                             java.lang.String name,
                                             java.lang.String[] mimes,
                                             java.lang.String[] urls,
                                             int width,
                                             int height)

        HTML5 audio tag

        Parameters:
        formName - Form name
        name - Name
        urls - Audio files URLs (*.mp3, *.oga, *.aac, ...)
        mimes - Audio files MIME types (cf. MEDIA_* constants)
        width - Width
        height - Height
        Returns:
        Audio tag
      • video

        public static java.lang.String video​(java.lang.String formName,
                                             java.lang.String name,
                                             java.lang.String[] mimes,
                                             java.lang.String[] urls,
                                             int width,
                                             int height)

        HTML5 video tag

        Parameters:
        formName - Form name
        name - Name
        urls - Video files URLs (*.m4v, *.ogv, *.webm, ...)
        mimes - Video files MIME types (cf. MEDIA_* constants)
        width - Width
        height - Height
        Returns:
        Video tag
      • flashObject

        public static java.lang.String flashObject​(java.lang.String formName,
                                                   java.lang.String name,
                                                   java.lang.String file,
                                                   java.lang.String vars,
                                                   int width,
                                                   int height,
                                                   boolean allowFullScreen)

        Flash object

        Parameters:
        formName - Form name
        name - Name
        file - Flash file (*.swf)
        vars - vars
        width - Width in px
        height - Height in px
        allowFullScreen - Allow fullscreen
        Returns:
        Flash object HTML block
      • htmlChart

        public static java.lang.String htmlChart​(java.lang.String divId,
                                                 java.lang.String json,
                                                 int width,
                                                 int height)

        HTML chart

        Parameters:
        divId - div id
        json - Chart data
        width - Width in px
        height - Height in px
        Returns:
        Chart HTML block
      • image

        public static java.lang.String image​(java.lang.String name,
                                             java.lang.String title)

        Standard image tag

        Parameters:
        name - Image file name (e.g. "myimage.png")
        title - Image alt text
        Returns:
        Standard image tag
      • icon

        public static java.lang.String icon​(Grant g,
                                            java.lang.String name,
                                            java.lang.String title)

        Standard icon tag

        Parameters:
        g - Grant
        name - Icon file name (e.g. "info.png")
        title - Icon alt text
        Returns:
        Standard icon tag
      • icon

        @Deprecated
        public static java.lang.String icon​(java.lang.String name,
                                            java.lang.String title)
        Deprecated.
        Parameters:
        name - Icon file name (e.g. "info.png")
        title - Icon alt text
        Returns:
        icon
      • compatIcon

        public static java.lang.String compatIcon​(Grant g,
                                                  java.lang.String icon,
                                                  java.lang.String dfault)
        Legacy: exclude fontawesome, glyphicon... keep image icon
      • getDocumentURL

        public static java.lang.String getDocumentURL​(java.lang.String params)

        Base URL for document from DBDoc

        Parameters:
        params - URL-encoded parameters
        Returns:
        Base document URL
      • getPublicDocumentURL

        public static java.lang.String getPublicDocumentURL​(java.lang.String params)

        Base URL for public document from DBDoc

        Parameters:
        params - URL-encoded parameters
        Returns:
        Base public document URL
      • getDocumentURL

        public static java.lang.String getDocumentURL​(java.lang.String object,
                                                      java.lang.String field,
                                                      java.lang.String rowId,
                                                      java.lang.String docId,
                                                      java.lang.String cdisp,
                                                      boolean cache,
                                                      boolean thumbnail)

        Base URL for document

        Parameters:
        object - Object
        field - Field
        rowId - Row ID
        docId - Document ID
        cdisp - Content disposition
        cache - cache ?
        thumbnail - Thumbnail ?
        Returns:
        Base document URL
      • getPublicDocumentURL

        public static java.lang.String getPublicDocumentURL​(java.lang.String object,
                                                            java.lang.String field,
                                                            java.lang.String rowId,
                                                            java.lang.String docId,
                                                            java.lang.String cdisp,
                                                            boolean cache,
                                                            boolean thumbnail)

        Base public URL for document

        Parameters:
        object - Object
        field - Field
        rowId - Row ID
        docId - Document ID
        cdisp - Content disposition
        cache - cache ?
        thumbnail - Thumbnail ?
        Returns:
        Base public document URL
      • getResourceURL

        public static java.lang.String getResourceURL​(Grant grant,
                                                      java.lang.String type,
                                                      java.lang.String code,
                                                      java.lang.String object,
                                                      java.lang.String objId,
                                                      java.lang.String deflt)
        URL for specified object resource
        Parameters:
        grant - User rights
        type - Resource type
        code - Resource code
        object - Target object type name (ObjectInternal, ObjectExternal, ... or null for Disposition)
        objId - Object Id (null for default Disposition)
        deflt - Default URL
        Returns:
        Resource URL if exists or default URL if not exists
      • getResourceURL

        public static java.lang.String getResourceURL​(Grant grant,
                                                      java.lang.String type,
                                                      java.lang.String code,
                                                      java.lang.String deflt)
        URL for specified disposition resource
        Parameters:
        grant - User rights
        type - Resource type
        code - Resource code
        deflt - Default URL
        Returns:
        Resource URL if exists or default URL if not exists
      • getResourceURL

        public static java.lang.String getResourceURL​(ObjectDB obj,
                                                      java.lang.String type,
                                                      java.lang.String code,
                                                      java.lang.String deflt)
        URL for specified business object resource
        Parameters:
        obj - Business object
        type - Resource type
        code - Resource code
        deflt - Default URL
        Returns:
        Resource URL if exists or default URL if not exists
      • getResourceURL

        public static java.lang.String getResourceURL​(ExternalObject ext,
                                                      java.lang.String type,
                                                      java.lang.String code,
                                                      java.lang.String deflt)
        URL for specified external object resource
        Parameters:
        ext - External object
        type - Resource type (one of Resource.TYPE_*)
        code - Resource code
        deflt - Default URL
        Returns:
        Resource URL if exists or default URL if not exists
      • getResourceImageURL

        public static java.lang.String getResourceImageURL​(Grant grant,
                                                           java.lang.String code)
        URL for specified disposition image resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        Resource URL if exists or null if not exists
      • getResourceImageURL

        public static java.lang.String getResourceImageURL​(Grant grant,
                                                           java.lang.String code,
                                                           java.lang.String deflt)
        URL for specified disposition image resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        Resource URL if exists or default URL if not exists
      • getResourceImageURL

        public static java.lang.String getResourceImageURL​(ObjectDB obj,
                                                           java.lang.String code)
        URL for specified business object image resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        Resource URL if exists or null if not exists
      • getResourceImageURL

        public static java.lang.String getResourceImageURL​(ExternalObject ext,
                                                           java.lang.String code)
        URL for specified external object image resource
        Parameters:
        ext - External Object
        code - Resource code
        Returns:
        Resource URL if exists or null if not exists
      • getResourceIconURL

        public static java.lang.String getResourceIconURL​(Grant grant,
                                                          java.lang.String code)
        URL for specified disposition icon resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        Icon resource URL
      • getResourceIconURL

        public static java.lang.String getResourceIconURL​(Grant grant,
                                                          java.lang.String code,
                                                          java.lang.String deflt)
        URL for specified disposition icon resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        Icon resource URL
      • getResourceIconURL

        public static java.lang.String getResourceIconURL​(ObjectDB obj,
                                                          java.lang.String code)
        URL for specified business object icon resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        Icon resource URL
      • getResourceIconURL

        public static java.lang.String getResourceIconURL​(ExternalObject ext,
                                                          java.lang.String code)
        URL for specified external object icon resource
        Parameters:
        ext - External Object
        code - Resource code
        Returns:
        Icon resource URL
      • getIcon

        public static java.lang.String getIcon​(Grant g,
                                               java.lang.String name,
                                               java.lang.String size,
                                               java.lang.String cls)
        Front icon
        Parameters:
        g - User rights
        name - icon name (fas/name, far/name, gly/name, img/set/name)
        size - font size or image height (ex 48px)
        cls - optional CSS class
        Returns:
        i, span or img
      • getIconURL

        public static java.lang.String getIconURL​(Grant grant,
                                                  java.lang.String name)
        URL for icon set resource
        Parameters:
        grant - User rights
        name - Icon name
        Returns:
        Icon set resource URL
      • getResourceCSSURL

        public static java.lang.String getResourceCSSURL​(Grant grant,
                                                         java.lang.String code)
        URL for specified disposition CSS stylesheet resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        CSS resource URL
      • getResourceCSSURL

        public static java.lang.String getResourceCSSURL​(Grant grant,
                                                         java.lang.String code,
                                                         java.lang.String deflt)
        URL for specified disposition CSS stylesheet resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        CSS resource URL
      • getResourceCSSURL

        public static java.lang.String getResourceCSSURL​(ObjectDB obj,
                                                         java.lang.String code)
        URL for specified business object CSS stylesheet resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        CSS resource URL
      • getResourceCSSURL

        public static java.lang.String getResourceCSSURL​(ExternalObject ext,
                                                         java.lang.String code)
        URL for specified external object CSS stylesheet resource
        Parameters:
        ext - External object
        code - Resource code
        Returns:
        CSS resource URL
      • getResourceJSURL

        public static java.lang.String getResourceJSURL​(Grant grant,
                                                        java.lang.String code)
        URL for specified disposition JavaScript resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        JavaScript resource URL
      • getResourceJSURL

        public static java.lang.String getResourceJSURL​(Grant grant,
                                                        java.lang.String code,
                                                        java.lang.String deflt)
        URL for specified disposition JavaScript resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        JavaScript resource URL
      • getResourceJSURL

        public static java.lang.String getResourceJSURL​(ObjectDB obj,
                                                        java.lang.String code)
        URL for specified business object JavaScript resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        JavaScript resource URL
      • getResourceJSURL

        public static java.lang.String getResourceJSURL​(ExternalObject ext,
                                                        java.lang.String code)
        URL for specified external object JavaScript resource
        Parameters:
        ext - External object
        code - Resource code
        Returns:
        JavaScript resource URL
      • getResourceHTMLURL

        public static java.lang.String getResourceHTMLURL​(Grant grant,
                                                          java.lang.String code)
        URL for specified disposition HTML resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        HTML resource URL
      • getResourceHTMLURL

        public static java.lang.String getResourceHTMLURL​(Grant grant,
                                                          java.lang.String code,
                                                          java.lang.String deflt)
        URL for specified disposition HTML resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        HTML resource URL
      • getResourceHTMLURL

        public static java.lang.String getResourceHTMLURL​(ObjectDB obj,
                                                          java.lang.String code)
        URL for specified business object HTML resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        HTML resource URL
      • getResourceHTMLURL

        public static java.lang.String getResourceHTMLURL​(ExternalObject ext,
                                                          java.lang.String code)
        URL for specified external object HTML resource
        Parameters:
        ext - External object
        code - Resource code
        Returns:
        HTML resource URL
      • getResourceMarkdownURL

        public static java.lang.String getResourceMarkdownURL​(Grant grant,
                                                              java.lang.String code)
        URL for specified disposition markdown resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        Markdown resource URL
      • getResourceMarkdownURL

        public static java.lang.String getResourceMarkdownURL​(Grant grant,
                                                              java.lang.String code,
                                                              java.lang.String deflt)
        URL for specified disposition markdown resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        Markdown resource URL
      • getResourceMarkdownURL

        public static java.lang.String getResourceMarkdownURL​(ObjectDB obj,
                                                              java.lang.String code)
        URL for specified business object markdown resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        Markdown resource URL
      • getResourceMarkdownURL

        public static java.lang.String getResourceMarkdownURL​(ExternalObject ext,
                                                              java.lang.String code)
        URL for specified external object markdown resource
        Parameters:
        ext - External object
        code - Resource code
        Returns:
        Markdown resource URL
      • getResourcePDFURL

        public static java.lang.String getResourcePDFURL​(Grant grant,
                                                         java.lang.String code)
        URL for specified disposition PDF resource
        Parameters:
        grant - User rights
        code - Resource code
        Returns:
        PDF resource PDF
      • getResourcePDFURL

        public static java.lang.String getResourcePDFURL​(Grant grant,
                                                         java.lang.String code,
                                                         java.lang.String deflt)
        URL for specified disposition PDF resource
        Parameters:
        grant - User rights
        code - Resource code
        deflt - Default URL
        Returns:
        PDF resource PDF
      • getResourcePDFURL

        public static java.lang.String getResourcePDFURL​(ObjectDB obj,
                                                         java.lang.String code)
        URL for specified business object PDF resource
        Parameters:
        obj - Business object
        code - Resource code
        Returns:
        PDF resource PDF
      • getResourcePDFURL

        public static java.lang.String getResourcePDFURL​(ExternalObject ext,
                                                         java.lang.String code)
        URL for specified external object PDF resource
        Parameters:
        ext - External object
        code - Resource code
        Returns:
        PDF resource PDF
      • prepareURLs

        public static java.lang.String prepareURLs​(Grant g,
                                                   java.lang.String str)
        Substitute the following tokens in a string:
        - [HOMEURL] : Home URL (without quotes)

      • - [EXTOBJECTURL:<external object name>[:<optional URL parameters>]] : External object URL (without quotes)
        - [EXTOBJECTPUBLICURL:<external object name>[:<optional URL parameters>]] : External object URL (without quotes)
        - [CONTENTURL:<static content file name>] : Static content URL (without quotes)
        - [IMAGERESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Image resource URL (without quotes)
        - [ICONRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Icon resource URL (without quotes)
        - [CSSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : CSS stylesheet resource URL (without quotes)
        - [JSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : JavaScript resource URL (without quotes)
        - [HTMLRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : HTML resource URL (without quotes)
Parameters:
g - Grant
str - String including tokens to substitute
Returns:
urls