Exemple #1
0
 /**
  * Gets the localized labels used in field specific configuration (are common for
  * getSettingsJSON() and getDefaultSettingsJSON())
  *
  * @param locale
  * @param bundleName
  * @return
  */
 @Override
 public String getLocalizationJSON(Locale locale, String bundleName) {
   StringBuilder stringBuilder = new StringBuilder();
   JSONUtility.appendStringValue(
       stringBuilder,
       FieldConfigJSON.JSON_FIELDS.TEXTBOX_SETTINGS_DEFAULT_DOUBLE_LABEL,
       LocalizeUtil.getLocalizedText(
           "customTextBoxDouble.prompt.defaultDouble", locale, bundleName));
   JSONUtility.appendStringValue(
       stringBuilder,
       FieldConfigJSON.JSON_FIELDS.TEXTBOX_SETTINGS_MIN_DOUBLE_LABEL,
       LocalizeUtil.getLocalizedText("customTextBoxDouble.prompt.minValue", locale, bundleName));
   JSONUtility.appendStringValue(
       stringBuilder,
       FieldConfigJSON.JSON_FIELDS.TEXTBOX_SETTINGS_MAX_DOUBLE_LABEL,
       LocalizeUtil.getLocalizedText("customTextBoxDouble.prompt.maxValue", locale, bundleName));
   return stringBuilder.toString();
 }
 protected String getListLabel(Locale locale, String bundleName) {
   return LocalizeUtil.getLocalizedText("customSelectSimple.prompt.list", locale, bundleName);
 }