|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.widget.WidgetUtil
public class WidgetUtil
Nested Class Summary | |
---|---|
static class |
WidgetUtil.TinyMceSpellChecker
RPC Class used by TinyMCE spellchecker |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
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 Summary | |
---|---|
WidgetUtil()
|
Method Summary | |
---|---|
static void |
addWysiwygJavaScripts(JcmsJspContext jcmsContext)
Add the required JavaScript files to the current context |
static String |
getDateChooserJSlang(String userLang)
Return the language that can be used for the javascript file to be included for the date chooser. |
static String |
getHtmlHidden(String widgetName,
String value)
Convenient method that build an input hidden field calling printHiddenField |
static String |
getHtmlIcon(String src,
String title)
Build an icon |
static String |
getHtmlIcon(String src,
String title,
String alt)
Build an icon |
static String |
getHtmlIcon(String src,
String title,
String id,
String style,
String onclick)
Build an icon |
static String |
getHtmlIcon(String src,
String title,
String alt,
String id,
String style,
String onclick)
Build an icon |
static String |
getLangTab(String widget,
String lang)
Return ONE Lang Tab for a given lang with a given widget has content. |
static String |
getPropertyEditor(String name)
Returns the editor associated to the given default Property. |
static String |
getShortProperty(String key)
Return the value of the property without the editor value |
static String |
getShortProperty(String key,
String editor)
Return the value of the property without the editor value |
static void |
print2ClearIconField(StringBuffer sb,
String formField,
String formName,
String def,
String userLang,
int pos)
Print Red Cross to clear a 2 Field in a Form |
static void |
print2InputField(StringBuffer sb,
String fieldId,
String fieldName,
String fieldLabel,
String fieldValue,
int cols,
int tabindex,
boolean disabled,
String lang,
boolean showIDField)
Print 2 Input Fields for chooser |
static void |
printAddCountIcon(StringBuffer sb,
String formField,
String formFieldGroup,
String formName,
String userLang,
int addCount,
int langCount,
String widgetId)
Print the plus icon to add more fields to a field list |
static void |
printCategoryChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Category Chooser |
static void |
printClearIconField(StringBuffer sb,
String formField,
String formName,
String def,
String userLang,
int pos)
Print Red Cross to clear a Field in a Form |
static void |
printClearIconField(StringBuffer sb,
String formField,
String formName,
String def,
String userLang,
int pos,
String func)
Print Red Cross to clear a Field in a Form |
static void |
printColorChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String userLang,
int pos)
Print ColorChooser icon |
static String |
printConfirmSubmitFormButton(String label,
String action,
String formName,
String msg,
String userLang)
Display a Button that will ask to confirm the action |
static String |
printConfirmSubmitFormButton(String label,
String action,
String formName,
String msg,
String userLang,
int tabindex)
|
protected static void |
printDataChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String jsp,
String chooserQS,
int width,
int height,
String icon)
|
static void |
printDataSourceSelect(StringBuffer sb,
String widgetName,
String dataSource,
String userLang)
This method write to the buffer a select box of sql datasource. |
static void |
printDateChooser(StringBuffer sb,
boolean inPopup,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
boolean showTime,
boolean showWeekNumbers)
Print the Date Chooser Icon |
static void |
printDBRecordChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a DBRecord Chooser |
static void |
printDescription(StringBuffer sb,
String formDescription)
Print the field Description |
static void |
printDocChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String msgLang,
int pos,
int nbElt,
FileDocument doc)
Print the Doc Chooser icon |
static void |
printDown2IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printDown3IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printDownIconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
String widgetId)
Print Arrow Down Icon to move fields |
static void |
printFileChooser(StringBuffer sb,
String ctxPath,
String path,
String formField,
String formName,
String userLang,
int pos)
Print Folder icon linked to old filechooser |
static void |
printGroupChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Group Chooser |
static void |
printHelpIconField(StringBuffer sb,
String alt)
Print Help Icon to display help about the field |
static void |
printHiddenField(StringBuffer sb,
String widgetName,
String value)
Print Hidden Input |
static void |
printHiddenField(StringBuffer sb,
String widgetName,
String value,
String style,
String id)
Print Hidden Input |
static String |
printHtmlButton(String widgetName,
String value,
boolean submit,
String onClick,
boolean isMainAction)
Print an HTML Button |
static String |
printHtmlButton(String widgetName,
String value,
boolean submit,
String onClick,
boolean isMainAction,
int tabindex)
|
static void |
printImageChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String userLang,
int pos,
boolean pub)
Print the folder icon linked to the image chooser. |
static String |
printImageChooser(String ctxPath,
String formField,
String formName,
String alt,
int pos,
boolean pub)
Print Folder icon linked to image chooser |
static String |
printImageMapToolbar(String formName,
String widgetName,
int widgetPos,
JcmsContext ctx)
|
static void |
printInfo(StringBuffer sb,
String formInfo)
Print the field Info |
static void |
printInputBox(StringBuffer sb,
String inputId,
String fieldName,
String fieldValue,
String fieldLabel,
boolean check,
boolean selected,
boolean disabled,
int tabindex,
String lang)
Print an input Checkbox or Radio button |
static String |
printInputBox(String fieldId,
String fieldName,
String fieldValue,
String fieldLabel,
boolean check,
boolean selected,
boolean disabled,
int tabindex,
String lang)
|
static void |
printInputBoxList(StringBuffer sb,
Collection<?> fieldIds,
String fieldName,
Collection<?> fieldValue,
Collection<?> fieldLabel,
boolean check,
Collection<?> selected,
boolean br,
boolean disabled,
int tabindex,
String lang)
Print an html list of check/radio box |
static void |
printInputComboBox(StringBuffer sb,
String fieldId,
String fieldName,
Collection<?> fieldValue,
Collection<?> fieldLabel,
String selected,
boolean blank,
int tabindex,
boolean disabled,
String custom,
String lang)
Print a ComboBox |
static void |
printInputField(StringBuffer sb,
String fieldId,
String fieldName,
String fieldValue,
int cols,
boolean disabled,
String lang)
A Convenient method to print a TextField |
static void |
printInputField(StringBuffer sb,
String fieldId,
String fieldName,
String fieldValue,
int cols,
int colsMax,
int tabindex,
boolean disabled,
String custom,
String lang)
A Convenient method to print a TextField |
protected static void |
printInputField(StringBuffer sb,
String fieldType,
String fieldId,
String fieldName,
String fieldValue,
int cols,
int colsMax,
int tabindex,
boolean disabled,
String css,
String customs,
String lang)
Print a Text Input |
static void |
printInputListBox(StringBuffer sb,
String fieldId,
String fieldName,
int size,
Collection<?> fieldValue,
Collection<?> fieldLabel,
Collection<?> selected,
boolean disabled,
int tabindex,
String customs,
String lang)
Print a ListBox |
static void |
printLabel(StringBuffer sb,
String formLabel,
String inputId)
Print the field Label |
static void |
printLabel(StringBuffer sb,
String formLabel,
String[] inputId)
Print the field label. |
static void |
printLangAttributes(StringBuffer sb,
String lang)
Appends the html language attributes to use for the given language. |
static void |
printLeft2IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printLeft3IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printLeftIconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
String widgetId)
Print Arrow Left Icon to move fields |
static void |
printMandatory(StringBuffer sb)
Print the Mandatory for a given field |
static void |
printMediaChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String userLang,
int pos,
boolean pub)
Print the icon linked to the media chooser. |
static String |
printMediaChooser(String ctxPath,
String formField,
String formName,
String alt,
int pos,
boolean pub)
Print icon linked to old media chooser |
static void |
printMemberChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Member Chooser |
protected static void |
printMoveFormElement(StringBuffer sb,
String jsfunc,
String formField,
String formName,
String action,
String icon,
String alt,
int pos,
int relFirst,
String formFieldId)
|
static void |
printPasswordField(StringBuffer sb,
String fieldId,
String fieldName,
String fieldValue,
int cols,
int colsMax,
int tabindex,
boolean disabled,
String customs,
String lang)
A Convenient method to print a PasswordField |
static String |
printPopupButton(String label,
String url)
|
static void |
printPubChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Pub Chooser |
static void |
printPubsChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Pubs Chooser |
static void |
printQueryChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos)
Print Query icon linked to querychooser |
static void |
printRichTextZone(StringBuffer sb,
String fieldName,
String fieldValue,
int cols,
int rows,
int tabindex,
int count,
boolean inline,
String wysiwygParams,
String lang)
Print a Rich Text Area |
static void |
printRight2IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printRight3IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printRightIconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
String widgetId)
Print Arrow Right Icon to move fields |
static void |
printSeparator(StringBuffer sb,
String formField)
Print a HR separator and an Anchor for the field |
static String |
printSubmitButton(String label,
String action)
Return a Submit HTML Button with a given label/action |
static String |
printSubmitButton(String label,
String action,
int tabindex)
|
static String |
printSubmitFormButton(String label,
String action,
String formName,
String userLang)
Display a Button that will submit form for a given action |
static String |
printSubmitFormButton(String label,
String action,
String formName,
String userLang,
int tabindex)
|
static void |
printTextArea(StringBuffer sb,
String fieldId,
String fieldName,
String fieldValue,
int cols,
int rows,
int tabindex,
boolean escapeEntities,
boolean disabled,
String customs,
String lang)
Print a Text Area |
static void |
printTrash2IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printTrash3IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printTrashIconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
String widgetId)
Print Trash Icon to move fields |
static void |
printUnits(StringBuffer sb,
String formUnit)
Print the units for field |
static void |
printUp2IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printUp3IconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
int relFirst,
String widgetId)
|
static void |
printUpIconField(StringBuffer sb,
String formField,
String formName,
String userLang,
int pos,
String widgetId)
Print Arrow Up Icon to move fields |
static String |
printWikiToolbar(String formName,
int widgetPos,
JcmsContext ctx,
String flag)
|
static void |
printWorkspaceChooser(StringBuffer sb,
String ctxPath,
String formField,
String formName,
String alt,
int pos,
String chooserQS)
Print a Workspace Chooser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String CSS_BUTTON
public static final String CSS_MAIN_BUTTON
public static final String CSS_TEXTAREA
public static final String CSS_RICHTEXT
public static final String CSS_RICHTEXT_POPUP
public static final String CSS_CHECKBOX
public static final String CSS_RADIOBOX
public static final String CSS_LABELBOX
public static final String CSS_COMBOBOX
public static final String CSS_LISTBOX
public static final String CSS_TEXTFIELD
public static final String CSS_CHOOSERFIELD
public static final String CSS_CHOOSERLABELFIELD
public static final String CSS_UNITS
public static final String CSS_MANDATORY
public static final String CSS_LABEL
public static final String CSS_DESCRIPTION
public static final String CSS_INFO
public static final String ICON_CLEAR
public static final String ICON_PLUS
public static final String ICON_ARROW_UP
public static final String ICON_ARROW_DOWN
public static final String ICON_ARROW_LEFT
public static final String ICON_ARROW_RIGHT
public static final String ICON_TRASH
public static final String ICON_DATE
public static final String ICON_FOLDER
public static final String ICON_IMAGE_CHOOSER
public static final String ICON_MEDIA_CHOOSER
public static final String ICON_COLOR_CHOOSER
public static final String ICON_QUERY_CHOOSER
public static final String ICON_MEMBER_CHOOSER
public static final String ICON_GROUP_CHOOSER
public static final String ICON_WORKSPACE_CHOOSER
public static final String ICON_CATEGORY_CHOOSER
public static final String ICON_PUB_CHOOSER
public static final String ICON_DBRECORD_CHOOSER
public static final String ICON_DOC_CHOOSER
public static final String HAS_RICHTEXT
Constructor Detail |
---|
public WidgetUtil()
Method Detail |
---|
public static String getHtmlIcon(String src, String title)
src
- the image sourcetitle
- the image title
public static String getHtmlIcon(String src, String title, String alt)
src
- the image sourcetitle
- the image titlealt
- the image alt
public static String getHtmlIcon(String src, String title, String id, String style, String onclick)
src
- the image URLtitle
- the image titleid
- the idstyle
- the styleonclick
- the onclick value
public static String getHtmlIcon(String src, String title, String alt, String id, String style, String onclick)
src
- the image URLtitle
- the image titlealt
- the image altid
- the idstyle
- the styleonclick
- the onclick value
public static String getHtmlHidden(String widgetName, String value)
widgetName
- the name of the hidden fieldvalue
- the value of the hidden field
public static String getLangTab(String widget, String lang)
widget
- the widget to putlang
- the lang of the tab
public static String getPropertyEditor(String name)
name
- the default property name
public static String getShortProperty(String key)
key
- the full extra key
public static String getShortProperty(String key, String editor)
key
- the full extra keyeditor
- the editor
public static String printHtmlButton(String widgetName, String value, boolean submit, String onClick, boolean isMainAction)
widgetName
- the name of the buttonvalue
- the value of the buttonsubmit
- is a submit buttononClick
- is onClick actionisMainAction
- if true use
public static String printHtmlButton(String widgetName, String value, boolean submit, String onClick, boolean isMainAction, int tabindex)
public static String printPopupButton(String label, String url)
public static String printSubmitButton(String label, String action)
label
- the label of the buttonaction
- the name of the action while submitting
public static String printSubmitButton(String label, String action, int tabindex)
public static String printSubmitFormButton(String label, String action, String formName, String userLang)
label
- the label of the buttonaction
- the name of the action while submittingformName
- the name of the formuserLang
- the current userLang
public static String printSubmitFormButton(String label, String action, String formName, String userLang, int tabindex)
public static String printConfirmSubmitFormButton(String label, String action, String formName, String msg, 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 userLang
public static String printConfirmSubmitFormButton(String label, String action, String formName, String msg, String userLang, int tabindex)
public static void printHiddenField(StringBuffer sb, String widgetName, String value, String style, String id)
sb
- the BufferwidgetName
- the widget namevalue
- the valuestyle
- id
- public static void printHiddenField(StringBuffer sb, String widgetName, String value)
sb
- the BufferwidgetName
- the widget namevalue
- the valuepublic static void printTextArea(StringBuffer sb, String fieldId, String fieldName, String fieldValue, int cols, int rows, int tabindex, boolean escapeEntities, boolean disabled, String customs, String lang)
sb
- the BufferfieldId
- the id of the fieldfieldName
- the name of the widgetfieldValue
- the value of the widgetcols
- the length of the fieldrows
- the height of the fieldtabindex
- the tab indexdisabled
- tell if the field must be disabledescapeEntities
- should entities be escapedcustoms
- custom attributeslang
- the language (ISO-639) of this text area or null for default site language.public static void printRichTextZone(StringBuffer sb, String fieldName, String fieldValue, int cols, int rows, int tabindex, int count, boolean inline, String wysiwygParams, 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 addWysiwygJavaScripts(JcmsJspContext jcmsContext)
jcmsContext
- public static void printInputBox(StringBuffer sb, String inputId, String fieldName, String fieldValue, String fieldLabel, boolean check, boolean selected, boolean disabled, int tabindex, 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
- lang
- the language (ISO-639) of this text area or null for default site language.public static String printInputBox(String fieldId, String fieldName, String fieldValue, String fieldLabel, boolean check, boolean selected, boolean disabled, int tabindex, String lang)
public static void printInputBoxList(StringBuffer sb, Collection<?> fieldIds, String fieldName, Collection<?> fieldValue, Collection<?> fieldLabel, boolean check, Collection<?> selected, boolean br, boolean disabled, int tabindex, 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
- lang
- the language (ISO-639) of this text area or null for default site language.public static void printInputComboBox(StringBuffer sb, String fieldId, String fieldName, Collection<?> fieldValue, Collection<?> fieldLabel, String selected, boolean blank, int tabindex, boolean disabled, String custom, 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(StringBuffer sb, String fieldId, String fieldName, int size, Collection<?> fieldValue, Collection<?> fieldLabel, Collection<?> selected, boolean disabled, int tabindex, String customs, 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.protected static void printInputField(StringBuffer sb, String fieldType, String fieldId, String fieldName, String fieldValue, int cols, int colsMax, int tabindex, boolean disabled, String css, String customs, String lang)
sb
- the BufferfieldType
- the type of fieldfieldId
- the DOM id of the inputfieldName
- the name of the widgetfieldValue
- the value of the widgetcols
- the length of the fieldcolsMax
- the max chars in the fieldtabindex
- the tab indexcss
- the css style of the inputcustoms
- some custom data to add at the end of the taglang
- the language (ISO-639) of this text area or null for default site language.public static void printInputField(StringBuffer sb, String fieldId, String fieldName, String fieldValue, int cols, int colsMax, int tabindex, boolean disabled, String custom, String lang)
sb
- the BufferfieldId
- the id of the fieldfieldName
- the name of the fieldfieldValue
- the value of te fieldcols
- the number of colscolsMax
- the max colstabindex
- the tab indexdisabled
- true to disable the inputcustom
- some custom data to add at the end of the taglang
- the language (ISO-639) of this text area or null for default site language.public static void printInputField(StringBuffer sb, String fieldId, String fieldName, String fieldValue, int cols, boolean disabled, String lang)
sb
- the BufferfieldId
- the id of the fieldfieldName
- the name of the fieldfieldValue
- the value of te fieldcols
- the number of colsdisabled
- true to disable the inputlang
- the language (ISO-639) of this text area or null for default site language.public static void printPasswordField(StringBuffer sb, String fieldId, String fieldName, String fieldValue, int cols, int colsMax, int tabindex, boolean disabled, String customs, String lang)
sb
- the BufferfieldId
- the id of the fieldfieldName
- the name of the fieldfieldValue
- the value of te fieldcols
- the number of colscolsMax
- the max colstabindex
- the tab indexdisabled
- customs
- some custom data to add at the end of the taglang
- the language (ISO-639) of this text area or null for default site language.public static void print2InputField(StringBuffer sb, String fieldId, String fieldName, String fieldLabel, String fieldValue, int cols, int tabindex, boolean disabled, String lang, boolean showIDField)
sb
- the BufferfieldId
- the id of the fieldfieldName
- the field namefieldLabel
- the field labels (disable)fieldValue
- the field valuescols
- tabindex
- the tab indexdisabled
- true to disable the inputlang
- the language (ISO-639) of this text area or null for default site language.showIDField
- whether to use a text input (true), or an hidden input (false) for the second field.public static void printClearIconField(StringBuffer sb, String formField, String formName, String def, String userLang, int pos)
sb
- the BufferformField
- the field nameformName
- the icon titledef
- the default clear valueuserLang
- the user languagepos
- the relative widget positionpublic static void printClearIconField(StringBuffer sb, String formField, String formName, String def, String userLang, int pos, String func)
sb
- the BufferformField
- the field nameformName
- the icon titledef
- the default clear valueuserLang
- the user languagepos
- the relative widget positionfunc
- the function to run afterpublic static void print2ClearIconField(StringBuffer sb, String formField, String formName, String def, String userLang, int pos)
sb
- the BufferformField
- the field nameformName
- the icon titledef
- the default clear valueuserLang
- the user languagepos
- the relative widget positionpublic static void printAddCountIcon(StringBuffer sb, String formField, String formFieldGroup, String formName, String userLang, int addCount, int langCount, String widgetId)
sb
- the bufferformField
- the field nameformFieldGroup
- the field groupformName
- the form NameuserLang
- the user languageaddCount
- the number of fields to addlangCount
- the number of lang countwidgetId
- the widgetId idpublic static void printTrashIconField(StringBuffer sb, String formField, String formName, String userLang, int pos, String widgetId)
sb
- the BufferformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionwidgetId
- public static void printTrash2IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printTrash3IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printUpIconField(StringBuffer sb, String formField, String formName, String userLang, int pos, String widgetId)
sb
- the BufferformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionwidgetId
- public static void printUp2IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printUp3IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printDownIconField(StringBuffer sb, String formField, String formName, String userLang, int pos, String widgetId)
sb
- the BufferformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionwidgetId
- public static void printDown2IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printDown3IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printLeftIconField(StringBuffer sb, String formField, String formName, String userLang, int pos, String widgetId)
sb
- the BufferformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionwidgetId
- public static void printLeft2IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printLeft3IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printRightIconField(StringBuffer sb, String formField, String formName, String userLang, int pos, String widgetId)
sb
- the BufferformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionwidgetId
- public static void printRight2IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static void printRight3IconField(StringBuffer sb, String formField, String formName, String userLang, int pos, int relFirst, String widgetId)
public static String getDateChooserJSlang(String userLang)
userLang
- user lang
public static void printDateChooser(StringBuffer sb, boolean inPopup, String ctxPath, String formField, String formName, String alt, int pos, boolean showTime, boolean showWeekNumbers)
sb
- the bufferinPopup
- ctxPath
- the context pathformField
- the field nameformName
- the form namealt
- the descriptionpos
- the relative positionshowTime
- whether to show time or not in calendarshowWeekNumbers
- whether to show time or not in calendar
*Not Implemented yet* //FIXMEpublic static void printFileChooser(StringBuffer sb, String ctxPath, String path, String formField, String formName, String userLang, int pos)
sb
- the BufferctxPath
- the context pathpath
- formField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionpublic static void printImageChooser(StringBuffer sb, String ctxPath, String formField, String formName, String userLang, int pos, boolean pub)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionpub
- public static String printImageChooser(String ctxPath, String formField, String formName, String alt, int pos, boolean pub)
ctxPath
- the context pathformField
- the field nameformName
- the icon titlealt
- the icon altpos
- the relative widget positionpub
-
public static void printMediaChooser(StringBuffer sb, String ctxPath, String formField, String formName, String userLang, int pos, boolean pub)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the icon titleuserLang
- the user languagepos
- the relative widget positionpub
- public static String printMediaChooser(String ctxPath, String formField, String formName, String alt, int pos, boolean pub)
ctxPath
- the context pathformField
- the field nameformName
- the icon titlealt
- the icon altpos
- the relative widget positionpub
-
public static void printColorChooser(StringBuffer sb, String ctxPath, String formField, String formName, String userLang, int pos)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the icon titleuserLang
- the userLangpos
- the relative widget positionpublic static void printQueryChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the icon titlealt
- the icon altpos
- the relative widget positionpublic static void printMemberChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printGroupChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printWorkspaceChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printCategoryChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printPubChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printPubsChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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 printDBRecordChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, 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(StringBuffer sb, String widgetName, String dataSource, String userLang)
sb
- the BufferwidgetName
- the widget namedataSource
- the selected datasourceuserLang
- the userlangpublic static void printDocChooser(StringBuffer sb, String ctxPath, String formField, String formName, String msgLang, int pos, int nbElt, FileDocument doc)
sb
- the BufferctxPath
- the context pathformField
- the field nameformName
- the form namemsgLang
- the userLangpos
- the relative positionnbElt
- the number of element to displaydoc
- the documentpublic static void printHelpIconField(StringBuffer sb, String alt)
sb
- the Bufferalt
- the icon titlepublic static String printWikiToolbar(String formName, int widgetPos, JcmsContext ctx, String flag)
formName
- the form namewidgetPos
- the formElementCountctx
- the JcmsContextflag
-
public static String printImageMapToolbar(String formName, String widgetName, int widgetPos, JcmsContext ctx)
formName
- the form namewidgetName
- the widget namewidgetPos
- the formElementCountctx
- the JcmsContext
public static void printLangAttributes(StringBuffer sb, 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(StringBuffer sb, String formUnit)
sb
- the BufferformUnit
- public static void printMandatory(StringBuffer sb)
sb
- the Bufferpublic static void printLabel(StringBuffer sb, String formLabel, String inputId)
sb
- the BufferformLabel
- inputId
- if not null, the given label is linked to the input with DOM idpublic static void printLabel(StringBuffer sb, String formLabel, String[] inputId)
sb
- formLabel
- inputId
- array of ids of the input. Used in a "for" attribute.public static void printDescription(StringBuffer sb, String formDescription)
sb
- the BufferformDescription
- public static void printInfo(StringBuffer sb, String formInfo)
sb
- the BufferformInfo
- public static void printSeparator(StringBuffer sb, String formField)
sb
- the BufferformField
- nameprotected static void printMoveFormElement(StringBuffer sb, String jsfunc, String formField, String formName, String action, String icon, String alt, int pos, int relFirst, String formFieldId)
protected static void printDataChooser(StringBuffer sb, String ctxPath, String formField, String formName, String alt, int pos, String jsp, String chooserQS, int width, int height, String icon)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |