public class WidgetManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIcon(java.lang.String src,
java.lang.String title,
java.lang.String alt,
java.lang.String clazz,
java.lang.String style,
java.lang.String onclick,
java.lang.String id)
Build an html icon
|
java.lang.String |
getInputText(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String css,
boolean disabled,
java.lang.String fieldId,
int size,
int maxLength,
int tabindex,
java.lang.String placeholder,
java.lang.String customAttributes,
java.lang.String lang)
Returns a text input
|
static WidgetManager |
getInstance() |
java.lang.String |
getLangAttributes(java.lang.String lang) |
java.lang.String |
getLinkField(java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String fieldLabel,
java.lang.String css,
boolean disabled,
java.lang.String fieldId,
int size,
int maxLength,
int tabindex,
java.lang.String placeholder,
java.lang.String customAttributes,
java.lang.String lang)
Returns 2 text input that represents a JCMS Data Link
|
java.lang.String |
getSelectField(java.lang.String fieldName,
java.util.Collection<?> fieldLabel,
java.util.Collection<?> fieldValue,
java.lang.Object selectedValue,
java.lang.String css,
boolean disabled,
boolean blank,
java.lang.String fieldId,
int tabindex,
java.lang.String customAttributes,
java.lang.String lang)
Returns a select box
|
java.lang.String |
getTextArea(java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String css,
boolean disabled,
boolean escapeEntities,
java.lang.String fieldId,
int cols,
int rows,
int tabindex,
java.lang.String placeholder,
java.lang.String customAttributes,
java.lang.String lang)
Returns a text area
|
java.lang.String |
getTooltip(java.lang.String tip)
Returns the tooltip for the given tips.
|
boolean |
isRichTextDisabled() |
public static WidgetManager getInstance()
public boolean isRichTextDisabled()
public java.lang.String getInputText(java.lang.String fieldType, java.lang.String fieldName, java.lang.String fieldValue, java.lang.String css, boolean disabled, java.lang.String fieldId, int size, int maxLength, int tabindex, java.lang.String placeholder, java.lang.String customAttributes, java.lang.String lang)
fieldType
- the field type (hidden,password,text)fieldName
- the field namefieldValue
- the field value (quote will be escaped)css
- the classes of the input fielddisabled
- the field is disabledfieldId
- the field ID (Warning should not be used with dynamic context)size
- the field length in cars (Warning should be set in CSS)maxLength
- the field max length in cars (Warning should be checked in javascript)tabindex
- the tabindex (Warning should not be used with dynamic context)placeholder
- a placeholdercustomAttributes
- custom attributes to append at the end of the input (onclick, ...)lang
- the language of the input (@see #getLangAttributes()) (lang, xml:lang, dir)public java.lang.String getTextArea(java.lang.String fieldName, java.lang.String fieldValue, java.lang.String css, boolean disabled, boolean escapeEntities, java.lang.String fieldId, int cols, int rows, int tabindex, java.lang.String placeholder, java.lang.String customAttributes, java.lang.String lang)
fieldName
- the field namefieldValue
- the field value (quote will be escaped)css
- the classes of the input fielddisabled
- the field is disabledescapeEntities
- will escape html entitiesfieldId
- the field ID (Warning should not be used with dynamic context)cols
- the field length in cars (Warning should be set in CSS)rows
- the field rows in lines (Warning should be set in CSS)tabindex
- the tabindex (Warning should not be used with dynamic context)placeholder
- a placeholdercustomAttributes
- custom attributes to append at the end of the input (onclick, ...)lang
- the language of the input (@see #getLangAttributes()) (lang, xml:lang, dir)public java.lang.String getLinkField(java.lang.String fieldName, java.lang.String fieldValue, java.lang.String fieldLabel, java.lang.String css, boolean disabled, java.lang.String fieldId, int size, int maxLength, int tabindex, java.lang.String placeholder, java.lang.String customAttributes, java.lang.String lang)
fieldName
- the field namefieldValue
- the field value (quote will be escaped)fieldLabel
- the value of the field label (quote will be escaped)css
- the classes of the input fielddisabled
- the field is disabledfieldId
- the field ID (Warning should not be used with dynamic context)size
- the field length in cars (Warning should be set in CSS)maxLength
- the field max length in cars (Warning should be checked in javascript)tabindex
- the tabindex (Warning should not be used with dynamic context)placeholder
- the field placeholdercustomAttributes
- custom attributes to append at the end of the input (onclick, ...)lang
- the language of the input (@see #getLangAttributes()) (lang, xml:lang, dir)public java.lang.String getSelectField(java.lang.String fieldName, java.util.Collection<?> fieldLabel, java.util.Collection<?> fieldValue, java.lang.Object selectedValue, java.lang.String css, boolean disabled, boolean blank, java.lang.String fieldId, int tabindex, java.lang.String customAttributes, java.lang.String lang)
fieldName
- the field namefieldLabel
- the collection of labelsfieldValue
- the collection of valuesselectedValue
- the field value (quote will be escaped)css
- the classes of the input fielddisabled
- the field is disabledblank
- if true generate an empty optionfieldId
- the field ID (Warning should not be used with dynamic context)tabindex
- the tabindex (Warning should not be used with dynamic context)customAttributes
- custom attributes to append at the end of the input (onclick, ...)lang
- the language of the input (@see #getLangAttributes()) (lang, xml:lang, dir)public java.lang.String getIcon(java.lang.String src, java.lang.String title, java.lang.String alt, java.lang.String clazz, java.lang.String style, java.lang.String onclick, java.lang.String id)
src
- the image URL or Spritetitle
- the image titlealt
- the image altclazz
- the css classstyle
- the css styleonclick
- the onclick valueid
- the idpublic java.lang.String getTooltip(java.lang.String tip)
tip
- String for the tooltippublic java.lang.String getLangAttributes(java.lang.String lang)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.