Package org.openxava.web
Class WebEditors
- java.lang.Object
-
- org.openxava.web.WebEditors
-
public class WebEditors extends java.lang.Object
- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description WebEditors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
depends(MetaProperty a, MetaProperty b, java.lang.String viewName)
If a depends on bstatic boolean
dependsOnSomeOther(MetaProperty metaProperty, java.lang.String viewName)
If the property depends of some other property displayed in the view.static java.lang.String
format(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName)
static java.lang.String
format(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName, boolean fromList)
static java.lang.String
formatNoFilterSpecialCharacters(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName)
static java.lang.Object
formatTitle(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName, boolean fromList)
static java.lang.Object
formatToStringOrArray(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName, boolean fromList)
static java.util.Collection<java.lang.String>
getEditors(MetaTab metaTab)
static java.lang.String
getEditorURLDescriptionsList(java.lang.String tabName, java.lang.String tabModelName, java.lang.String propertyKey, int index, java.lang.String prefix, java.lang.String qualifiedName, java.lang.String name)
static java.lang.String
getIcon(java.lang.String editor)
static MetaEditor
getMetaEditorFor(MetaMember m, java.lang.String viewName)
static java.lang.String
getUrl(java.lang.String editor, MetaTab metaTab)
static java.lang.String
getUrl(MetaProperty p, java.lang.String viewName)
static java.lang.String
getUrl(MetaTab metaTab)
static boolean
hasFrame(MetaProperty p, java.lang.String viewName)
static boolean
hasMultipleValuesFormatter(MetaProperty p, java.lang.String viewName)
static boolean
mustToFormat(MetaProperty p, java.lang.String viewName)
static java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.String[] strings, Messages errors, java.lang.String viewName)
static java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.String string, Messages errors, java.lang.String viewName)
-
-
-
Method Detail
-
mustToFormat
public static boolean mustToFormat(MetaProperty p, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
hasMultipleValuesFormatter
public static boolean hasMultipleValuesFormatter(MetaProperty p, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
hasFrame
public static boolean hasFrame(MetaProperty p, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
parse
public static java.lang.Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.String[] strings, Messages errors, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
parse
public static java.lang.Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.String string, Messages errors, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
formatNoFilterSpecialCharacters
public static java.lang.String formatNoFilterSpecialCharacters(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName) throws XavaException
- Throws:
XavaException
- Since:
- 7.3
-
format
public static java.lang.String format(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
format
public static java.lang.String format(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName, boolean fromList) throws XavaException
- Throws:
XavaException
-
formatToStringOrArray
public static java.lang.Object formatToStringOrArray(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.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 java.lang.Object formatTitle(javax.servlet.http.HttpServletRequest request, MetaProperty p, java.lang.Object object, Messages errors, java.lang.String viewName, boolean fromList) throws XavaException
- Throws:
XavaException
-
getUrl
public static java.lang.String getUrl(MetaProperty p, java.lang.String viewName) throws XavaException
- Throws:
XavaException
-
getUrl
public static java.lang.String getUrl(MetaTab metaTab) throws ElementNotFoundException, XavaException
-
getEditors
public static java.util.Collection<java.lang.String> getEditors(MetaTab metaTab) throws ElementNotFoundException, XavaException
-
getUrl
public static java.lang.String getUrl(java.lang.String editor, MetaTab metaTab) throws ElementNotFoundException, XavaException
-
getIcon
public static java.lang.String getIcon(java.lang.String editor) throws ElementNotFoundException, XavaException
- 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:
ElementNotFoundException
XavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember m, java.lang.String viewName) throws ElementNotFoundException, XavaException
-
depends
public static boolean depends(MetaProperty a, MetaProperty b, java.lang.String viewName)
If a depends on b
-
dependsOnSomeOther
public static boolean dependsOnSomeOther(MetaProperty metaProperty, java.lang.String viewName)
If the property depends of some other property displayed in the view.
-
getEditorURLDescriptionsList
public static java.lang.String getEditorURLDescriptionsList(java.lang.String tabName, java.lang.String tabModelName, java.lang.String propertyKey, int index, java.lang.String prefix, java.lang.String qualifiedName, java.lang.String name)
-
-