/** * Gets the localizer that is being used by this string resource model. * * @return The localizer */ public Localizer getLocalizer() { return Application.get().getResourceSettings().getLocalizer(); }
/** * Gets the localizer that is being used by this string resource model. * * @return The localizer */ public Localizer getLocalizer() { return Application.get().getResourceSettings().getLocalizer(); }
/** * @return Same as Application.get().getResourceSettings().getLocalizer() */ public static Localizer get() { return Application.get().getResourceSettings().getLocalizer(); }
/** * Convenience method to provide easy access to the localizer object within any component. * * @return The localizer object */ public final Localizer getLocalizer() { return getApplication().getResourceSettings().getLocalizer(); }
/** * Convenience method to provide easy access to the localizer object within any component. * * @return The localizer object */ public final Localizer getLocalizer() { return getApplication().getResourceSettings().getLocalizer(); }
/** * @return Same as Application.get().getResourceSettings().getLocalizer() */ public static Localizer get() { return Application.get().getResourceSettings().getLocalizer(); }
/** * @see org.apache.wicket.jmx.ApplicationMBean#clearLocalizerCache() */ @Override public void clearLocalizerCache() throws IOException { application.getResourceSettings().getLocalizer().clearCache(); } }
/** * {@inheritDoc} */ @Override public String getLocalizer() { return Stringz.className(application.getResourceSettings().getLocalizer()); }
@Override public Localizer getLocalizer() { return GeoServerApplication.get().getResourceSettings().getLocalizer(); } }.setModel(model).setParameters(params);
@Override public Object getDisplayValue(RoleSource rs) { String key = "RoleSource." + rs.toString(); return Application.get().getResourceSettings().getLocalizer().getString(key, null); }
@Override protected String load() { return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, component, null, null, null, defaultValue); }
@Override public String getObject() { // this shouldn't be called always wrapped! return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, null, null, null, null, defaultValue); }
@Override protected String load() { return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, component, null, null, null, defaultValue); }
@Override public String getObject() { // this shouldn't be called always wrapped! return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, null, null, null, null, defaultValue); }
private String getDisplayName(Class<?> clazz) { String displayName = EditableUtils.getDisplayName(clazz); displayName = Application.get().getResourceSettings().getLocalizer().getString(displayName, this, displayName); return displayName; }
@Override public Object getDisplayValue(T object) { String key = resourcePrefix+"."+(object==null?"null":super.getDisplayValue(object)); return Application.get().getResourceSettings().getLocalizer().getString(key, null); }
@Override public Object getDisplayValue(T object) { String key = resourcePrefix+"."+(object==null?"null":super.getDisplayValue(object)); return Application.get().getResourceSettings().getLocalizer().getString(key, null); }
private String getDisplayName(Class<?> clazz) { String displayName = EditableUtils.getDisplayName(clazz); displayName = Application.get().getResourceSettings().getLocalizer().getString(displayName, this, displayName); return displayName; }
/** Clears all the wicket caches so that resources and localization files will be re-read */ public void clearWicketCaches() { getResourceSettings().getPropertiesFactory().clearCache(); getResourceSettings().getLocalizer().clearCache(); }
public final CharSequence getDisplayValue(Boolean option) { String key = resourceKey(option); final String value; if (resourceSource != null) { value = resourceSource.getString(key); } else { value = Application.get().getResourceSettings().getLocalizer().getString(key, null); } return postProcess(value); }