/** * Returns the display value for the null value. The default behavior is to look the value up by * using the key from <code>getNullValidKey()</code>. * * @return The value to display for null */ protected String getNullValidDisplayValue() { String option = getLocalizer().getStringIgnoreSettings(getNullValidKey(), this, null, null); if (Strings.isEmpty(option)) { option = getLocalizer().getString("nullValid", this, ""); } return option; }
/** * Returns the display value if null is not valid but is selected. The default behavior is to * look the value up by using the key from <code>getNullKey()</code>. * * @return The value to display if null is not value but selected, e.g. "Choose One" */ protected String getNullKeyDisplayValue() { String option = getLocalizer().getStringIgnoreSettings(getNullKey(), this, null, null); if (Strings.isEmpty(option)) { option = getLocalizer().getString("null", this, CHOOSE_ONE); } return option; }
/** * Returns the display value for the null value. The default behavior is to look the value up by * using the key from <code>getNullValidKey()</code>. * * @return The value to display for null */ protected String getNullValidDisplayValue() { String option = getLocalizer().getStringIgnoreSettings(getNullValidKey(), this, null, null); if (Strings.isEmpty(option)) { option = getLocalizer().getString("nullValid", this, ""); } return option; }
/** * Returns the display value if null is not valid but is selected. The default behavior is to * look the value up by using the key from <code>getNullKey()</code>. * * @return The value to display if null is not value but selected, e.g. "Choose One" */ protected String getNullKeyDisplayValue() { String option = getLocalizer().getStringIgnoreSettings(getNullKey(), this, null, null); if (Strings.isEmpty(option)) { option = getLocalizer().getString("null", this, CHOOSE_ONE); } return option; }
String option = getLocalizer().getStringIgnoreSettings(getNullValidKey(), this, null, null); if (Strings.isEmpty(option)) option = getLocalizer().getString("nullValid", this, ""); String option = getLocalizer().getStringIgnoreSettings(getNullKey(), this, null, null); option = getLocalizer().getString("null", this, CHOOSE_ONE);
String option = getLocalizer().getString(getId() + ".nullValid", this, ""); if (Strings.isEmpty(option)) option = getLocalizer().getString("nullValid", this, ""); String option = getLocalizer().getString(getId() + ".null", this, ""); if (Strings.isEmpty(option)) option = getLocalizer().getString("null", this, CHOOSE_ONE);