|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.widget.WidgetManager
public class WidgetManager
Method Summary | |
---|---|
String |
getIcon(String src,
String title,
String alt,
String clazz,
String style,
String onclick,
String id)
Build an html icon |
String |
getInputText(String fieldType,
String fieldName,
String fieldValue,
String css,
boolean disabled,
String fieldId,
int size,
int maxLength,
int tabindex,
String placeholder,
String customAttributes,
String lang)
Returns a text input |
static WidgetManager |
getInstance()
|
String |
getLangAttributes(String lang)
|
String |
getLinkField(String fieldName,
String fieldValue,
String fieldLabel,
String css,
boolean disabled,
String fieldId,
int size,
int maxLength,
int tabindex,
String placeholder,
String customAttributes,
String lang)
Returns 2 text input that represents a JCMS Data Link |
String |
getSelectField(String fieldName,
Collection<?> fieldLabel,
Collection<?> fieldValue,
Object selectedValue,
String css,
boolean disabled,
boolean blank,
String fieldId,
int tabindex,
String customAttributes,
String lang)
Returns a select box |
String |
getTextArea(String fieldName,
String fieldValue,
String css,
boolean disabled,
boolean escapeEntities,
String fieldId,
int cols,
int rows,
int tabindex,
String placeholder,
String customAttributes,
String lang)
Returns a text area |
String |
getTooltip(String tip)
Returns the tooltip for the given tips. |
boolean |
isRichTextDisabled()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WidgetManager getInstance()
public boolean isRichTextDisabled()
public String getInputText(String fieldType, String fieldName, String fieldValue, String css, boolean disabled, String fieldId, int size, int maxLength, int tabindex, String placeholder, String customAttributes, 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)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 String getTextArea(String fieldName, String fieldValue, String css, boolean disabled, boolean escapeEntities, String fieldId, int cols, int rows, int tabindex, String placeholder, String customAttributes, 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)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 String getLinkField(String fieldName, String fieldValue, String fieldLabel, String css, boolean disabled, String fieldId, int size, int maxLength, int tabindex, String placeholder, String customAttributes, 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 String getSelectField(String fieldName, Collection<?> fieldLabel, Collection<?> fieldValue, Object selectedValue, String css, boolean disabled, boolean blank, String fieldId, int tabindex, String customAttributes, 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 String getIcon(String src, String title, String alt, String clazz, String style, String onclick, String id)
src
- the image URL or Spritetitle
- the image titlealt
- the image altclazz
- the css classstyle
- the css styleonclick
- the onclick valueid
- the id
public String getTooltip(String tip)
tip
- String for the tooltip
public String getLangAttributes(String lang)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |