public class WidgetUtil extends java.lang.Object implements JcmsConstants
Modifier and Type | Class and Description |
---|---|
static class |
WidgetUtil.TinyMceSpellChecker
RPC Class used by TinyMCE spellchecker
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSS_BUTTON |
static java.lang.String |
CSS_CHECKBOX |
static java.lang.String |
CSS_CHOOSERFIELD |
static java.lang.String |
CSS_CHOOSERLABELFIELD |
static java.lang.String |
CSS_COMBOBOX |
static java.lang.String |
CSS_DESCRIPTION |
static java.lang.String |
CSS_INFO |
static java.lang.String |
CSS_LABEL |
static java.lang.String |
CSS_LABELBOX |
static java.lang.String |
CSS_LISTBOX |
static java.lang.String |
CSS_MAIN_BUTTON |
static java.lang.String |
CSS_MANDATORY |
static java.lang.String |
CSS_RADIOBOX |
static java.lang.String |
CSS_RICHTEXT |
static java.lang.String |
CSS_RICHTEXT_POPUP |
static java.lang.String |
CSS_SELECTBOX |
static java.lang.String |
CSS_TEXTAREA |
static java.lang.String |
CSS_TEXTFIELD |
static java.lang.String |
CSS_UNITS |
static java.lang.String |
CSS_UPLOADFIELD |
static java.lang.String |
CSS_WIKIWYG |
static java.lang.String |
CSS_WIKIWYG_POPUP |
static java.lang.String |
HAS_RICHTEXT
Name of the Boolean attribute added to the request when the
current request contains one or more Rich Text editor.
|
static java.lang.String |
ICON_ACL_CHOOSER |
static java.lang.String |
ICON_ARROW_DOWN |
static java.lang.String |
ICON_ARROW_LEFT |
static java.lang.String |
ICON_ARROW_RIGHT |
static java.lang.String |
ICON_ARROW_UP |
static java.lang.String |
ICON_CATEGORY_CHOOSER |
static java.lang.String |
ICON_CLEAR |
static java.lang.String |
ICON_COLOR_CHOOSER |
static java.lang.String |
ICON_DATE |
static java.lang.String |
ICON_DBRECORD_CHOOSER |
static java.lang.String |
ICON_DOC_CHOOSER |
static java.lang.String |
ICON_DOC_RECHOOSER |
static java.lang.String |
ICON_EDIT |
static java.lang.String |
ICON_FIELD_DOWN |
static java.lang.String |
ICON_FIELD_UP |
static java.lang.String |
ICON_FOLDER |
static java.lang.String |
ICON_GROUP_CHOOSER |
static java.lang.String |
ICON_IMAGE_CHOOSER |
static java.lang.String |
ICON_MEDIA_CHOOSER |
static java.lang.String |
ICON_MEMBER_CHOOSER |
static java.lang.String |
ICON_MULTILANG |
static java.lang.String |
ICON_PLUS |
static java.lang.String |
ICON_PUB_CHOOSER |
static java.lang.String |
ICON_QUERY_CHOOSER |
static java.lang.String |
ICON_TRASH |
static java.lang.String |
ICON_WORKSPACE_CHOOSER |
static java.lang.String |
REVISION |
static java.lang.String |
SPRITE_ACL_CHOOSER |
static java.lang.String |
SPRITE_ADD |
static java.lang.String |
SPRITE_CAT_CHOOSER |
static java.lang.String |
SPRITE_CATEGORY_CHOOSER |
static java.lang.String |
SPRITE_CLEAR |
static java.lang.String |
SPRITE_COLOR_CHOOSER |
static java.lang.String |
SPRITE_DATE |
static java.lang.String |
SPRITE_DOC_CHOOSER |
static java.lang.String |
SPRITE_DOC_EYE |
static java.lang.String |
SPRITE_EYE |
static java.lang.String |
SPRITE_GROUP_CHOOSER |
static java.lang.String |
SPRITE_IMAGE_CHOOSER |
static java.lang.String |
SPRITE_MEDIA_CHOOSER |
static java.lang.String |
SPRITE_MEMBER_CHOOSER |
static java.lang.String |
SPRITE_PUB_CHOOSER |
static java.lang.String |
SPRITE_QUERY_CHOOSER |
static java.lang.String |
SPRITE_REMOVE |
static java.lang.String |
SPRITE_WORKSPACE_CHOOSER |
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
Constructor and Description |
---|
WidgetUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addWikiwygJavaScripts(JcmsJspContext jcmsContext)
Add the required JavaScript files to the current context
|
static void |
addWysiwygJavaScripts(JcmsJspContext jcmsContext)
Add the required JavaScript files to the current context
|
static java.lang.String |
getHtmlHidden(java.lang.String widgetName,
java.lang.String value)
Convenient method that build an input hidden field calling printHiddenField
|
static java.lang.String |
getHtmlIcon(java.lang.String src,
java.lang.String title)
Build an icon
|
static java.lang.String |
getHtmlIcon(java.lang.String src,
java.lang.String title,
java.lang.String alt)
Build an icon
|
static java.lang.String |
getHtmlIcon(java.lang.String src,
java.lang.String title,
java.lang.String id,
java.lang.String style,
java.lang.String onclick)
Build an icon
|
static java.lang.String |
getHtmlIcon(java.lang.String src,
java.lang.String title,
java.lang.String alt,
java.lang.String id,
java.lang.String style,
java.lang.String onclick)
Build an icon
|
static java.lang.String |
getLangTab(java.lang.String widget,
java.lang.String lang)
Return ONE Lang Tab for a given lang with a given widget has content.
|
static java.lang.String |
getPropertyEditor(java.lang.String name)
Returns the editor associated to the given default Property.
|
static java.lang.String |
getShortProperty(java.lang.String key)
Return the value of the property without the editor value
|
static java.lang.String |
getShortProperty(java.lang.String key,
java.lang.String editor)
Return the value of the property without the editor value
|
static java.lang.String |
printConfirmSubmitFormButton(java.lang.String label,
java.lang.String action,
java.lang.String formName,
java.lang.String msg,
java.lang.String userLang)
Display a Button that will ask to confirm the action
|
static java.lang.String |
printConfirmSubmitFormButton(java.lang.String label,
java.lang.String action,
java.lang.String formName,
java.lang.String msg,
java.lang.String userLang,
int tabindex) |
protected static void |
printDataChooser(java.lang.StringBuffer sb,
java.lang.String ctxPath,
java.lang.String formField,
java.lang.String formName,
java.lang.String alt,
int pos,
java.lang.String jsp,
java.lang.String chooserQS,
int width,
int height,
java.lang.String icon) |
static void |
printDataSourceSelect(java.lang.StringBuffer sb,
java.lang.String widgetName,
java.lang.String dataSource,
java.lang.String userLang)
This method write to the buffer a select box of
sql datasource.
|
static void |
printDBRecordChooser(java.lang.StringBuffer sb,
java.lang.String ctxPath,
java.lang.String formField,
java.lang.String formName,
java.lang.String alt,
int pos,
java.lang.String chooserQS)
Print a DBRecord Chooser
|
static void |
printDescription(java.lang.StringBuffer sb,
java.lang.String formDescription)
Print the field Description
|
static void |
printHiddenField(java.lang.StringBuffer sb,
java.lang.String widgetName,
java.lang.String value)
Print Hidden Input
|
static void |
printHiddenField(java.lang.StringBuffer sb,
java.lang.String widgetName,
java.lang.String value,
java.lang.String style,
java.lang.String id)
Print Hidden Input
|
static java.lang.String |
printHtmlButton(java.lang.String widgetName,
java.lang.String value,
boolean submit,
java.lang.String onClick,
boolean isMainAction)
Print an HTML Button
|
static java.lang.String |
printHtmlButton(java.lang.String widgetName,
java.lang.String value,
boolean submit,
java.lang.String onClick,
boolean isMainAction,
int tabindex) |
static void |
printInfo(java.lang.StringBuffer sb,
java.lang.String formInfo)
Print the field Info
|
static void |
printInputBox(java.lang.StringBuffer sb,
java.lang.String inputId,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String fieldLabel,
boolean check,
boolean selected,
boolean disabled,
int tabindex,
java.lang.String customAttributes,
java.lang.String lang)
Print an input Checkbox or Radio button
|
static java.lang.String |
printInputBox(java.lang.String fieldId,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String fieldLabel,
boolean check,
boolean selected,
boolean disabled,
int tabindex,
java.lang.String lang) |
static java.lang.String |
printInputBox(java.lang.String fieldId,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String fieldLabel,
boolean check,
boolean selected,
boolean disabled,
int tabindex,
java.lang.String customAttributes,
java.lang.String lang) |
static void |
printInputBoxList(java.lang.StringBuffer sb,
java.util.Collection<?> fieldIds,
java.lang.String fieldName,
java.util.Collection<?> fieldValue,
java.util.Collection<?> fieldLabel,
boolean check,
java.util.Collection<?> selected,
boolean br,
boolean disabled,
int tabindex,
java.lang.String customAttributes,
java.lang.String lang)
Print an html list of check/radio box
|
static void |
printInputComboBox(java.lang.StringBuffer sb,
java.lang.String fieldId,
java.lang.String fieldName,
java.util.Collection<?> fieldValue,
java.util.Collection<?> fieldLabel,
java.lang.String selected,
boolean blank,
int tabindex,
boolean disabled,
java.lang.String custom,
java.lang.String lang)
Print a ComboBox
|
static void |
printInputListBox(java.lang.StringBuffer sb,
java.lang.String fieldId,
java.lang.String fieldName,
int size,
java.util.Collection<?> fieldValue,
java.util.Collection<?> fieldLabel,
java.util.Collection<?> selected,
boolean disabled,
int tabindex,
java.lang.String customs,
java.lang.String lang)
Print a ListBox
|
static void |
printLabel(java.lang.StringBuffer sb,
java.lang.String formLabel,
java.lang.String inputId)
Print the field Label
|
static void |
printLabel(java.lang.StringBuffer sb,
java.lang.String formLabel,
java.lang.String[] inputId)
Print the field label.
|
static void |
printLangAttributes(java.lang.StringBuffer sb,
java.lang.String lang)
Appends the html language attributes to use for the given language.
|
static void |
printMandatory(java.lang.StringBuffer sb)
Print the Mandatory for a given field
|
protected static void |
printMoveFormElement(java.lang.StringBuffer sb,
java.lang.String jsfunc,
java.lang.String formField,
java.lang.String formName,
java.lang.String action,
java.lang.String icon,
java.lang.String alt,
int pos,
int relFirst,
java.lang.String formFieldId) |
static java.lang.String |
printPopupButton(java.lang.String label,
java.lang.String url) |
static void |
printRichTextZone(java.lang.StringBuffer sb,
java.lang.String fieldName,
java.lang.String fieldValue,
int cols,
int rows,
int tabindex,
int count,
boolean inline,
java.lang.String wysiwygParams,
java.lang.String wysiwygCss,
java.lang.String lang)
Print a Rich Text Area
|
static void |
printSeparator(java.lang.StringBuffer sb,
java.lang.String formField)
Print a HR separator and an Anchor for the field
|
static java.lang.String |
printSubmitButton(java.lang.String label,
java.lang.String action)
Return a Submit HTML Button with a given label/action
|
static java.lang.String |
printSubmitButton(java.lang.String label,
java.lang.String action,
int tabindex) |
static java.lang.String |
printSubmitFormButton(java.lang.String label,
java.lang.String action,
java.lang.String formName,
java.lang.String userLang)
Display a Button that will submit form for a given action
|
static java.lang.String |
printSubmitFormButton(java.lang.String label,
java.lang.String action,
java.lang.String formName,
java.lang.String userLang,
int tabindex) |
static void |
printUnits(java.lang.StringBuffer sb,
java.lang.String formUnit)
Print the units for field
|
static void |
printWikiwyg(java.lang.StringBuffer sb,
java.lang.String fieldName,
java.lang.String fieldValue,
int cols,
int rows,
int tabindex,
int count,
boolean inline,
java.lang.String wysiwygParams,
java.lang.String lang)
Print a Wysiwyg Wiki Text Area
|
public static final java.lang.String REVISION
public static final java.lang.String CSS_BUTTON
public static final java.lang.String CSS_MAIN_BUTTON
public static final java.lang.String CSS_TEXTAREA
public static final java.lang.String CSS_WIKIWYG
public static final java.lang.String CSS_WIKIWYG_POPUP
public static final java.lang.String CSS_RICHTEXT
public static final java.lang.String CSS_RICHTEXT_POPUP
public static final java.lang.String CSS_CHECKBOX
public static final java.lang.String CSS_RADIOBOX
public static final java.lang.String CSS_LABELBOX
public static final java.lang.String CSS_COMBOBOX
public static final java.lang.String CSS_SELECTBOX
public static final java.lang.String CSS_LISTBOX
public static final java.lang.String CSS_TEXTFIELD
public static final java.lang.String CSS_UPLOADFIELD
public static final java.lang.String CSS_CHOOSERFIELD
public static final java.lang.String CSS_CHOOSERLABELFIELD
public static final java.lang.String CSS_UNITS
public static final java.lang.String CSS_MANDATORY
public static final java.lang.String CSS_LABEL
public static final java.lang.String CSS_DESCRIPTION
public static final java.lang.String CSS_INFO
public static final java.lang.String ICON_EDIT
public static final java.lang.String ICON_CLEAR
public static final java.lang.String ICON_PLUS
public static final java.lang.String ICON_FIELD_UP
public static final java.lang.String ICON_FIELD_DOWN
public static final java.lang.String ICON_ARROW_UP
public static final java.lang.String ICON_ARROW_DOWN
public static final java.lang.String ICON_ARROW_LEFT
public static final java.lang.String ICON_ARROW_RIGHT
public static final java.lang.String ICON_TRASH
public static final java.lang.String ICON_DATE
public static final java.lang.String ICON_FOLDER
public static final java.lang.String ICON_IMAGE_CHOOSER
public static final java.lang.String ICON_MEDIA_CHOOSER
public static final java.lang.String ICON_COLOR_CHOOSER
public static final java.lang.String ICON_QUERY_CHOOSER
public static final java.lang.String ICON_MEMBER_CHOOSER
public static final java.lang.String ICON_GROUP_CHOOSER
public static final java.lang.String ICON_WORKSPACE_CHOOSER
public static final java.lang.String ICON_CATEGORY_CHOOSER
public static final java.lang.String ICON_PUB_CHOOSER
public static final java.lang.String ICON_DBRECORD_CHOOSER
public static final java.lang.String ICON_DOC_CHOOSER
public static final java.lang.String ICON_DOC_RECHOOSER
public static final java.lang.String ICON_ACL_CHOOSER
public static final java.lang.String ICON_MULTILANG
public static final java.lang.String SPRITE_CLEAR
public static final java.lang.String SPRITE_REMOVE
public static final java.lang.String SPRITE_ADD
public static final java.lang.String SPRITE_COLOR_CHOOSER
public static final java.lang.String SPRITE_IMAGE_CHOOSER
public static final java.lang.String SPRITE_MEDIA_CHOOSER
public static final java.lang.String SPRITE_DOC_CHOOSER
public static final java.lang.String SPRITE_PUB_CHOOSER
public static final java.lang.String SPRITE_CAT_CHOOSER
public static final java.lang.String SPRITE_EYE
public static final java.lang.String SPRITE_DOC_EYE
public static final java.lang.String SPRITE_DATE
public static final java.lang.String SPRITE_QUERY_CHOOSER
public static final java.lang.String SPRITE_MEMBER_CHOOSER
public static final java.lang.String SPRITE_GROUP_CHOOSER
public static final java.lang.String SPRITE_WORKSPACE_CHOOSER
public static final java.lang.String SPRITE_CATEGORY_CHOOSER
public static final java.lang.String SPRITE_ACL_CHOOSER
public static final java.lang.String HAS_RICHTEXT
public static java.lang.String getHtmlIcon(java.lang.String src, java.lang.String title)
src
- the image sourcetitle
- the image titlepublic static java.lang.String getHtmlIcon(java.lang.String src, java.lang.String title, java.lang.String alt)
src
- the image sourcetitle
- the image titlealt
- the image altpublic static java.lang.String getHtmlIcon(java.lang.String src, java.lang.String title, java.lang.String id, java.lang.String style, java.lang.String onclick)
src
- the image URLtitle
- the image titleid
- the idstyle
- the styleonclick
- the onclick valuepublic static java.lang.String getHtmlIcon(java.lang.String src, java.lang.String title, java.lang.String alt, java.lang.String id, java.lang.String style, java.lang.String onclick)
src
- the image URLtitle
- the image titlealt
- the image altid
- the idstyle
- the styleonclick
- the onclick valuepublic static java.lang.String getHtmlHidden(java.lang.String widgetName, java.lang.String value)
widgetName
- the name of the hidden fieldvalue
- the value of the hidden fieldpublic static java.lang.String getLangTab(java.lang.String widget, java.lang.String lang)
widget
- the widget to putlang
- the lang of the tabpublic static java.lang.String getPropertyEditor(java.lang.String name)
name
- the default property namepublic static java.lang.String getShortProperty(java.lang.String key)
key
- the full extra keypublic static java.lang.String getShortProperty(java.lang.String key, java.lang.String editor)
key
- the full extra keyeditor
- the editorpublic static java.lang.String printHtmlButton(java.lang.String widgetName, java.lang.String value, boolean submit, java.lang.String onClick, boolean isMainAction)
widgetName
- the name of the buttonvalue
- the value of the buttonsubmit
- is a submit buttononClick
- is onClick actionisMainAction
- if true usepublic static java.lang.String printHtmlButton(java.lang.String widgetName, java.lang.String value, boolean submit, java.lang.String onClick, boolean isMainAction, int tabindex)
public static java.lang.String printPopupButton(java.lang.String label, java.lang.String url)
public static java.lang.String printSubmitButton(java.lang.String label, java.lang.String action)
label
- the label of the buttonaction
- the name of the action while submittingpublic static java.lang.String printSubmitButton(java.lang.String label, java.lang.String action, int tabindex)
public static java.lang.String printSubmitFormButton(java.lang.String label, java.lang.String action, java.lang.String formName, java.lang.String userLang)
label
- the label of the buttonaction
- the name of the action while submittingformName
- the name of the formuserLang
- the current userLangpublic static java.lang.String printSubmitFormButton(java.lang.String label, java.lang.String action, java.lang.String formName, java.lang.String userLang, int tabindex)
public static java.lang.String printConfirmSubmitFormButton(java.lang.String label, java.lang.String action, java.lang.String formName, java.lang.String msg, java.lang.String userLang)
label
- the label of the buttonaction
- the name of the action while submittingformName
- the name of the formmsg
- an I18N confirm messageuserLang
- the current userLangpublic static java.lang.String printConfirmSubmitFormButton(java.lang.String label, java.lang.String action, java.lang.String formName, java.lang.String msg, java.lang.String userLang, int tabindex)
public static void printHiddenField(java.lang.StringBuffer sb, java.lang.String widgetName, java.lang.String value, java.lang.String style, java.lang.String id)
sb
- the BufferwidgetName
- the widget namevalue
- the valuestyle
- id
- public static void printHiddenField(java.lang.StringBuffer sb, java.lang.String widgetName, java.lang.String value)
sb
- the BufferwidgetName
- the widget namevalue
- the valuepublic static void printRichTextZone(java.lang.StringBuffer sb, java.lang.String fieldName, java.lang.String fieldValue, int cols, int rows, int tabindex, int count, boolean inline, java.lang.String wysiwygParams, java.lang.String wysiwygCss, java.lang.String lang)
sb
- the BufferfieldName
- the name of the widgetfieldValue
- the value of the widgetcols
- the "TextArea" like colsrows
- the "TextArea" like rowstabindex
- the tab indexcount
- for multivalued fields, this is the index of the textareainline
- set to false to use a popup edition (instead of the inline editor,
a preview/source zone is displayed with a edit button which opens a popup)wysiwygParams
- the wysiwyg parameterswysiwygCss
- WYSIWYG css to use instead of the expected "formRichText" or "formRichTextPopup". Used to trigger a custom configuration of TinyMCE editorlang
- the language (ISO-639) of this rich text zone or null for default site language.public static void printWikiwyg(java.lang.StringBuffer sb, java.lang.String fieldName, java.lang.String fieldValue, int cols, int rows, int tabindex, int count, boolean inline, java.lang.String wysiwygParams, java.lang.String lang)
sb
- the BufferfieldName
- the name of the widgetfieldValue
- the value of the widgetcols
- the "TextArea" like colsrows
- the "TextArea" like rowstabindex
- the tab indexcount
- for multivalued fields, this is the index of the textareainline
- set to false to use a popup edition (instead of the inline editor,
a preview/source zone is displayed with a edit button which opens a popup)wysiwygParams
- the wysiwyg parameterslang
- the language (ISO-639) of this rich text zone or null for default site language.public static void addWikiwygJavaScripts(JcmsJspContext jcmsContext)
jcmsContext
- public static void addWysiwygJavaScripts(JcmsJspContext jcmsContext)
jcmsContext
- public static void printInputBox(java.lang.StringBuffer sb, java.lang.String inputId, java.lang.String fieldName, java.lang.String fieldValue, java.lang.String fieldLabel, boolean check, boolean selected, boolean disabled, int tabindex, java.lang.String customAttributes, java.lang.String lang)
sb
- the bufferinputId
- fieldName
- the name of the widgetfieldValue
- the value of the widgetfieldLabel
- the label of the widgetcheck
- checkbox or radio button ?selected
- selected or not ?disabled
- true to disabled the input boxtabindex
- customAttributes
- the custom attributes to add to each inputlang
- the language (ISO-639) of this text area or null for default site language.public static java.lang.String printInputBox(java.lang.String fieldId, java.lang.String fieldName, java.lang.String fieldValue, java.lang.String fieldLabel, boolean check, boolean selected, boolean disabled, int tabindex, java.lang.String lang)
public static java.lang.String printInputBox(java.lang.String fieldId, java.lang.String fieldName, java.lang.String fieldValue, java.lang.String fieldLabel, boolean check, boolean selected, boolean disabled, int tabindex, java.lang.String customAttributes, java.lang.String lang)
public static void printInputBoxList(java.lang.StringBuffer sb, java.util.Collection<?> fieldIds, java.lang.String fieldName, java.util.Collection<?> fieldValue, java.util.Collection<?> fieldLabel, boolean check, java.util.Collection<?> selected, boolean br, boolean disabled, int tabindex, java.lang.String customAttributes, java.lang.String lang)
sb
- the bufferfieldIds
- the DOM ids item : must be null or contains as many elements as fieldValue and fieldLabelfieldName
- the name of the widgetfieldValue
- the values of the widgetfieldLabel
- the labels of the widgetcheck
- checkbox or radio button ?selected
- a Set of selected valuesbr
- should append brdisabled
- true to disabled the inputstabindex
- customAttributes
- the custom attributes to add to each inputlang
- the language (ISO-639) of this text area or null for default site language.public static void printInputComboBox(java.lang.StringBuffer sb, java.lang.String fieldId, java.lang.String fieldName, java.util.Collection<?> fieldValue, java.util.Collection<?> fieldLabel, java.lang.String selected, boolean blank, int tabindex, boolean disabled, java.lang.String custom, java.lang.String lang)
sb
- the bufferfieldId
- the id of the fieldfieldName
- the name of the widgetfieldValue
- the values of the widgetfieldLabel
- the labels of the widgetselected
- the selected Stringblank
- disabled
- true to disable the combo boxtabindex
- custom
- custom html attribute to be added inside the select taglang
- the language (ISO-639) of this text area or null for default site language.public static void printInputListBox(java.lang.StringBuffer sb, java.lang.String fieldId, java.lang.String fieldName, int size, java.util.Collection<?> fieldValue, java.util.Collection<?> fieldLabel, java.util.Collection<?> selected, boolean disabled, int tabindex, java.lang.String customs, java.lang.String lang)
sb
- the bufferfieldId
- the id of the fieldfieldName
- the name of the widgetsize
- size of the selectfieldValue
- the values of the widgetfieldLabel
- the labels of the widgetselected
- the selected Stringdisabled
- true to disabled the input listboxtabindex
- customs
- custom html attribute to be added inside the select taglang
- the language (ISO-639) of this text area or null for default site language.public static void printDBRecordChooser(java.lang.StringBuffer sb, java.lang.String ctxPath, java.lang.String formField, java.lang.String formName, java.lang.String alt, int pos, java.lang.String chooserQS)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the form namealt
- the icon altpos
- the relative widget positionchooserQS
- queryString for the chooserpublic static void printDataSourceSelect(java.lang.StringBuffer sb, java.lang.String widgetName, java.lang.String dataSource, java.lang.String userLang)
sb
- the BufferwidgetName
- the widget namedataSource
- the selected datasourceuserLang
- the userlangpublic static void printLangAttributes(java.lang.StringBuffer sb, java.lang.String lang)
sb
- the StringBuffer in which to append the class namelang
- the language of the class to generated or null to use default jcms languageChannel.isUsingAdvancedI18N()
public static void printUnits(java.lang.StringBuffer sb, java.lang.String formUnit)
sb
- the BufferformUnit
- public static void printMandatory(java.lang.StringBuffer sb)
sb
- the Bufferpublic static void printLabel(java.lang.StringBuffer sb, java.lang.String formLabel, java.lang.String inputId)
sb
- the BufferformLabel
- inputId
- if not null, the given label is linked to the input with DOM idpublic static void printLabel(java.lang.StringBuffer sb, java.lang.String formLabel, java.lang.String[] inputId)
sb
- formLabel
- inputId
- array of ids of the input. Used in a "for" attribute.public static void printDescription(java.lang.StringBuffer sb, java.lang.String formDescription)
sb
- the BufferformDescription
- public static void printInfo(java.lang.StringBuffer sb, java.lang.String formInfo)
sb
- the BufferformInfo
- public static void printSeparator(java.lang.StringBuffer sb, java.lang.String formField)
sb
- the BufferformField
- nameprotected static void printMoveFormElement(java.lang.StringBuffer sb, java.lang.String jsfunc, java.lang.String formField, java.lang.String formName, java.lang.String action, java.lang.String icon, java.lang.String alt, int pos, int relFirst, java.lang.String formFieldId)
protected static void printDataChooser(java.lang.StringBuffer sb, java.lang.String ctxPath, java.lang.String formField, java.lang.String formName, java.lang.String alt, int pos, java.lang.String jsp, java.lang.String chooserQS, int width, int height, java.lang.String icon)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.