Package com.simplicite.util.tools
Class HTMLTool
- java.lang.Object
-
- com.simplicite.util.tools.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
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BLANK_ZONE
Blank page zone constantstatic java.lang.String
BOTTOM_ZONE
Bottom page zone constantstatic java.lang.String
CSS_END_TAG
End tag for CSSstatic java.lang.String
CSS_START_TAG
Start tag for CSSstatic java.lang.String
DATA_URL_BLANK
Data URL for a GIF image with one single transparent pixelstatic java.lang.String
DATA_URL_NULL
Null data URLstatic java.lang.String
DOCTYPE_HTML4
static java.lang.String
DOCTYPE_HTML5
static java.lang.String
EXTRA_ZONE
Extra zone constantstatic java.lang.String
FOOT_ZONE
Footer zone constantstatic java.lang.String
HEAD_ZONE
Header zone constantstatic java.lang.String
ICON_BOX
Boxstatic java.lang.String
ICON_BUILDING
Building iconstatic java.lang.String
ICON_CALENDAR
Calendar table iconstatic java.lang.String
ICON_CASH
Cashstatic java.lang.String
ICON_CHAT
Chat iconstatic java.lang.String
ICON_COMPUTER
Computer iconstatic java.lang.String
ICON_CROSSTAB
Cross table iconstatic java.lang.String
ICON_DATABASE
Database iconstatic java.lang.String
ICON_DOCUMENT
Document iconstatic java.lang.String
ICON_EDIT
Edit iconstatic java.lang.String
ICON_ERROR
Error iconstatic java.lang.String
ICON_EXTOBJECT
External object iconstatic java.lang.String
ICON_FOLDER
Folder iconstatic java.lang.String
ICON_FOLDERITEM
Folder item iconstatic java.lang.String
ICON_GIFT
Giftstatic java.lang.String
ICON_GRAPH
Graph iconstatic java.lang.String
ICON_GROUP
Group iconstatic java.lang.String
ICON_HOME
Home page iconstatic java.lang.String
ICON_IMAGE
Image iconstatic java.lang.String
ICON_INFO
Warning iconstatic java.lang.String
ICON_MAILBOX
Mailbox iconstatic java.lang.String
ICON_MAP
Mapstatic java.lang.String
ICON_MESSAGE
Message iconstatic java.lang.String
ICON_OBJECT
Object iconstatic java.lang.String
ICON_PRINT
Print iconstatic java.lang.String
ICON_PROCESS
Process iconstatic java.lang.String
ICON_PROJECT
Project iconstatic java.lang.String
ICON_PROJECTITEM
Project item iconstatic java.lang.String
ICON_SHOP
Shopstatic java.lang.String
ICON_TASK
Task iconstatic java.lang.String
ICON_TIMESHEET
Time sheetstatic java.lang.String
ICON_TRUCK
Truckstatic java.lang.String
ICON_URL
URL iconstatic java.lang.String
ICON_USER
User iconstatic java.lang.String
ICON_WARNING
Error iconstatic java.lang.String
ICON_WORK
Work in progress iconstatic java.lang.String
ICON_WORKFLOW
Workflow iconstatic java.lang.String
ICONDEC_CREATE
Deprecated.static java.lang.String
ICONDEC_CSV
CSV icon decorationstatic java.lang.String
ICONDEC_DELETE
Deprecated.static java.lang.String
ICONDEC_HELP
Help icon decorationstatic java.lang.String
ICONDEC_LINK
Link icon decorationstatic java.lang.String
ICONDEC_LIST
Deprecated.static java.lang.String
ICONDEC_LOCK
Deprecated.static java.lang.String
ICONDEC_SEARCH
Search icon decorationstatic java.lang.String
ICONDEC_SELECT
CSV icon decorationstatic java.lang.String
ICONDEC_UNLOCK
Deprecated.static java.lang.String
ICONDEC_UPDATE
Deprecated.static java.lang.String
ICONDEC_XML
XML icon decorationstatic java.lang.String
JS_END_TAG
End tag for JavaScriptstatic java.lang.String
JS_START_TAG
Start tag for JavaScriptstatic java.lang.String
LAYOUT_ZONE
Layout zone constantstatic java.lang.String
LEFT_ZONE
Public left zone constantstatic java.lang.String
MAIN_ZONE
Main zone constantstatic java.lang.String
MEDIA_AAC
static java.lang.String
MEDIA_AVI
static java.lang.String
MEDIA_FLV
static java.lang.String
MEDIA_MP3
static java.lang.String
MEDIA_MP4
static java.lang.String
MEDIA_MPG
static java.lang.String
MEDIA_OGA
static java.lang.String
MEDIA_OGV
static java.lang.String
MEDIA_WAV
static java.lang.String
MEDIA_WEBM
static java.lang.String
MEDIA_WMA
static java.lang.String
MEDIA_WMV
static java.lang.String
MENU_ZONE
Menu zone constantstatic java.lang.String
NULL
Null constant (same as HTTPTool.NULL)static int
POPUP_HEIGHT
Default popup heightstatic int
POPUP_MARGIN
Default popup marginstatic int
POPUP_OFFSET
Default popup offsetstatic int
POPUP_WIDTH
Default popup widthstatic java.lang.String
POPUP_ZONE
Popup zone constantstatic java.lang.String
RIGHT_ZONE
Public right zone constantstatic java.lang.String
SUBHEAD_ZONE
Sub-header zone constantstatic java.lang.String
TAB_EXT_OFF
Inactive extended tab constantstatic java.lang.String
TAB_EXT_ON
Active extended tab constantstatic java.lang.String
TAB_FORM_OFF
Inactive form tab constantstatic java.lang.String
TAB_FORM_ON
Active form tab constantstatic java.lang.String
TAB_OFF
Inactive grouped tab constantstatic java.lang.String
TAB_ON
Active grouped tab constantstatic java.lang.String
TOP_ZONE
Top page zone constantstatic java.lang.String
WORK_ZONE
Work zone constant
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String[]
aceJS()
Ace® editor additional JS scriptsstatic java.lang.String[]
ajaxJS()
Ajax JS scriptsstatic java.lang.String[]
ajaxJS(boolean bundle)
Ajax JS scriptsstatic java.lang.String[]
applicationCSS(Grant grant)
Application specific CSS stylesheetsstatic java.lang.String[]
applicationJS(Grant grant)
Application specific JS scriptstatic 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 tagstatic 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 scriptsstatic java.lang.String[]
bootstrapCSS()
Bootstrap® default CSS stylesheetsstatic java.lang.String[]
bootstrapCSS(java.lang.String theme)
Bootstrap® CSS stylesheetsstatic java.lang.String[]
bootstrapCSS(java.lang.String theme, boolean datetimepicker)
Bootstrap® CSS stylesheetsstatic java.lang.String[]
bootstrapJS()
Bootstrap® JS scriptsstatic java.lang.String[]
bootstrapJS(boolean datetimepicker, java.lang.String lang)
Bootstrap JS scriptsstatic java.lang.String
border(java.lang.String content)
Standard border without tabstatic java.lang.String
border(java.lang.String content, java.lang.String title, java.lang.String cls)
Standard panel with tabstatic java.lang.String
border(java.lang.String content, java.lang.String icon, java.lang.String title, java.lang.String cls)
Standard panel with tabstatic 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 eventstatic java.lang.String
calculatorJS()
Calculator JS scriptstatic java.lang.String
calculatorPopup(Grant g, java.lang.String formName, java.lang.String name)
Calculator popupstatic java.lang.String
calculatorPopup(java.lang.String formName, java.lang.String name)
Deprecated.static java.lang.String
calendarCSS()
Calendar CSS scriptstatic java.lang.String
calendarJS()
Calendar JS scriptstatic java.lang.String
calendarPopup(Grant g, java.lang.String formName, java.lang.String name)
Deprecated.static java.lang.String
captchaCSS()
Captcha CSS stylesheetstatic java.lang.String
captchaJS()
Captcha JS scriptstatic java.lang.String[]
chartJS()
Chart.js JS scriptsstatic 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 anymorestatic java.lang.String[]
cleditorJS()
Deprecated.CLEditor is not available anymorestatic java.lang.String
closeBorder()
Closes standard panel with tabstatic java.lang.String
closeExtraZone()
Closes HTML extra zonestatic java.lang.String
closeForm(java.lang.String formName)
Closes formstatic 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 keystatic java.lang.String
closeHierarchyArea()
Closes hierarcy area.static java.lang.String
closePage()
Closes HTML pagestatic java.lang.String
closeSimpleArea()
Closes (non)collapsible area panel.static java.lang.String
colorpickerJS()
Color picker JS scriptstatic java.lang.String
colorPopup(Grant g, java.lang.String formName, java.lang.String name)
Color chooser popupstatic 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 stylesheetstatic 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 scriptvoid
coreJS()
Deprecated.Core now do need a grant parameter, this deprecated method does nothingstatic java.lang.String
coreJS(Grant g)
Core JS scriptstatic java.lang.String
cssBlock(java.lang.String css)
Encloses CSS styles into start/end tagsstatic java.lang.String
cssInclude(java.lang.String cssFile)
Includes CSS filestatic java.lang.String
cssInclude(java.lang.String cssFile, java.lang.String encoding)
Includes CSS file in specified encodingstatic java.lang.String
cssIncludes(java.lang.String[] cssFiles)
Includes CSS filesstatic java.lang.String
cssIncludes(java.lang.String[] cssFiles, java.lang.String encoding)
Includes CSS files in specified encodingstatic java.lang.String
cssMinify(java.lang.String css)
Minifies CSS stylesheetstatic 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.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 stylesheetstatic java.lang.String
domainRelaxing(Grant g)
Get domain relaxing JavaScript statement (old IE mechanism)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 menustatic 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 menustatic 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 itemstatic 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 itemstatic java.lang.String
error(java.lang.String msg, Grant g)
Formatted error messagestatic 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/> linkstatic java.lang.String
extractTarget(java.lang.String link)
Extract target part of an <a/> linkstatic java.lang.String
extractURL(java.lang.String url, java.lang.String addParams)
Extract an URL from a stringstatic java.lang.String
extraZone(java.lang.String icon, java.lang.String title, java.lang.String content)
HTML extra zonestatic java.lang.String
fatal(java.lang.String msg, Grant g)
Formatted fatal error messagestatic 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
fileStatement(java.lang.String path)
Simple file statementstatic java.lang.String
filterString(ObjectDB obj, java.lang.String sep)
Displayable object filterstatic 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 objectstatic java.lang.String[]
fontawsomeJS()
Font Awsome® icons JSstatic java.lang.String[]
fullcalendarCSS(int version)
Fullcalendar® CSS stylesheets (from FULLCALENDAR_LIBS if exists)static java.lang.String[]
fullcalendarJS()
Deprecated.static java.lang.String[]
fullcalendarJS(java.lang.String lang)
Fullcalendar V4 JS scripts (in specified language)static java.lang.String[]
fullcalendarJS(java.lang.String lang, int version)
Fullcalendar JS scripts (in specified language and from FULLCALENDAR_LIBS if exists)static java.lang.String
fullCalendarLang(java.lang.String lang)
Fullcalendar JS language code from Simplicite(R) language codestatic java.lang.String
getAboutURL()
About page URLstatic java.lang.String
getAbsoluteURL(java.lang.String url)
Get absolute URL from potentially relative URLstatic java.lang.String
getAbsoluteURL(java.lang.String url, boolean pub)
Return absolute URL from URLstatic 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 agendastatic 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 agendastatic java.lang.String
getAPIRoot()
Get API rootstatic 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 objectstatic java.lang.String
getChangePasswordURL()
Base change password page URLstatic java.lang.String
getChartURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base chart image URL for specified objectstatic java.lang.String
getConnectFormURL()
Public main page's connect form URLstatic 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 crosstabstatic java.lang.String
getDatamapSelectURL(ObjectDB obj, java.lang.String params)
Base data mapping select page URL for specified objectstatic java.lang.String
getDatamapSelectURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base data mapping select page URL for specified objectstatic java.lang.String
getDataURL(java.lang.String mime, byte[] data)
Return a data URLstatic java.lang.String
getDataURL(java.lang.String mime, java.lang.String data)
Return a data URLstatic java.lang.String
getDirectURL(Grant g, java.lang.String obj, java.lang.String rowId)
Direct URL to open the object update formstatic java.lang.String
getDirectURL(ObjectDB obj, boolean form)
Direct URL to open the object update formstatic java.lang.String
getDirectURL(java.lang.String obj, java.lang.String rowId)
Deprecated.use getDirectURL with grantstatic 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 fieldstatic 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 fieldstatic java.lang.String
getDocumentURL(java.lang.String params)
Base URL for document from DBDocstatic 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 documentstatic java.lang.String
getEditorURL(java.lang.String params)
Base editor page URLstatic java.lang.String
getErrorURL(java.lang.Exception e)
Base error page URL for specified exceptionstatic java.lang.String
getErrorURL(java.lang.Exception e, boolean pub)
Deprecated.Use getErrorURL without pub argumentstatic java.lang.String
getErrorURL(java.lang.String code)
Base error page URL for specified error codestatic java.lang.String
getErrorURL(java.lang.String code, boolean pub)
Deprecated.Use getErrorURL without pub argumentstatic java.lang.String
getErrorURL(java.lang.String code, java.lang.String param)
Base error page URL for specified error codestatic java.lang.String
getErrorURL(java.lang.String code, java.lang.String param, boolean pub)
Deprecated.Use getErrorURL without pub argumentstatic 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 objectstatic java.lang.String
getExternalObjectURL(java.lang.String extObjName, java.lang.String params)
Base external object URL for specified external object with parametersstatic java.lang.String
getExtraPreferencesURL(java.lang.String params)
Base extra preferences URLstatic java.lang.String
getExtraURL(java.lang.String params)
Base extra URLstatic java.lang.String
getFaviconURL(Grant g)
Get favicon URL 16x16static java.lang.String
getFaviconURL(Grant g, int size)
Get favicon URLstatic java.lang.String
getFooterURL(java.lang.String params)
Base footer URLstatic java.lang.String
getFormAreaId(java.lang.String formName, java.lang.String name)
Get form area DOM Idstatic java.lang.String
getFormButtonId(java.lang.String formName, java.lang.String name)
Get form button DOM Idstatic java.lang.String
getFormButtonTransitionId(java.lang.String formName, java.lang.String name)
Get form transition button DOM Idstatic java.lang.String
getFormCellId(java.lang.String formName, java.lang.String name)
Get form table cell DOM Idstatic java.lang.String
getFormDivId(java.lang.String formName, java.lang.String name)
Get form element DOM Idstatic java.lang.String
getFormFieldId(java.lang.String formName, ObjectField field)
Get form field DOM Idstatic java.lang.String
getFormFunctionId(java.lang.String formName, java.lang.String name)
Get form function DOM Idstatic java.lang.String
getFormId(java.lang.String name)
Formats form name into DOM Idstatic java.lang.String
getFormInputId(java.lang.String formName, java.lang.String name)
Get form input DOM Idstatic java.lang.String
getFormLinkId(java.lang.String formName, java.lang.String name)
Get form link DOM Idstatic java.lang.String
getFormObjId(java.lang.String formName, java.lang.String name)
Get form object DOM Idstatic java.lang.String
getFormPopupId(java.lang.String formName, java.lang.String name)
Get form popup DOM Idstatic java.lang.String
getFormPreviewURL(java.lang.String rowId)
Form preview page URL for specified object's row IDstatic java.lang.String
getFormRowId(java.lang.String formName, java.lang.String name)
Get form row DOM Idstatic java.lang.String
getFormURL(ObjectDB obj, boolean nav)
Deprecated.Use getFormURL with extra parametersstatic 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 parametersstatic java.lang.String
getFormURL(ObjectDB obj, java.lang.String rowId, java.lang.String params)
Base form page URL for specified object and row IDstatic 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 UIstatic java.lang.String
getFormURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String rowId, boolean nav)
Deprecated.Use getFormURL with extra parametersstatic 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 IDstatic java.lang.String
getFormVarId(java.lang.String formName, java.lang.String name)
Get form variable DOM Idstatic java.lang.String
getFrameFromZoneCode(java.lang.String zone)
Returns frame JS naming from zone code.static java.lang.String
getGitRoot()
Get Git rootstatic java.lang.String
getGoogleCalendarURL(int width, int height, java.lang.String id)
Google calendar URLstatic java.lang.String
getGoogleFontCSS(java.lang.String font)
Get Google font CSS statementstatic java.lang.String
getGoogleFontName(Grant g)
Get Google font URLstatic java.lang.String
getGoogleFontURL(java.lang.String font)
Get Google font URLstatic java.lang.String
getGoogleMapURL(float lat, float lng, int zoom, int width, int height, java.lang.String address, java.lang.String info)
Google map URLstatic java.lang.String
getGraphURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String graphName)
Base chart page URL for specified object and graphstatic java.lang.String
getHeaderURL(java.lang.String params)
Base header URLstatic java.lang.String
getHelpURL(ObjectDB obj, java.lang.String params)
Base help page URL for specified objectstatic java.lang.String
getHelpURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base help page URL for specified objectstatic java.lang.String
getHomeURL()
Base home URLstatic java.lang.String
getHomeURL(java.lang.String params)
Base home URLstatic java.lang.String
getIcon(Grant g, java.lang.String name, java.lang.String size, java.lang.String cls)
Front iconstatic java.lang.String
getIconURL(Grant grant, java.lang.String name)
URL for icon set resourcestatic java.lang.String
getImageDataURL(java.lang.String mime, byte[] data)
Alias to getDataURLstatic java.lang.String
getImageDataURL(java.lang.String mime, java.lang.String data)
Alias to getDataURLstatic java.lang.String
getImportExportURL(java.lang.String params)
Base import/export URLstatic java.lang.String
getIndexSearchURL(java.lang.String params)
Base index search page URLstatic java.lang.String
getIORoot()
Get I/O rootstatic java.lang.String
getListURL(ObjectDB obj, boolean nav)
Deprecated.Use getListURL with extra parametersstatic java.lang.String
getListURL(ObjectDB obj, java.lang.String params)
Base list page URL for specified objectstatic java.lang.String
getListURL(java.lang.String objName, java.lang.String params)
Base list page URL for specified object on responsive UIstatic java.lang.String
getListURL(java.lang.String objName, java.lang.String objInstanceName, boolean nav)
Deprecated.Use getListURL with extra parametersstatic java.lang.String
getListURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base list page URL for specified objectstatic java.lang.String
getLoadingIcon()
Get loading icon HTML tagstatic java.lang.String
getLoadingIconURL()
Get loading icon URLstatic java.lang.String
getLoadingImage()
Get loading image HTML tagstatic java.lang.String
getLoadingImageURL()
Get loading image URLstatic java.lang.String
getLoginURL()
Base login page URLstatic java.lang.String
getLogoutURL()
Base logout page URLstatic java.lang.String
getLogsURL(java.lang.String params)
Base logs page URLstatic java.lang.String
getMainURL(java.lang.String params)
Base main page URLstatic java.lang.String
getManifestURL(Grant grant)
Get manifest URLstatic java.lang.String
getMapURL(float lat, float lng, int zoom, int width, int height, java.lang.String address, java.lang.String info)
Map URLstatic java.lang.String
getMapURL(float lat, float lng, int zoom, java.lang.String info)
Map URLstatic java.lang.String
getMapURL(java.lang.String address, int zoom, java.lang.String info)
Mapstatic java.lang.String
getMediaURL(java.lang.String media, java.lang.String mime, int width, int height)
Media URLstatic java.lang.String
getMenuURL(java.lang.String params)
Base menu URLstatic java.lang.String
getMergeURL(ObjectDB obj)
Base merge form page URL for specified objectstatic java.lang.String
getMergeURL(java.lang.String objName, java.lang.String objInstanceName)
Base merge form page URL for specified objectstatic java.lang.String
getModuleChooserURL(java.lang.String params)
Base module chooser URLstatic java.lang.String
getNewsURL(java.lang.String params)
Base news reader URLstatic 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 mapstatic java.lang.String
getObjectRefSelectURL(ObjectDB obj, java.lang.String params)
Base object reference select page URL for specified objectstatic java.lang.String
getObjectRefSelectURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base object reference select page URL for specified objectstatic 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 typestatic java.lang.String
getPanelURL(ObjectDB obj, java.lang.String params)
Base panel page URL for specified objectstatic 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 objectstatic 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 mapstatic 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 processstatic java.lang.String
getProcessURL(java.lang.String type, java.lang.String pcsName, java.lang.String params)
Base process URL for specified typestatic java.lang.String
getProgressBar(Grant g, int prct)
Display a progress barstatic java.lang.String
getPublicDocumentURL(java.lang.String params)
Base URL for public document from DBDocstatic 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 documentstatic java.lang.String
getPublicErrorURL(java.lang.Exception e)
Deprecated.Use getErrorURLstatic java.lang.String
getPublicErrorURL(java.lang.String code)
Deprecated.Use getErrorURLstatic java.lang.String
getPublicErrorURL(java.lang.String code, java.lang.String param)
Deprecated.Use getErrorURLstatic java.lang.String
getPublicExternalObjectURL(java.lang.String extObjName)
Base public external object URL for specified external objectstatic java.lang.String
getPublicExternalObjectURL(java.lang.String extObjName, java.lang.String params)
Base public external page URL for specified external object with parametersstatic java.lang.String
getPublicHomeURL()
Base public home page URLstatic java.lang.String
getPublicMainURL(java.lang.String params)
Base public main page URLstatic java.lang.String
getPublicNewsURL(java.lang.String params)
Base public news reader URLstatic java.lang.String
getReferenceSelectURL(ObjectDB obj, java.lang.String params)
Base reference select page URL for specified objectstatic java.lang.String
getReferenceSelectURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base reference select page URL for specified objectstatic byte[]
getResourceContent(ExternalObject ext, java.lang.String type, java.lang.String code)
Content of specified external object resourcestatic byte[]
getResourceContent(Grant grant, java.lang.String type, java.lang.String code)
Content of specified disposition resourcestatic byte[]
getResourceContent(ObjectDB obj, java.lang.String type, java.lang.String code)
Content of specified business object resourcestatic java.lang.String
getResourceCSSContent(ExternalObject ext, java.lang.String code)
Content of specified external object CSS stylesheet resourcestatic java.lang.String
getResourceCSSContent(Grant grant, java.lang.String code)
Content of specified disposition CSS stylesheet resourcestatic java.lang.String
getResourceCSSContent(ObjectDB obj, java.lang.String code)
Content of specified business object CSS stylesheet resourcestatic java.lang.String
getResourceCSSURL(ExternalObject ext, java.lang.String code)
URL for specified external object CSS stylesheet resourcestatic java.lang.String
getResourceCSSURL(Grant grant, java.lang.String code)
URL for specified disposition CSS stylesheet resourcestatic java.lang.String
getResourceCSSURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition CSS stylesheet resourcestatic java.lang.String
getResourceCSSURL(ObjectDB obj, java.lang.String code)
URL for specified business object CSS stylesheet resourcestatic java.lang.String
getResourceHTMLContent(ExternalObject ext, java.lang.String code)
Content of specified external object HTML resourcestatic java.lang.String
getResourceHTMLContent(Grant grant, java.lang.String code)
Content of specified disposition HTML resourcestatic java.lang.String
getResourceHTMLContent(ObjectDB obj, java.lang.String code)
Content of specified business object HTML resourcestatic java.lang.String
getResourceHTMLURL(ExternalObject ext, java.lang.String code)
URL for specified external object HTML resourcestatic java.lang.String
getResourceHTMLURL(Grant grant, java.lang.String code)
URL for specified disposition HTML resourcestatic java.lang.String
getResourceHTMLURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition HTML resourcestatic java.lang.String
getResourceHTMLURL(ObjectDB obj, java.lang.String code)
URL for specified business object HTML resourcestatic java.lang.String
getResourceIconURL(ExternalObject ext, java.lang.String code)
URL for specified external object icon resourcestatic java.lang.String
getResourceIconURL(Grant grant, java.lang.String code)
URL for specified disposition icon resourcestatic java.lang.String
getResourceIconURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition icon resourcestatic java.lang.String
getResourceIconURL(ObjectDB obj, java.lang.String code)
URL for specified business object icon resourcestatic java.lang.String
getResourceImageURL(ExternalObject ext, java.lang.String code)
URL for specified external object image resourcestatic java.lang.String
getResourceImageURL(Grant grant, java.lang.String code)
URL for specified disposition image resourcestatic java.lang.String
getResourceImageURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition image resourcestatic java.lang.String
getResourceImageURL(ObjectDB obj, java.lang.String code)
URL for specified business object image resourcestatic java.lang.String
getResourceJSContent(ExternalObject ext, java.lang.String code)
Content of specified external object JavaScript resourcestatic java.lang.String
getResourceJSContent(Grant grant, java.lang.String code)
Content of specified disposition JavaScript resourcestatic java.lang.String
getResourceJSContent(ObjectDB obj, java.lang.String code)
Content of specified business object JavaScript resourcestatic java.lang.String
getResourceJSURL(ExternalObject ext, java.lang.String code)
URL for specified external object JavaScript resourcestatic java.lang.String
getResourceJSURL(Grant grant, java.lang.String code)
URL for specified disposition JavaScript resourcestatic java.lang.String
getResourceJSURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition JavaScript resourcestatic java.lang.String
getResourceJSURL(ObjectDB obj, java.lang.String code)
URL for specified business object JavaScript resourcestatic java.lang.String
getResourceMarkdownURL(ExternalObject ext, java.lang.String code)
URL for specified external object markdown resourcestatic java.lang.String
getResourceMarkdownURL(Grant grant, java.lang.String code)
URL for specified disposition markdown resourcestatic java.lang.String
getResourceMarkdownURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition markdown resourcestatic java.lang.String
getResourceMarkdownURL(ObjectDB obj, java.lang.String code)
URL for specified business object markdown resourcestatic java.lang.String
getResourceMDContent(ExternalObject ext, java.lang.String code)
Content of specified external object markdown resourcestatic java.lang.String
getResourceMDContent(Grant grant, java.lang.String code)
Content of specified disposition markdown resourcestatic java.lang.String
getResourceMDContent(ObjectDB obj, java.lang.String code)
Content of specified business object markdown resourcestatic byte[]
getResourcePDFContent(ExternalObject ext, java.lang.String code)
Content of specified external object PDF document resourcestatic byte[]
getResourcePDFContent(Grant grant, java.lang.String code)
Content of specified disposition PDF document resourcestatic byte[]
getResourcePDFContent(ObjectDB obj, java.lang.String code)
Content of specified business object PDF document resourcestatic java.lang.String
getResourcePDFURL(ExternalObject ext, java.lang.String code)
URL for specified external object PDF resourcestatic java.lang.String
getResourcePDFURL(Grant grant, java.lang.String code)
URL for specified disposition PDF resourcestatic java.lang.String
getResourcePDFURL(Grant grant, java.lang.String code, java.lang.String deflt)
URL for specified disposition PDF resourcestatic java.lang.String
getResourcePDFURL(ObjectDB obj, java.lang.String code)
URL for specified business object PDF resourcestatic java.lang.String
getResourceURL(ExternalObject ext, java.lang.String type, java.lang.String code, java.lang.String deflt)
URL for specified external object resourcestatic java.lang.String
getResourceURL(Grant grant, java.lang.String type, java.lang.String code, java.lang.String deflt)
URL for specified disposition resourcestatic 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 resourcestatic java.lang.String
getResourceURL(ObjectDB obj, java.lang.String type, java.lang.String code, java.lang.String deflt)
URL for specified business object resourcestatic 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 URLstatic java.lang.String
getScopesURL(java.lang.String params)
Base scopes page URLstatic java.lang.String
getScriptFromJavascriptStatement(java.lang.String s)
Get script from JavaScript statementstatic java.lang.String
getSearchURL(ObjectDB obj)
Deprecated.Use getSearchURL with extra parametersstatic java.lang.String
getSearchURL(ObjectDB obj, java.lang.String params)
Base search page URL for specified objectstatic java.lang.String
getSearchURL(java.lang.String objName, java.lang.String objInstanceName)
Deprecated.Use getSearchURL with extra parametersstatic java.lang.String
getSearchURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base search page URL for specified objectstatic java.lang.String
getShortcutsURL(java.lang.String params)
Base shortcuts URLstatic java.lang.String
getSimpleViewURL(java.lang.String viewName, java.lang.String params)
Base simple view URLstatic java.lang.String
getStaticContent(java.lang.String fileName)
Static contentstatic java.lang.String
getStaticContentURL(java.lang.String fileName)
URL for specified static contentstatic java.lang.String
getSubHeaderURL(java.lang.String params)
Base sub-header URLstatic 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 sheetstatic java.lang.String
getTinyFormURL(java.lang.String objName, java.lang.String rowId)
Tiny URL to object formstatic java.lang.String
getTinyListURL(java.lang.String objName)
Tiny URL to object liststatic java.lang.String
getTreeviewURL(java.lang.String treeviewName, java.lang.String params)
Base treeview URLstatic java.lang.String
getUIRoot()
Get UI rootstatic java.lang.String
getUndoRedoURL(boolean patch, java.lang.String params)
Base undo/redo URLstatic java.lang.String
getUniqueID(Grant grant)
Get a unique hash ID for grantstatic java.lang.String
getUpdateAllURL(ObjectDB obj)
Base update all form page URL for specified objectstatic java.lang.String
getUpdateAllURL(java.lang.String objName, java.lang.String objInstanceName)
Base update all form page URL for specified objectstatic java.lang.String
getURLFromRedirectStatement(java.lang.String s)
Get URL from Redirect statementstatic java.lang.String
getViewURL(java.lang.String viewName, java.lang.String params)
Base view URLstatic java.lang.String
globalJSVars()
Deprecated.use jsGlobalsstatic java.lang.String[]
gmapJS()
GoogleMaps® JS scriptsstatic java.lang.String[]
gmapJS(Grant g)
GoogleMaps® JS scriptsstatic java.lang.String
help(java.lang.String help)
Standard helpstatic 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 stylesheetstatic java.lang.String
highlightJS()
Highlight® JS scriptstatic java.lang.String
htmlChart(java.lang.String divId, java.lang.String json, int width, int height)
HTML chartstatic java.lang.String[]
htmleditorCSS()
HTML editor CSS stylesheetsstatic java.lang.String[]
htmleditorJS()
HTML editor JS scriptsstatic java.lang.String
htmlPopup(Grant g, java.lang.String formName, java.lang.String name, java.lang.String content)
HTML content popup without titlestatic 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 popupstatic 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 popupstatic 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 tagstatic 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 tagstatic 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 eventstatic 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 eventstatic 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 eventstatic java.lang.String
info(java.lang.String msg, Grant g)
Formatted information messagestatic boolean
isFileStatement(java.lang.String s)
Is specified value a simple file statement?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 statementstatic java.lang.String[]
jqplotCSS()
JQPlot® CSS stylesheetsstatic java.lang.String[]
jqplotJS()
JQPlot® additional JS scriptsstatic java.lang.String
jqueryJS()
jQuery® JS scriptstatic java.lang.String
jsBlock(java.lang.String js)
Encloses JavaScript code into start/end tagsstatic java.lang.String
jsConstants()
JavaScript constantsstatic java.lang.String
jsGlobals(Grant g)
JavaScript global variablesstatic java.lang.String
jsInclude(java.lang.String jsFile)
Includes JavaScript filestatic java.lang.String
jsInclude(java.lang.String jsFile, java.lang.String encoding)
Includes JavaScript file in specified encodingstatic java.lang.String
jsInclude(java.lang.String jsFile, java.lang.String encoding, boolean async, boolean defer)
Includes JavaScript file in specified encodingstatic java.lang.String
jsIncludes(java.lang.String[] jsFiles)
Includes JavaScript filesstatic java.lang.String
jsIncludes(java.lang.String[] jsFiles, java.lang.String encoding)
Includes JavaScript files in specified encodingstatic java.lang.String
jsIncludes(java.lang.String[] jsFiles, java.lang.String encoding, boolean async, boolean defer)
Includes JavaScript files in specified encodingstatic java.lang.String
jsMinify(java.lang.String js)
Minifies JavaScript codestatic java.lang.String
JSONArrayToTable(java.lang.String grid)
Convert a JSONArray to tablestatic java.lang.String
JSONArrayToTable(org.json.JSONArray grid)
Convert a JSONArray to tablestatic java.lang.String
jsOnload(java.lang.String js)
JavaScript onload statementstatic java.lang.String
jsontreeCSS()
JsonTreeViewer® CSS stylesheetstatic java.lang.String
jsontreeJS()
JsonTreeViewer® JS scriptstatic java.lang.String
jsTexts(Grant g, java.lang.String regex)
JavaScript textsstatic java.lang.String
leafletCSS()
OpenStreetMap leaflet® CSS stylesheetstatic java.lang.String
leafletJS()
OpenStreetMap leaflet® JS scriptstatic java.lang.String
lessToCss(java.io.File less)
Converts LESS file to CSSstatic java.lang.String
lessToCss(java.lang.String less)
Converts LESS string to CSSstatic 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 popupstatic java.lang.String
linkPopup(java.lang.String formName, java.lang.String name)
Deprecated.static java.lang.String[]
mainPageCSS(Grant grant)
Main page additional CSS stylesheetsstatic java.lang.String[]
mainPageJS()
Main page additional JS scriptsstatic java.lang.String[]
markdownCSS()
Markdown CSS stylesheetsstatic java.lang.String[]
markdownJS()
Markdown JS scriptsstatic java.lang.String
message(char level, java.lang.String msg, Grant g)
Formatted messagestatic java.lang.String[]
modelerCSS(Grant grant)
Modeler CSS stylesheetsstatic java.lang.String[]
modelerJS()
Modeler JS scriptsstatic java.lang.String[]
momentJS()
Moment JS scriptsstatic 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 objectstatic 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 comboboxstatic 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 comboboxstatic 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 scriptstatic java.lang.String
openBorder()
Opens standard panel without tabstatic java.lang.String
openBorder(java.lang.String icon, java.lang.String title, java.lang.String cls)
Opens standard panel with tabstatic 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 zonestatic 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 (for instanceaction="", method="", ...
)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 pagestatic 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)
openSimpleAreastatic 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 formstatic java.lang.String
openSimpleMultipartForm(java.lang.String formName, java.lang.String action)
Opens simple multipart action formstatic java.lang.String
openSimplePage(java.lang.String title, java.lang.String[] extracss, java.lang.String[] extrajs)
Opens simple HTML pagestatic 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 headersstatic 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 inputstatic 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 parameterstatic java.lang.String
passwordInput(java.lang.String formName, java.lang.String name, int size, java.lang.String value, int tab)
Password inputstatic 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 inputstatic java.lang.String
placeMapIncludes()
Placemap includesstatic 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)
- [MDRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Markdown resource URL (without quotes)
- [PDFRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : PDF resource URL (without quotes)
- [RESOURCEURL:<resource code>[:<resource type (defaults to other)>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]] : any other type 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 statementstatic java.lang.String
servicesJS()
Deprecated.Synchronous services JS has been removed,Simplicite.Ajax
must be usedstatic void
setRoot(java.lang.String cp)
Deprecated.Does nothingstatic 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 markerstatic 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 markerstatic 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 stylesheetsstatic java.lang.String[]
standardJS(Grant grant, boolean calendar, boolean calculator, boolean colorpicker, boolean htmleditor, boolean undoredo, boolean treeview, boolean completion, boolean charts)
Standard JS scriptsstatic 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 functionstatic 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 eventstatic 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 messagestatic 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 scriptsstatic 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 titlestatic java.lang.String
titleButtons(java.lang.String[] btns)
Title buttonsstatic java.lang.String
toolsJS()
Tools JS scriptstatic java.lang.String
toPlainMarkdownText(java.lang.String html)
Remove all HTML tags from Markdown textstatic java.lang.String
toPlainText(java.lang.String html)
Remove all HTML tags from textstatic java.lang.String
toPlainText(java.lang.String html, boolean preserveLineBreaks, boolean preserveTabulations)
Remove all HTML tags from textstatic java.lang.String
toPlainText(java.lang.String html, boolean preserveLineBreaks, boolean preserveTabulations, boolean decodeHTMLEntities)
Remove all HTML tags from textstatic java.lang.String
toSafeHTML(java.lang.String html)
Remove all script tags from HTMLstatic java.lang.String
toSafeHTML(java.lang.String html, java.lang.String[] tags)
Remove all script and SVG tags from HTML (restricted to body part if any)static java.lang.String
treeviewJS()
Treeview JS scriptstatic java.lang.String[]
uiJS()
UI JS scripts (Note: it includes Ajax scripts)static java.lang.String
uiToolsCSS()
Legacy UI tools CSS stylesheetstatic java.lang.String
uiToolsJS()
Legacy UI tools JS scriptstatic java.lang.String
undoredoJS()
UndoRedo JS scriptstatic java.lang.String
urlBlock(java.lang.String url)
Client-side asynchronously-loaded URL blockstatic java.lang.String
urlBlock(java.lang.String url, java.lang.String id, boolean loading)
Client-side asynchronously-loaded URL blockstatic 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 popupstatic 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 popupstatic 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 tagstatic java.lang.String[]
vueJS()
Vue® JS scriptstatic java.lang.String
warning(java.lang.String msg, Grant g)
Formatted warning messagestatic 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 buttonstatic 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 buttonstatic java.lang.String
winIEIncludes(boolean canvas)
Specific IE compatibility include headersstatic java.lang.String
winIEWarning()
Old IE warning
-
-
-
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_WIDTH
public static final int POPUP_WIDTH
Default popup width- 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
-
DOCTYPE_HTML4
public static final java.lang.String DOCTYPE_HTML4
- See Also:
- Constant Field Values
-
DOCTYPE_HTML5
public static final java.lang.String DOCTYPE_HTML5
- 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
Process icon- See Also:
- Constant Field Values
-
ICON_WORKFLOW
public static final java.lang.String ICON_WORKFLOW
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_GRAPH
public static final java.lang.String ICON_GRAPH
Graph icon- See Also:
- Constant Field Values
-
ICON_USER
public static final java.lang.String ICON_USER
User icon- See Also:
- Constant Field Values
-
ICON_GROUP
public static final java.lang.String ICON_GROUP
Group 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_PRINT
public static final java.lang.String ICON_PRINT
Print icon- See Also:
- Constant Field Values
-
ICON_CHAT
public static final java.lang.String ICON_CHAT
Chat icon- See Also:
- Constant Field Values
-
ICON_IMAGE
public static final java.lang.String ICON_IMAGE
Image icon- See Also:
- Constant Field Values
-
ICON_URL
public static final java.lang.String ICON_URL
URL 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_ERROR
public static final java.lang.String ICON_ERROR
Error icon- See Also:
- Constant Field Values
-
ICON_WARNING
public static final java.lang.String ICON_WARNING
Error icon- See Also:
- Constant Field Values
-
ICON_INFO
public static final java.lang.String ICON_INFO
Warning icon- See Also:
- Constant Field Values
-
ICON_MESSAGE
public static final java.lang.String ICON_MESSAGE
Message icon- See Also:
- Constant Field Values
-
ICON_TASK
public static final java.lang.String ICON_TASK
Task 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_EDIT
public static final java.lang.String ICON_EDIT
Edit icon- See Also:
- Constant Field Values
-
ICON_COMPUTER
public static final java.lang.String ICON_COMPUTER
Computer icon- See Also:
- Constant Field Values
-
ICON_MAP
public static final java.lang.String ICON_MAP
Map- See Also:
- Constant Field Values
-
ICON_BOX
public static final java.lang.String ICON_BOX
Box- See Also:
- Constant Field Values
-
ICON_GIFT
public static final java.lang.String ICON_GIFT
Gift- See Also:
- Constant Field Values
-
ICON_TRUCK
public static final java.lang.String ICON_TRUCK
Truck- See Also:
- Constant Field Values
-
ICON_CASH
public static final java.lang.String ICON_CASH
Cash- See Also:
- Constant Field Values
-
ICON_TIMESHEET
public static final java.lang.String ICON_TIMESHEET
Time sheet- See Also:
- Constant Field Values
-
ICON_SHOP
public static final java.lang.String ICON_SHOP
Shop- 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
-
MEDIA_WAV
public static final java.lang.String MEDIA_WAV
- See Also:
- Constant Field Values
-
MEDIA_MP3
public static final java.lang.String MEDIA_MP3
- See Also:
- Constant Field Values
-
MEDIA_WMA
public static final java.lang.String MEDIA_WMA
- See Also:
- Constant Field Values
-
MEDIA_AAC
public static final java.lang.String MEDIA_AAC
- See Also:
- Constant Field Values
-
MEDIA_OGA
public static final java.lang.String MEDIA_OGA
- See Also:
- Constant Field Values
-
MEDIA_FLV
public static final java.lang.String MEDIA_FLV
- See Also:
- Constant Field Values
-
MEDIA_AVI
public static final java.lang.String MEDIA_AVI
- See Also:
- Constant Field Values
-
MEDIA_MPG
public static final java.lang.String MEDIA_MPG
- See Also:
- Constant Field Values
-
MEDIA_WMV
public static final java.lang.String MEDIA_WMV
- See Also:
- Constant Field Values
-
MEDIA_MP4
public static final java.lang.String MEDIA_MP4
- See Also:
- Constant Field Values
-
MEDIA_OGV
public static final java.lang.String MEDIA_OGV
- See Also:
- Constant Field Values
-
MEDIA_WEBM
public static final java.lang.String MEDIA_WEBM
- 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
-
-
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 global variables- Parameters:
g
- Grant- Returns:
- JavaScript global variables declarations
-
jsTexts
public static java.lang.String jsTexts(Grant g, java.lang.String regex)
JavaScript texts- Parameters:
g
- Grantregex
- 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 fileencoding
- 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 fileencoding
- File encodingasync
- 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 filesencoding
- 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 filesencoding
- File encodingasync
- 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 fileencoding
- 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 filesencoding
- 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
-
fileStatement
public static java.lang.String fileStatement(java.lang.String path)
Simple file statement- Parameters:
path
- File path
-
isFileStatement
public static boolean isFileStatement(java.lang.String s)
Is specified value a simple file statement?- Parameters:
s
- Value to check
-
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 fromaddParams
- 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
- URLpub
- 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 granthtmleditor
- Include HTML editor stylesheetscharts
- Include HTML charts stylesheetscalendar
- 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 grantcalendar
- Include calendars scriptscalculator
- Include calculator scriptscolorpicker
- Include color picker scriptshtmleditor
- Include HTML editor scriptsundoredo
- Include Undo Redo features scriptstreeview
- Include Tree view scriptscompletion
- Include completion picker scriptscharts
- Include HTML charts scripts- Returns:
- Standard JS scripts
-
coreJS
@Deprecated public void coreJS()
Deprecated.Core now do need a grant parameter, this deprecated method does nothing
-
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
-
jqueryJS
public static java.lang.String jqueryJS()
jQuery® JS script- Returns:
- jQuery® JS script
-
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(int version)
Fullcalendar® CSS stylesheets (from FULLCALENDAR_LIBS if exists)- Returns:
- Fullcalendar® CSS stylesheets
-
fullcalendarJS
@Deprecated public static java.lang.String[] fullcalendarJS()
Deprecated.Fullcalendar V3 JS scripts (deprecated version)- Returns:
- Fullcalendar® JS scripts
-
fullcalendarJS
public static java.lang.String[] fullcalendarJS(java.lang.String lang)
Fullcalendar V4 JS scripts (in specified language)- Parameters:
lang
- Simplicite(R) language code (e.g. getGrant().getLang())- 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, int version)
Fullcalendar JS scripts (in specified language and from FULLCALENDAR_LIBS if exists)- Parameters:
lang
- Simplicite(R) language code (e.g. getGrant().getLang())version
- 3 (deprecated) or 4- 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
-
vueJS
public static java.lang.String[] vueJS()
Vue® JS script- Returns:
- Vue® 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
-
captchaJS
public static java.lang.String captchaJS()
Captcha JS script- Returns:
- Captcha JS script
-
captchaCSS
public static java.lang.String captchaCSS()
Captcha CSS stylesheet- Returns:
- Captcha 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
-
momentJS
public static java.lang.String[] momentJS()
Moment JS scripts- Returns:
- Moment script
-
chartJS
public static java.lang.String[] chartJS()
Chart.js JS scripts- Returns:
- Chart.js® JS scripts
-
getManifestURL
public static java.lang.String getManifestURL(Grant grant)
Get manifest URL- Parameters:
grant
- Grant- 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 grantdisp
- Dispositionstandard
- True for adding standard styles and javascriptcalendar
- Include calendarscalculator
- Include calculatorcolorpicker
- Include color pickerhtmleditor
- Include HTML editorundoredo
- Include undo-redo featurestreeview
- Include tree viewmodeler
- Include modelercompletion
- Include completion pickercharts
- Include HTML chartsextrahead
- Extra header contentextracss
- Extra CSS includesextrajs
- Extra JavaScript includespage
- 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 titleextracss
- Extra stylesheetextrajs
- 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 granttitle
- Page titledisp
- Dispositionstd
- True for adding standard styles and javascriptcalend
- Include calendarscalc
- Include calculatorcolor
- Include color pickerhtmledit
- Include HTML editorundoredo
- Include Undo Redo featurestreeview
- Include Tree viewcompletion
- Include completion pickercharts
- Include HTML charts (also needs HTML_CHARTS system parameter)extrahead
- Extra header contentextracss
- Extra CSS includesextrajs
- Extra JavaScript includescls
- CSS class(es) for body- Returns:
- Beginning of an HTML Page
-
domainRelaxing
public static java.lang.String domainRelaxing(Grant g)
Get domain relaxing JavaScript statement (old IE mechanism)- Parameters:
g
- Grant- Returns:
- Domain relaxing JavaScript statement
-
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 rightstitle
- TitleiconCode
- 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 Titlehelp
- 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 icontitle
- 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.
-
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.
-
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
- Granticon
- Extra zone icontitle
- Extra zone titleid
- 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 icontitle
- Extra zone titlecontent
- 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)
Get form element DOM Id- Parameters:
formName
- Form namename
- Element name- Returns:
- Form element DOM Id
-
getFormInputId
public static java.lang.String getFormInputId(java.lang.String formName, java.lang.String name)
Get form input DOM Id- Parameters:
formName
- Form namename
- Input name- Returns:
- Input DOM Id
-
getFormButtonTransitionId
public static java.lang.String getFormButtonTransitionId(java.lang.String formName, java.lang.String name)
Get form transition button DOM Id- Parameters:
formName
- Form namename
- Transition button name- Returns:
- Transition button DOM Id
-
getFormButtonId
public static java.lang.String getFormButtonId(java.lang.String formName, java.lang.String name)
Get form button DOM Id- Parameters:
formName
- Form namename
- Button name- Returns:
- Button DOM Id
-
getFormLinkId
public static java.lang.String getFormLinkId(java.lang.String formName, java.lang.String name)
Get form link DOM Id- Parameters:
formName
- Form namename
- Link name- Returns:
- Link DOM Id
-
getFormPopupId
public static java.lang.String getFormPopupId(java.lang.String formName, java.lang.String name)
Get form popup DOM Id- Parameters:
formName
- Form namename
- Popup name- Returns:
- Popup DOM Id
-
getFormAreaId
public static java.lang.String getFormAreaId(java.lang.String formName, java.lang.String name)
Get form area DOM Id- Parameters:
formName
- Form namename
- Area name- Returns:
- Area DOM Id
-
getFormCellId
public static java.lang.String getFormCellId(java.lang.String formName, java.lang.String name)
Get form table cell DOM Id- Parameters:
formName
- Form namename
- Table cell name- Returns:
- Tabkle xell DOM Id
-
getFormRowId
public static java.lang.String getFormRowId(java.lang.String formName, java.lang.String name)
Get form row DOM Id- Parameters:
formName
- Form namename
- Table row name- Returns:
- Table row DOM Id
-
getFormObjId
public static java.lang.String getFormObjId(java.lang.String formName, java.lang.String name)
Get form object DOM Id- Parameters:
formName
- Form namename
- Object name- Returns:
- Object DOM Id
-
getFormFunctionId
public static java.lang.String getFormFunctionId(java.lang.String formName, java.lang.String name)
Get form function DOM Id- Parameters:
formName
- Form namename
- Function name- Returns:
- Function DOM Id
-
getFormFieldId
public static java.lang.String getFormFieldId(java.lang.String formName, ObjectField field)
Get form field DOM Id- Parameters:
formName
- Form namefield
- Field- Returns:
- Field DOM Id
-
getFormVarId
public static java.lang.String getFormVarId(java.lang.String formName, java.lang.String name)
Get form variable DOM Id- Parameters:
formName
- Form namename
- Variable name- Returns:
- Variable DOM Id
-
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 (for instanceaction="", method="", ...
)- Parameters:
formName
- Form nameaction
- 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 nameaction
- Form action URLmethod
- 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 nameaction
- 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 namedefaultInputName
- 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 nameurl
- Form URLbuttonId
- 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 namename
- Button namelabel
- Button labelurl
- URLcls
- 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 namename
- Link namelabel
- Link labeltargetZone
- Target zoneurl
- URLconfirmMsg
- Label to confirmextraTags
- Extra HTML tagscls
- 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 namename
- Button namelabel
- Button labelurl
- URLcls
- 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 namename
- Button namelabel
- Button alt textsrc
- Image srcurl
- URLtab
- 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 namename
- Button namelabel
- Button labeljs
- 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 namename
- Button namelabel
- Button labeljs
- 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 namename
- Button namelabel
- Button labelsrc
- Image sourcejs
- 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 namename
- Button namelabel
- Button labelsrc
- Image sourcejs
- 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 namename
- Button namelabel
- Button label (html syntax to display in a span)hover
- Button hover textsrc
- Optional image sourceonclick
- 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
- GrantformName
- Form namename
- Button namelabel
- HTML label: display a text button or a image if nullhover
- optional titlesrc
- optonal icononclick
- Javascript onclick (open the menu if null)onblur
- Javascript onblur (close the menu if null)cls
- optional button classtab
- form tabulationrightBtn
- Display the dropdown button on the right sidemenuId
- Id of popup menuitems
- Items built with dropdownItem, or empty string=separatorclsMenu
- Menu style (default workmenu)topMenu
- Display the menu up or down the buttonleftMenu
- 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
- GrantformName
- Form namename
- Button namelabel
- HTML label: display a text button or a image if nullhover
- optional titlesrc
- icononclick
- Javascript onclick (open the menu if null)onblur
- Javascript onblur (close the menu if null)cls
- optional button classtab
- form tabulationrightBtn
- Display the dropdown button on the right sidemenuId
- Id of popup menumenuContent
- HTML contenttopMenu
- Display the menu up or down the buttonleftMenu
- 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 idformName
- Optional form namename
- Item nameicon
- Optional icontitle
- Item titleonclick
- Optional scriptcls
- Optional class (default workmenu)tab
- TabulationcloseOnClick
- 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 idformName
- Optional form namename
- Item nameicon
- Optional icontitle
- Item titleextra
- Item extra contentonclick
- Optional scriptcls
- Optional class (default workmenu)tab
- TabulationcloseOnClick
- 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 namename
- Input namevalue
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuetab
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuereadOnly
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuereadOnly
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuereadOnly
- Read only ?onChange
- JavaScript for onchange eventcls
- 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 namename
- Input namevisualsize
- Visual sizemaxsize
- Max input sizevalue
- Input valuereadOnly
- 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 namename
- Input namevisualsize
- Visual size (0=default browser size)maxsize
- Max input size (0=unlimited)value
- Input valuereadOnly
- Read only ?onChange
- JavaScript for onchange eventcls
- 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 namename
- Input namevisualsize
- Visual size (0=default browser size)maxsize
- Max input size (0=unlimited)value
- Input valueplaceholder
- Placeholder messagereadOnly
- Read only ?onChange
- JavaScript for onchange eventcls
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuetab
- 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 namename
- Input namesize
- Max input sizevalue
- Input valuecls
- 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 namename
- Input namevisualsize
- Visual sizemaxsize
- Max input sizevalue
- Input valueforceNewPassword
- 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
- GrantformName
- Form namename
- Input namepopupName
- Popup name (optional : if null a specific popup is generated)value
- Input date valuereadOnly
- 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.
-
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.
-
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.
-
fileInput
public static java.lang.String fileInput(java.lang.String formName, java.lang.String name, int size, int tab)
File input.- Parameters:
formName
- Form namename
- Input namesize
- Max sizetab
- 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 namename
- Input namesize
- Max size (0 defaults to 100, < 0 sets 100% width style)cls
- Classtab
- 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 namename
- Input namecols
- Number of columnsrows
- Number of linesvalue
- Input valuetab
- 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 namename
- Input namecols
- Number of columnsrows
- Number of linesreadOnly
- Read only ?value
- Input valuecls
- 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 namename
- Input namecols
- 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 valueonChange
- JavaScript for onchange eventcls
- 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 namename
- Checkbox namechecked
- Checked ?value
- Checkbox valuetab
- 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 namename
- Input nameyes
- Yes translationno
- No translationvalueSelected
- Is a value selected by default ?value
- Input valuetab
- 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 namename
- Input nameyes
- Yes translationno
- No translationvalueSelected
- 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 namename
- Input namevalue
- 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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsvalue
- Selected valueonChange
- JavaScript for onchange eventcls
- 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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsvalue
- Selected valuecls
- 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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsselectedIndex
- 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 namename
- Input namenullValue
- Add an intial null valuevalues
- Possible valuesvalueLabels
- Possible values labelsvalue
- Selected valueonChange
- JavaScript for onchange eventcls
- 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 namename
- Input namenullValue
- Add an intial null valuevalues
- Possible valuesvalueLabels
- Possible values labelsselectedIndex
- Selected index (-1 = none selected)onChange
- JavaScript for onchange eventcls
- 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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsvalue
- Selected valuelineBreaks
- Forces line break after each radio buttontab
- 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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsselectedIndex
- Selected index (-1 = none selected)lineBreaks
- Forces line break after each radio buttontab
- 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 namename
- Input namesize
- Select box size (height)values
- Possible valuesvalueLabels
- Possible values labelsselectedValues
- 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 namename
- Input namesize
- Select box size (height)values
- Possible valuesvalueLabels
- Possible values labelsselectedFlags
- 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
- GrantformName
- Form namename
- Input namesize
- sizevalues
- Possible valuesvalueLabels
- Possible values labelsselectedValues
- Selected values (can be null)cls
- classtab
- 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.
-
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
- GrantformName
- Form namename
- Input namesize
- sizevalues
- Possible valuesvalueLabels
- Possible values labelsselectedFlags
- Selected flags (can be null)cls
- classtab
- 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.
-
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.
-
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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsselectedValues
- 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.
-
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 namename
- Input namevalues
- Possible valuesvalueLabels
- Possible values labelsselectedFlags
- 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 styleicon
- Tab iconcontent
- 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 idtype
- Tab styleicon
- Tab iconcontent
- Tab contenthelp
- Tab hover helpvisible
- show/hide tabonclick
- 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
- Contenttitle
- 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
- Contenticon
- 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.
-
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
- GrantformName
- formNamename
- nametitle
- titlecollapsible
- collapsiblecollapsed
- collapsedtab
- tabobj
- ObjectDBvisible
- 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
- GrantformName
- Form namename
- Area nametitle
- Titlecollapsible
- Collapsible ?collapsed
- Collapsedtab
- Start tab index (0 = no explicit tab index)cls
- table style (workarea if null)obj
- Business objectvisible
- 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.
-
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
- GrantformName
- Form namename
- Area nametitle
- Titlecollapsible
- Collapsible ?collapsed
- Collapsedwidth
- Width (px)height
- Height (px)tab
- Start tab index (0 = no explicit tab index)object
- Business objectvisible
- 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.
-
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.
-
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
- Grantarea
- Area datacollapsible
- Collapsible ?collapsed
- Collapsedwidth
- 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
- GrantformName
- Form nameareaName
- Area nametitle
- Titlecontent
- Contentcollapsible
- Collapsible ?collapsed
- Collapsedtab
- 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.
-
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
- GrantformName
- Form nameareaName
- Area nametitle
- Titlecontent
- Contentcollapsible
- Collapsible ?collapsed
- Collapsedtab
- 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.
-
simpleArea
public static java.lang.String simpleArea(Grant g, HTMLTool.Area area, boolean collapsible, boolean collapsed, int tab)
(Non)collapsible area panel.- Parameters:
g
- Grantarea
- Area datacollapsible
- Collapsible ?collapsed
- Collapsedtab
- 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.
-
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
- GrantformName
- Form nameareaName
- Area nametitle
- Titlecontent
- Contentcollapsible
- Collapsible ?collapsed
- Collapsedwidth
- Area widthheight
- Area heighttab
- 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.
-
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
- Grantarea
- Area datacollapsible
- Collapsible ?collapsed
- Collapsedwidth
- Area widthheight
- Area heighttab
- 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.
-
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
- GrantformName
- Form namename
- Area group name (area index is appended for each area name)titles
- Titlescontents
- Contentsvisible
- Content visibilities (true if null)currentIndex
- Selected panel indexcollapsible
- Collapsible ?collapsed
- Collapsedcls
- 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
- GrantformName
- Form namename
- Area group name (area index is appended for each area name)titles
- Titlescontents
- Contentsvisible
- Content visibilities (true if null)currentIndex
- Selected panel indexcollapsible
- Collapsible ?collapsed
- Collapsedcls
- 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.
-
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.
-
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
- Grantareas
- Areas datacurrentIndex
- Selected panel indexcollapsible
- Collapsible ?collapsed
- Collapsedcls
- Classtab
- 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.
-
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
- GrantformName
- Form namename
- Area nameshortContent
- 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 expandcollapseJS
- Additional JavaScript called after area collapsedelay
- 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.
-
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
- GrantformName
- Form namename
- Area nametitle
- Titletab
- 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.
-
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 namename
- Area nametitle
- TitleimgExpand
- Image for expandimgCollapse
- Image for collapsetab
- 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
- GrantformName
- Form nameareaName
- Area nametitle
- Titlecontent
- Contenttab
- 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.
-
isListVisible
@Deprecated public static boolean isListVisible(ObjectDB obj, ObjectField f)
Deprecated.use obj.isFieldVisible(f,true,true)
-
isListVisible
@Deprecated public static boolean isListVisible(ObjectDB obj, FieldArea fa)
Deprecated.use obj.isAreaVisible(fa,true,true)
-
filterString
public static java.lang.String filterString(ObjectDB obj, java.lang.String sep)
Displayable object filter- Parameters:
obj
- ObjectDBsep
- 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
- GrantformName
- Form namename
- Popup namecontent
- Content- Returns:
- html
-
htmlPopup
@Deprecated public static java.lang.String htmlPopup(java.lang.String formName, java.lang.String name, java.lang.String content)
Deprecated.
-
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
- GrantformName
- Form namename
- Popup nameicon
- 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.
-
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
- GrantformName
- Form namename
- Popup nameicon
- 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
- contentwidth
- 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.
-
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 namepopupName
- Popup nameimgName
- 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
- GrantformName
- Form namename
- Popup nameicon
- 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
- GrantformName
- Form namename
- Calculator popup name- Returns:
- html
-
calculatorPopup
@Deprecated public static java.lang.String calculatorPopup(java.lang.String formName, java.lang.String name)
Deprecated.
-
colorPopup
public static java.lang.String colorPopup(Grant g, java.lang.String formName, java.lang.String name)
Color chooser popup- Parameters:
g
- GrantformName
- Form namename
- colorPopup popup name- Returns:
- html
-
colorPopup
@Deprecated public static java.lang.String colorPopup(java.lang.String formName, java.lang.String name)
Deprecated.
-
linkPopup
public static java.lang.String linkPopup(Grant g, java.lang.String formName, java.lang.String name)
Link popup- Parameters:
g
- GrantformName
- Form namename
- Link popup name- Returns:
- html
-
linkPopup
@Deprecated public static java.lang.String linkPopup(java.lang.String formName, java.lang.String name)
Deprecated.
-
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
- GrantformName
- Form namepopupName
- Popup nameicon
- 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
- URLwidth
- 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.
-
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 namepopupName
- Popup nameimgName
- 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
- URLwidth
- 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 namepopupName
- Popup nameimgName
- 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
- URLwidth
- 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 namename
- Image button nameicon
- Link and title iconalt
- Link icon alt texturl
- URLtab
- 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 namename
- Image button nameicon
- Link and title iconalt
- Link icon alt texturl
- URLwidth
- Width (px), 0 means defaultheight
- Height (px), 0 means defaulttab
- 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 loadid
- 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 namename
- Div namewidth
- Map width (px)height
- Map height (px)lat
- Latitudelng
- Longitudezoom
- Zoom levelinfo
- 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
- GrantformName
- Form namename
- Div namewidth
- Map width (px)height
- Map height (px)address
- Place addresszoom
- Zoom levelinfo
- 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 namename
- Div namewidth
- Map width (px)height
- Map height (px)address
- Place addresszoom
- Zoom levelinfo
- 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 namename
- Nameurl
- Multimedia file URL (*.mp3, *.avi, ...)mime
- Multimedia file MIME type (cf. MEDIA_* constants)width
- Widthheight
- 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 namename
- Nameurls
- Audio files URLs (*.mp3, *.oga, *.aac, ...)mimes
- Audio files MIME types (cf. MEDIA_* constants)width
- Widthheight
- 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 namename
- Nameurls
- Video files URLs (*.m4v, *.ogv, *.webm, ...)mimes
- Video files MIME types (cf. MEDIA_* constants)width
- Widthheight
- 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 namename
- Namefile
- Flash file (*.swf)vars
- varswidth
- Width in pxheight
- Height in pxallowFullScreen
- 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 idjson
- Chart datawidth
- Width in pxheight
- 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
- Grantname
- 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
- Objectfield
- FieldrowId
- Row IDdocId
- Document IDcdisp
- Content dispositioncache
- 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
- Objectfield
- FieldrowId
- Row IDdocId
- Document IDcdisp
- Content dispositioncache
- 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 rightstype
- Resource typecode
- Resource codeobject
- 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 rightstype
- Resource typecode
- Resource codedeflt
- 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 objecttype
- Resource typecode
- Resource codedeflt
- 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 objecttype
- Resource type (one of Resource.TYPE_*)code
- Resource codedeflt
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 Objectcode
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 Objectcode
- 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 rightsname
- icon name (fas/name, far/name, gly/name, img/set/name)size
- optional 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 rightsname
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 objectcode
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 objectcode
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 objectcode
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 objectcode
- 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 rightscode
- 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 rightscode
- Resource codedeflt
- 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 objectcode
- 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 objectcode
- 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)
- [MDRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : Markdown resource URL (without quotes)
- [PDFRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]] : PDF resource URL (without quotes)
- [RESOURCEURL:<resource code>[:<resource type (defaults to other)>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]] : any other type resource URL (without quotes) -
-
- Parameters:
g
- Grantstr
- String including tokens to substitute- Returns:
- urls
-
getResourceContent
public static byte[] getResourceContent(Grant grant, java.lang.String type, java.lang.String code)
Content of specified disposition resource- Parameters:
grant
- User rightstype
- Resource typecode
- Resource code- Returns:
- resource css content
-
getResourceContent
public static byte[] getResourceContent(ObjectDB obj, java.lang.String type, java.lang.String code)
Content of specified business object resource- Parameters:
obj
- Business objecttype
- Resource typecode
- Resource code- Returns:
- resource css content
-
getResourceContent
public static byte[] getResourceContent(ExternalObject ext, java.lang.String type, java.lang.String code)
Content of specified external object resource- Parameters:
ext
- External objecttype
- Resource typecode
- Resource code- Returns:
- resource css content
-
getResourceCSSContent
public static java.lang.String getResourceCSSContent(Grant grant, java.lang.String code)
Content of specified disposition CSS stylesheet resource- Parameters:
grant
- User rightscode
- Resource code- Returns:
- resource css content
-
getResourceCSSContent
public static java.lang.String getResourceCSSContent(ObjectDB obj, java.lang.String code)
Content of specified business object CSS stylesheet resource- Parameters:
obj
- Business objectcode
- Resource code- Returns:
- resource css content
-
getResourceCSSContent
public static java.lang.String getResourceCSSContent(ExternalObject ext, java.lang.String code)
Content of specified external object CSS stylesheet resource- Parameters:
ext
- External objectcode
- Resource code- Returns:
- resource css content
-
getResourceJSContent
public static java.lang.String getResourceJSContent(Grant grant, java.lang.String code)
Content of specified disposition JavaScript resource- Parameters:
grant
- User rightscode
- Resource code- Returns:
- resource js content
-
getResourceJSContent
public static java.lang.String getResourceJSContent(ObjectDB obj, java.lang.String code)
Content of specified business object JavaScript resource- Parameters:
obj
- Business objectcode
- Resource code- Returns:
- resource js content
-
getResourceJSContent
public static java.lang.String getResourceJSContent(ExternalObject ext, java.lang.String code)
Content of specified external object JavaScript resource- Parameters:
ext
- External objectcode
- Resource code- Returns:
- resource js content
-
getResourceHTMLContent
public static java.lang.String getResourceHTMLContent(Grant grant, java.lang.String code)
Content of specified disposition HTML resource- Parameters:
grant
- User rightscode
- Resource code- Returns:
- resource html content
-
getResourceHTMLContent
public static java.lang.String getResourceHTMLContent(ObjectDB obj, java.lang.String code)
Content of specified business object HTML resource- Parameters:
obj
- Business objectcode
- Resource code- Returns:
- resource html content
-
getResourceHTMLContent
public static java.lang.String getResourceHTMLContent(ExternalObject ext, java.lang.String code)
Content of specified external object HTML resource- Parameters:
ext
- External objectcode
- Resource code- Returns:
- resource html content
-
getResourceMDContent
public static java.lang.String getResourceMDContent(Grant grant, java.lang.String code)
Content of specified disposition markdown resource- Parameters:
grant
- User rightscode
- Resource code- Returns:
- resource markdown content
-
getResourceMDContent
public static java.lang.String getResourceMDContent(ObjectDB obj, java.lang.String code)
Content of specified business object markdown resource- Parameters:
obj
- Business objectcode
- Resource code- Returns:
- resource markdown content
-
getResourceMDContent
public static java.lang.String getResourceMDContent(ExternalObject ext, java.lang.String code)
Content of specified external object markdown resource- Parameters:
ext
- External objectcode
- Resource code- Returns:
- resource markdown content
-
getResourcePDFContent
public static byte[] getResourcePDFContent(Grant grant, java.lang.String code)
Content of specified disposition PDF document resource- Parameters:
grant
- User rightscode
- Resource code- Returns:
- resource pdf content
-
getResourcePDFContent
public static byte[] getResourcePDFContent(ObjectDB obj, java.lang.String code)
Content of specified business object PDF document resource- Parameters:
obj
- Business objectcode
- Resource code- Returns:
- resource pdf content
-
getResourcePDFContent
public static byte[] getResourcePDFContent(ExternalObject ext, java.lang.String code)
Content of specified external object PDF document resource- Parameters:
ext
- External objectcode
- Resource code- Returns:
- resource pdf content
-
getStaticContentURL
public static java.lang.String getStaticContentURL(java.lang.String fileName)
URL for specified static content- Parameters:
fileName
- Static content file name (relative to content dir)- Returns:
- Static content URL
-
getStaticContent
public static java.lang.String getStaticContent(java.lang.String fileName)
Static content- Parameters:
fileName
- Static content file name (relative to content dir)- Returns:
- Static content
-
getPublicErrorURL
@Deprecated public static java.lang.String getPublicErrorURL(java.lang.String code)
Deprecated.Use getErrorURL
-
getErrorURL
@Deprecated public static java.lang.String getErrorURL(java.lang.String code, boolean pub)
Deprecated.Use getErrorURL without pub argument
-
getErrorURL
public static java.lang.String getErrorURL(java.lang.String code)
Base error page URL for specified error code- Parameters:
code
- Error code- Returns:
- Base error URL
-
getPublicErrorURL
@Deprecated public static java.lang.String getPublicErrorURL(java.lang.String code, java.lang.String param)
Deprecated.Use getErrorURL
-
getErrorURL
@Deprecated public static java.lang.String getErrorURL(java.lang.String code, java.lang.String param, boolean pub)
Deprecated.Use getErrorURL without pub argument
-
getErrorURL
public static java.lang.String getErrorURL(java.lang.String code, java.lang.String param)
Base error page URL for specified error code- Parameters:
code
- Error codeparam
- Error parameter- Returns:
- Base error URL
-
getPublicErrorURL
@Deprecated public static java.lang.String getPublicErrorURL(java.lang.Exception e)
Deprecated.Use getErrorURL
-
getErrorURL
@Deprecated public static java.lang.String getErrorURL(java.lang.Exception e, boolean pub)
Deprecated.Use getErrorURL without pub argument
-
getErrorURL
public static java.lang.String getErrorURL(java.lang.Exception e)
Base error page URL for specified exception- Parameters:
e
- Exception- Returns:
- Base Error url
-
message
public static java.lang.String message(char level, java.lang.String msg, Grant g)
Formatted message- Parameters:
level
- On of Message.LEVEL_*msg
- HTML messageg
- Grant- Returns:
- message
-
text
public static java.lang.String text(java.lang.String msg, Grant g)
Formatted text message- Parameters:
msg
- Messageg
- Grant- Returns:
- text message
-
info
public static java.lang.String info(java.lang.String msg, Grant g)
Formatted information message- Parameters:
msg
- Messageg
- Grant- Returns:
- info message
-
warning
public static java.lang.String warning(java.lang.String msg, Grant g)
Formatted warning message- Parameters:
msg
- Messageg
- Grant- Returns:
- warning message
-
error
public static java.lang.String error(java.lang.String msg, Grant g)
Formatted error message- Parameters:
msg
- Messageg
- Grant- Returns:
- error message
-
fatal
public static java.lang.String fatal(java.lang.String msg, Grant g)
Formatted fatal error message- Parameters:
msg
- Messageg
- Grant- Returns:
- fatal message
-
getPublicMainURL
public static java.lang.String getPublicMainURL(java.lang.String params)
Base public main page URL- Parameters:
params
- Optional URL parameters (param1=value1[¶m2=value2...])- Returns:
- Base public main URL
-
getMainURL
public static java.lang.String getMainURL(java.lang.String params)
Base main page URL- Parameters:
params
- Optional URL parameters (param1=value1[¶m2=value2...])- Returns:
- Base main URL
-
getPublicHomeURL
public static java.lang.String getPublicHomeURL()
Base public home page URL- Returns:
- Base public home URL
-
getHomeURL
public static java.lang.String getHomeURL()
Base home URL- Returns:
- Base home URL
-
getHomeURL
public static java.lang.String getHomeURL(java.lang.String params)
Base home URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Home URL
-
getViewURL
public static java.lang.String getViewURL(java.lang.String viewName, java.lang.String params)
Base view URL- Parameters:
viewName
- View nameparams
- Optional URL-encoded parameters- Returns:
- Base view URL
-
getSimpleViewURL
public static java.lang.String getSimpleViewURL(java.lang.String viewName, java.lang.String params)
Base simple view URL- Parameters:
viewName
- View nameparams
- Optional URL-encoded parameters- Returns:
- Base simple view URL
-
getHeaderURL
public static java.lang.String getHeaderURL(java.lang.String params)
Base header URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Header URL
-
getShortcutsURL
public static java.lang.String getShortcutsURL(java.lang.String params)
Base shortcuts URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Shortcuts URL
-
getModuleChooserURL
public static java.lang.String getModuleChooserURL(java.lang.String params)
Base module chooser URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Module chooser URL
-
getSubHeaderURL
public static java.lang.String getSubHeaderURL(java.lang.String params)
Base sub-header URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Sub-header URL
-
getFooterURL
public static java.lang.String getFooterURL(java.lang.String params)
Base footer URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Footer URL
-
getScopesURL
public static java.lang.String getScopesURL(java.lang.String params)
Base scopes page URL- Parameters:
params
- Optional URL-encoded parameters (e.g. "raw=true" for raw logs)- Returns:
- Base scopes URL
-
getMenuURL
public static java.lang.String getMenuURL(java.lang.String params)
Base menu URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Menu URL
-
getExtraURL
public static java.lang.String getExtraURL(java.lang.String params)
Base extra URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Extra URL
-
getExtraPreferencesURL
public static java.lang.String getExtraPreferencesURL(java.lang.String params)
Base extra preferences URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Extra preferences URL
-
getLoginURL
public static java.lang.String getLoginURL()
Base login page URL- Returns:
- Base login URL
-
getLogoutURL
public static java.lang.String getLogoutURL()
Base logout page URL- Returns:
- Base logout URL
-
getChangePasswordURL
public static java.lang.String getChangePasswordURL()
Base change password page URL- Returns:
- Base change password URL
-
getAboutURL
public static java.lang.String getAboutURL()
About page URL- Returns:
- About URL
-
getEditorURL
public static java.lang.String getEditorURL(java.lang.String params)
Base editor page URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Base editor URL
-
getIndexSearchURL
public static java.lang.String getIndexSearchURL(java.lang.String params)
Base index search page URL- Parameters:
params
- Optional URL-encoded parameters- Returns:
- Base index search URL
-
getLogsURL
public static java.lang.String getLogsURL(java.lang.String params)
Base logs page URL- Parameters:
params
- Optional URL-encoded parameters (e.g. "raw=true" for raw logs)- Returns:
- Base logs URL
-
getObjectURL
public 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- Parameters:
type
- TypeobjName
- Object nameobjInstanceName
- Optional object instance nameparams
- Optional other URL-encoded parameters- Returns:
- Base object URL
-
getSearchURL
@Deprecated public static java.lang.String getSearchURL(ObjectDB obj)
Deprecated.Use getSearchURL with extra parameters
-
getSearchURL
public static java.lang.String getSearchURL(ObjectDB obj, java.lang.String params)
Base search page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object search URL
-
getSearchURL
@Deprecated public static java.lang.String getSearchURL(java.lang.String objName, java.lang.String objInstanceName)
Deprecated.Use getSearchURL with extra parameters
-
getSearchURL
public static java.lang.String getSearchURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base search page URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object search URL
-
getListURL
@Deprecated public static java.lang.String getListURL(ObjectDB obj, boolean nav)
Deprecated.Use getListURL with extra parameters
-
getListURL
public static java.lang.String getListURL(ObjectDB obj, java.lang.String params)
Base list page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object list URL
-
getListURL
@Deprecated public static java.lang.String getListURL(java.lang.String objName, java.lang.String objInstanceName, boolean nav)
Deprecated.Use getListURL with extra parameters
-
getListURL
public static java.lang.String getListURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base list page URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object list URL
-
getListURL
public static java.lang.String getListURL(java.lang.String objName, java.lang.String params)
Base list page URL for specified object on responsive UI- Parameters:
objName
- Object nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object list URL
-
getFormURL
@Deprecated public static java.lang.String getFormURL(ObjectDB obj, boolean nav)
Deprecated.Use getFormURL with extra parameters
-
getFormURL
public static java.lang.String getFormURL(ObjectDB obj, java.lang.String params)
Base form page URL for specified object (for current row ID)- Parameters:
obj
- Object with current row IDparams
- Optional extra URL-encoded parameters- Returns:
- Base object form form URL
-
getFormURL
@Deprecated public static java.lang.String getFormURL(ObjectDB obj, java.lang.String rowId, boolean nav)
Deprecated.Use getFormURL with extra parameters
-
getFormURL
public 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- Parameters:
obj
- ObjectrowId
- Row ID (if null current row ID is used)params
- Optional extra URL-encoded parameters- Returns:
- Base object form URL
-
getFormURL
@Deprecated public 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
-
getFormURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namerowId
- Row IDparams
- Optional extra URL-encoded parameters- Returns:
- Base object form URL
-
getFormURL
public 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- Parameters:
objName
- Object namerowId
- Row IDparams
- Optional extra URL-encoded parameters- Returns:
- Base object form URL
-
getTinyFormURL
public static java.lang.String getTinyFormURL(java.lang.String objName, java.lang.String rowId)
Tiny URL to object form- Returns:
- Base object form URL
-
getTinyListURL
public static java.lang.String getTinyListURL(java.lang.String objName)
Tiny URL to object list- Returns:
- Base object list URL
-
getDirectURL
public static java.lang.String getDirectURL(ObjectDB obj, boolean form)
Direct URL to open the object update form- Parameters:
obj
- Objectform
- form or list- Returns:
- Absolute link
-
getDirectURL
@Deprecated public static java.lang.String getDirectURL(java.lang.String obj, java.lang.String rowId)
Deprecated.use getDirectURL with grant
-
getDirectURL
public static java.lang.String getDirectURL(Grant g, java.lang.String obj, java.lang.String rowId)
Direct URL to open the object update form- Parameters:
g
- Grantobj
- Object namerowId
- record row Id or null to access the list- Returns:
- Absolute link
-
getUpdateAllURL
public static java.lang.String getUpdateAllURL(ObjectDB obj)
Base update all form page URL for specified object- Parameters:
obj
- Object- Returns:
- Base update all form URL
-
getUpdateAllURL
public static java.lang.String getUpdateAllURL(java.lang.String objName, java.lang.String objInstanceName)
Base update all form page URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance name- Returns:
- Base update all form URL
-
getMergeURL
public static java.lang.String getMergeURL(ObjectDB obj)
Base merge form page URL for specified object- Parameters:
obj
- Object- Returns:
- Base merge form URL
-
getMergeURL
public static java.lang.String getMergeURL(java.lang.String objName, java.lang.String objInstanceName)
Base merge form page URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance name- Returns:
- Base merge form URL
-
getDocPreviewURL
public static java.lang.String getDocPreviewURL(ObjectDB obj, java.lang.String fieldName)
Document preview page URL for specified object's field- Parameters:
obj
- ObjectfieldName
- Document field name- Returns:
- Object document preview URL
-
getDocPreviewURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namerowId
- Object's row IDfieldName
- Document field name- Returns:
- Object document preview URL
-
getFormPreviewURL
public static java.lang.String getFormPreviewURL(java.lang.String rowId)
Form preview page URL for specified object's row ID- Parameters:
rowId
- Object's row ID- Returns:
- Object form preview URL
-
getPanelURL
public static java.lang.String getPanelURL(ObjectDB obj, java.lang.String params)
Base panel page URL for specified object- Parameters:
obj
- Object with row IDparams
- Optional extra URL-encoded parameters- Returns:
- Base object panel URL
-
getPanelURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namerowId
- Row IDparams
- Optional extra URL-encoded parameters- Returns:
- Base object panel URL
-
getReferenceSelectURL
public static java.lang.String getReferenceSelectURL(ObjectDB obj, java.lang.String params)
Base reference select page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object panel URL
-
getReferenceSelectURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object reference select URL
-
getObjectRefSelectURL
public static java.lang.String getObjectRefSelectURL(ObjectDB obj, java.lang.String params)
Base object reference select page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object reference URL
-
getObjectRefSelectURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object reference select URL
-
getDatamapSelectURL
public static java.lang.String getDatamapSelectURL(ObjectDB obj, java.lang.String params)
Base data mapping select page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object data mapping URL
-
getDatamapSelectURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object data mapping select URL
-
getHelpURL
public static java.lang.String getHelpURL(ObjectDB obj, java.lang.String params)
Base help page URL for specified object- Parameters:
obj
- Objectparams
- Optional extra URL-encoded parameters- Returns:
- Base object help URL
-
getHelpURL
public static java.lang.String getHelpURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base help page URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters- Returns:
- Base object help URL
-
getChartURL
public static java.lang.String getChartURL(java.lang.String objName, java.lang.String objInstanceName, java.lang.String params)
Base chart image URL for specified object- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Optional extra URL-encoded parameters (typically crosstab, graph or timesheet name)- Returns:
- Base chart image URL
-
getCrosstabURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namecrosstabName
- Crosstab name- Returns:
- Base pivot table URL
-
getGraphURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namegraphName
- Graph name- Returns:
- Base chart URL
-
getPrintTemplateURL
public 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)- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameprintTemplateName
- Print template name- Returns:
- Base publication URL
-
getPrintTemplateURL
public 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)- Parameters:
objName
- Object nameobjInstanceName
- Object instance namerowId
- Row IDprintTemplateName
- Print template namemailing
- Mailing mode ?- Returns:
- Base publication URL
-
getAgendaURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameagendaName
- Agenda namedisp
- Disposition (Agenda.DISP_*)useCurrentFilter
- Use current object filters ?- Returns:
- Base agenda URL
-
getAgendaURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameagendaName
- Agenda namedisp
- Disposition (Agenda.DISP_*)params
- Other URL-encoded parameters- Returns:
- Base agenda URL
-
getCalendarURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance namedateField
- Date fieldparams
- Other URL-encoded parameters- Returns:
- Base agenda URL
-
getTimesheetURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nametsName
- Time sheet nameparams
- Other URL-encoded parameters- Returns:
- Base time sheet URL
-
getPlaceMapURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameplacemapName
- Place map nameparams
- Other URL-encoded parameters- Returns:
- Base place map URL
-
getObjectPreferencesURL
public 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- Parameters:
objName
- Object nameobjInstanceName
- Object instance nameparams
- Other URL-encoded parameters- Returns:
- Base object preferences URL
-
getProcessURL
public static java.lang.String getProcessURL(java.lang.String type, java.lang.String pcsName, java.lang.String params)
Base process URL for specified type- Parameters:
type
- TypepcsName
- Processt nameparams
- Optional other URL-encoded parameters- Returns:
- Base process URL
-
getProcessStartURL
public static java.lang.String getProcessStartURL(java.lang.String pcsName)
Base process start page URL for specified process- Parameters:
pcsName
- Process name- Returns:
- Base process start URLurl
-
getExternalObjectURL
public static java.lang.String getExternalObjectURL(java.lang.String extObjName)
Base external object URL for specified external object- Parameters:
extObjName
- External object name- Returns:
- Base external object URL
-
getExternalObjectURL
public static java.lang.String getExternalObjectURL(java.lang.String extObjName, java.lang.String params)
Base external object URL for specified external object with parameters- Parameters:
extObjName
- External object nameparams
- Additional URL parameters (e.g. nav=add&embedded=true)- Returns:
- Base external object URL
-
getPublicExternalObjectURL
public static java.lang.String getPublicExternalObjectURL(java.lang.String extObjName)
Base public external object URL for specified external object- Parameters:
extObjName
- External object name- Returns:
- Base public external object URL
-
getPublicExternalObjectURL
public static java.lang.String getPublicExternalObjectURL(java.lang.String extObjName, java.lang.String params)
Base public external page URL for specified external object with parameters- Parameters:
extObjName
- External object nameparams
- Additional URL parameters (e.g. nav=add&embedded=true)- Returns:
- Base public external object URL
-
getExternalObjectNameFromURL
public static java.lang.String getExternalObjectNameFromURL(java.lang.String url)
Get external object name from URL matching pattern/ext/ [/path][? ] - Parameters:
url
- URL- Returns:
- External object name
-
getImportExportURL
public static java.lang.String getImportExportURL(java.lang.String params)
Base import/export URL- Parameters:
params
- Additional URL parameters- Returns:
- Base import/export URL
-
getTreeviewURL
public static java.lang.String getTreeviewURL(java.lang.String treeviewName, java.lang.String params)
Base treeview URL- Parameters:
treeviewName
- Treeview nameparams
- Additional URL parameters- Returns:
- Base treeview URL
-
getUndoRedoURL
public static java.lang.String getUndoRedoURL(boolean patch, java.lang.String params)
Base undo/redo URL- Parameters:
patch
- Display undo/redo patch gadget?params
- Additional URL parameters- Returns:
- Base undo/redo URL
-
getNewsURL
public static java.lang.String getNewsURL(java.lang.String params)
Base news reader URL- Parameters:
params
- Additional URL parameters- Returns:
- Base news reader URL
-
getPublicNewsURL
public static java.lang.String getPublicNewsURL(java.lang.String params)
Base public news reader URL- Parameters:
params
- Additional URL parameters (e.g. "output=rss" for getting news as raw RSS)- Returns:
- Base public news reader URL
-
getRSSURL
public static java.lang.String getRSSURL(java.lang.String params)
Base news reader URL- Parameters:
params
- Additional URL parameters (e.g. "output=rss" for getting news as raw RSS)- Returns:
- Base news reader URL
-
getMapURL
public static java.lang.String getMapURL(float lat, float lng, int zoom, java.lang.String info)
Map URL- Parameters:
lat
- Latitudelng
- Longitudezoom
- Zoominfo
- Information (can be null)- Returns:
- Map URL
-
getMapURL
public static java.lang.String getMapURL(java.lang.String address, int zoom, java.lang.String info)
Map- Parameters:
address
- Addresszoom
- Zoominfo
- Information (can be null)- Returns:
- Map URL
-
getMapURL
public 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- Parameters:
lat
- Latitudelng
- Longitudezoom
- Zoomwidth
- Widthheight
- Heightaddress
- Address (can be null, if not noull lat and lng not mandatory)info
- Information (can be null)- Returns:
- Map URL
-
getGoogleMapURL
public 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- Parameters:
lat
- Latitudelng
- Longitudezoom
- Zoomwidth
- Widthheight
- Heightaddress
- Address (can be null, if not noull lat and lng not mandatory)info
- Information (can be null)- Returns:
- Google map URL
-
getGoogleCalendarURL
public static java.lang.String getGoogleCalendarURL(int width, int height, java.lang.String id)
Google calendar URL- Parameters:
width
- Widthheight
- Heightid
- Calendar ID- Returns:
- Google calendar URL
-
getMediaURL
public static java.lang.String getMediaURL(java.lang.String media, java.lang.String mime, int width, int height)
Media URL- Parameters:
width
- Widthheight
- Heightmedia
- Mediamime
- MIME type- Returns:
- Media URL
-
getConnectFormURL
public static java.lang.String getConnectFormURL()
Public main page's connect form URL- Returns:
- Connect form URL
-
getProgressBar
public static java.lang.String getProgressBar(Grant g, int prct)
Display a progress bar- Parameters:
g
- User rightsprct
- Percentage- Returns:
- Progress bar image tag
-
getDataURL
public static java.lang.String getDataURL(java.lang.String mime, byte[] data)
Return a data URL- Parameters:
mime
- MIME typedata
- Data- Returns:
- Data URL
-
getImageDataURL
public static java.lang.String getImageDataURL(java.lang.String mime, byte[] data)
Alias to getDataURL
-
getDataURL
public static java.lang.String getDataURL(java.lang.String mime, java.lang.String data)
Return a data URL- Parameters:
mime
- MIME typedata
- Data (encoded in Base 64)- Returns:
- Data URL
-
getImageDataURL
public static java.lang.String getImageDataURL(java.lang.String mime, java.lang.String data)
Alias to getDataURL
-
toSafeHTML
public static java.lang.String toSafeHTML(java.lang.String html)
Remove all script tags from HTML- Parameters:
html
- HTML- Returns:
- Script-safe HTML
-
toSafeHTML
public static java.lang.String toSafeHTML(java.lang.String html, java.lang.String[] tags)
Remove all script and SVG tags from HTML (restricted to body part if any)- Parameters:
html
- HTMLtags
- Optional list of tags to explicitly remove ("script" is set by default)- Returns:
- Script-and SVG safe HTML
-
toPlainText
public static java.lang.String toPlainText(java.lang.String html)
Remove all HTML tags from text- Parameters:
html
- HTML- Returns:
- Plain text
-
toPlainText
public static java.lang.String toPlainText(java.lang.String html, boolean preserveLineBreaks, boolean preserveTabulations)
Remove all HTML tags from text- Parameters:
html
- HTMLpreserveLineBreaks
- Preserve line breakspreserveTabulations
- Preserve tabulations- Returns:
- Plain text
-
toPlainText
public static java.lang.String toPlainText(java.lang.String html, boolean preserveLineBreaks, boolean preserveTabulations, boolean decodeHTMLEntities)
Remove all HTML tags from text- Parameters:
html
- HTMLpreserveLineBreaks
- Preserve line breakspreserveTabulations
- Preserve tabulationsdecodeHTMLEntities
- Decode HTML entities such as >- Returns:
- Plain text
-
toPlainMarkdownText
public static java.lang.String toPlainMarkdownText(java.lang.String html)
Remove all HTML tags from Markdown text- Parameters:
html
- HTML- Returns:
- Plain markdown text
-
getGoogleFontName
public static java.lang.String getGoogleFontName(Grant g)
Get Google font URL- Parameters:
g
- Grant- Returns:
- Google font name
-
getGoogleFontURL
public static java.lang.String getGoogleFontURL(java.lang.String font)
Get Google font URL- Parameters:
font
- Font name- Returns:
- Google font URL
-
getGoogleFontCSS
public static java.lang.String getGoogleFontCSS(java.lang.String font)
Get Google font CSS statement- Parameters:
font
- Font name- Returns:
- CSS statement to apply font
-
JSONArrayToTable
public static java.lang.String JSONArrayToTable(java.lang.String grid)
Convert a JSONArray to table- Parameters:
grid
- 2 dimensions arrays- Returns:
- HTML table.grid if not empty
-
JSONArrayToTable
public static java.lang.String JSONArrayToTable(org.json.JSONArray grid)
Convert a JSONArray to table- Parameters:
grid
- 2 dimensions arrays- Returns:
- HTML table.grid if not empty