Package org.openxava.web
Class WebEditors
java.lang.Object
org.openxava.web.WebEditors
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandepends(MetaProperty a, MetaProperty b, String viewName) If a depends on bstatic booleandependsOnSomeOther(MetaProperty metaProperty, String viewName) If the property depends of some other property displayed in the view.static Stringformat(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName) static Stringformat(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) static StringformatNoFilterSpecialCharacters(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName) static ObjectformatTitle(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) static ObjectformatToStringOrArray(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) static Collection<String>getEditors(MetaTab metaTab) static StringgetEditorURLDescriptionsList(String tabName, String tabModelName, String propertyKey, int index, String prefix, String qualifiedName, String name) static Stringstatic MetaEditorgetMetaEditorFor(MetaMember m, String viewName) static MetaEditorgetMetaEditorForDescriptionsList(MetaReference ref, String viewName) static Stringstatic StringgetUrl(MetaProperty p, String viewName) static Stringstatic booleanhasFrame(MetaProperty p, String viewName) static booleanhasMultipleValuesFormatter(MetaProperty p, String viewName) static booleanmustToFormat(MetaProperty p, String viewName) static Objectparse(javax.servlet.http.HttpServletRequest request, MetaProperty p, String[] strings, Messages errors, String viewName) static Objectparse(javax.servlet.http.HttpServletRequest request, MetaProperty p, String string, Messages errors, String viewName) static StringrefineURLParam(String condition)
-
Constructor Details
-
WebEditors
public WebEditors()
-
-
Method Details
-
mustToFormat
- Throws:
XavaException
-
hasMultipleValuesFormatter
public static boolean hasMultipleValuesFormatter(MetaProperty p, String viewName) throws XavaException - Throws:
XavaException
-
hasFrame
- Throws:
XavaException
-
parse
public static Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, String[] strings, Messages errors, String viewName) throws XavaException - Throws:
XavaException
-
parse
public static Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, String string, Messages errors, String viewName) throws XavaException - Throws:
XavaException
-
formatNoFilterSpecialCharacters
public static String formatNoFilterSpecialCharacters(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName) throws XavaException - Throws:
XavaException- Since:
- 7.3
-
format
public static String format(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName) throws XavaException - Throws:
XavaException
-
format
public static String format(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) throws XavaException - Throws:
XavaException
-
formatToStringOrArray
public static Object formatToStringOrArray(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) throws XavaException - Returns:
- If has a multiple converter return a array of string else return a string
- Throws:
XavaException
-
formatTitle
public static Object formatTitle(javax.servlet.http.HttpServletRequest request, MetaProperty p, Object object, Messages errors, String viewName, boolean fromList) throws XavaException - Throws:
XavaException
-
getUrl
- Throws:
XavaException
-
getUrl
-
getEditors
public static Collection<String> getEditors(MetaTab metaTab) throws ElementNotFoundException, XavaException -
getUrl
public static String getUrl(String editor, MetaTab metaTab) throws ElementNotFoundException, XavaException -
getIcon
- Returns:
- Null if the editor does not exists. A default value if exists but has not icon or the param is null or empty.
- Throws:
ElementNotFoundExceptionXavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember m, String viewName) throws ElementNotFoundException, XavaException -
depends
If a depends on b -
dependsOnSomeOther
If the property depends of some other property displayed in the view. -
getEditorURLDescriptionsList
-
refineURLParam
- Since:
- 7.7
-
getMetaEditorForDescriptionsList
public static MetaEditor getMetaEditorForDescriptionsList(MetaReference ref, String viewName) throws XavaException - Throws:
XavaException- Since:
- 7.7
-