Class UiUtil
java.lang.Object
io.vertigo.ui.impl.springmvc.util.UiUtil
- All Implemented Interfaces:
Serializable
Class utilitaire pour le rendu des pages en jsp/ftl.
- Author:
- npiedeloup
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcompileVueJsTemplate(String template) static StringcontextGet(String object, String field, String row) static StringcontextKey(UiObject<?> uiObject) Deprecated.not used : removed soonstatic StringcontextKey(String object, String field, String row) static StringformatBoolean(String fieldPath, Boolean value) static StringgenerateComponentUID(String component, String object, String field, String row) static StringGet the current locale tag (either the user's or the node (see LocaleManager javadoc) ex : fr, enUs, enGb, es, itstatic StringGet the current locale prefix (either the user's or the node (see LocaleManager javadoc) ex : fr, en-us, en-gb, es, itstatic StringgetDisplayField(String uiListKey) static StringgetIdField(String uiListKey) static DoublegetMaxValue(String fieldPath) static DoublegetMinValue(String fieldPath) static Doublestatic StringgetUiDatetimeFormat(String fieldPath) static intstatic Stringstatic booleanstatic StringsmartTypeAlign(String object, String fieldName, String overrideValue) static StringsmartTypeCss(String object, String fieldName, String overrideValue, String defaultValue) static IntegersmartTypeMaxLength(String object, String fieldName) static StringsmartTypeUnit(String object, String fieldName, String overrideValue) static StringvueDataKey(String object, String field, String row)
-
Constructor Details
-
UiUtil
public UiUtil()Constructor.
-
-
Method Details
-
contextKey
Deprecated.not used : removed soon- Parameters:
uiObject- Object du context- Returns:
- Nom de l'object dans le context
-
generateComponentUID
public static String generateComponentUID(String component, String object, String field, String row) - Parameters:
object- Object in contextfield- field of objectrow- index in list (nullable)- Returns:
- Name in context (use for input name)
-
contextKey
- Parameters:
object- Object in contextfield- field of objectrow- index in list (nullable)- Returns:
- Name in context (use for input name)
-
contextGet
- Parameters:
object- Object in contextfield- field of objectrow- index in list (nullable)- Returns:
- Name in context (use for getting key)
-
vueDataKey
- Parameters:
object- Object in contextfield- field of objectrow- index in list (nullable)- Returns:
- Name in vueData
-
indexOf
- Parameters:
uiList- List du contextuiObject- Objet de la liste- Returns:
- index de l'objet dans sa liste
-
label
- Parameters:
fieldPath- Chemin du champ- Returns:
- Label du champs
-
smartTypeUnit
- Parameters:
fieldPath- Chemin du champ- Returns:
- unit of the field
-
smartTypeMaxLength
- Parameters:
fieldPath- Chemin du champ- Returns:
- maxLength of the field
-
smartTypeCss
public static String smartTypeCss(String object, String fieldName, String overrideValue, String defaultValue) - Parameters:
fieldPath- Chemin du champ- Returns:
- css of the field
-
smartTypeAlign
- Parameters:
fieldPath- Chemin du champ- Returns:
- align direction of the field
-
formatBoolean
- Parameters:
fieldPath- Chemin du champ booleanvalue- Valeur à formater- Returns:
- rendu du champs boolean
-
getMinValue
-
getMaxValue
-
getUiDatetimeFormat
-
getStep
-
required
- Parameters:
fieldPath- Chemin du champ- Returns:
- Si le champs est obligatoire
-
getDisplayField
- Parameters:
uiList- liste du context- Returns:
- Nom du champ display de cette liste
-
getIdField
- Parameters:
uiList- liste du context- Returns:
- Nom du champ de l'id de cette liste
-
getCurrentLocalePrefixForQuasar
Get the current locale prefix (either the user's or the node (see LocaleManager javadoc) ex : fr, en-us, en-gb, es, it- Returns:
- the locale (in the quasar's style) to download the right js file
-
getCurrentLocaleForQuasar
Get the current locale tag (either the user's or the node (see LocaleManager javadoc) ex : fr, enUs, enGb, es, it- Returns:
- the locale (in the quasar's style) to select the right language in quasar
-
compileVueJsTemplate
-