Package hudson.plugins.locale.user
Class UserLocaleProperty.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<UserProperty>
hudson.model.UserPropertyDescriptor
hudson.plugins.locale.user.UserLocaleProperty.DescriptorImpl
- Enclosing class:
UserLocaleProperty
@Extension
@Symbol("userLocale")
public static final class UserLocaleProperty.DescriptorImpl
extends UserPropertyDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a ListBoxModel containing the available user locales.booleannewInstance(User user) newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Methods inherited from class hudson.model.UserPropertyDescriptor
getDescription, getUserPropertyCategoryAsStringMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<UserProperty>
-
newInstance
- Specified by:
newInstancein classUserPropertyDescriptor
-
newInstance
public UserProperty newInstance(org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject formData) - Overrides:
newInstancein classDescriptor<UserProperty>
-
isEnabled
public boolean isEnabled()- Overrides:
isEnabledin classUserPropertyDescriptor
-
getUserPropertyCategory
- Overrides:
getUserPropertyCategoryin classUserPropertyDescriptor
-
doFillLocaleCodeItems
Retrieves a ListBoxModel containing the available user locales. This method populates a ListBoxModel with the available user locales, sorted lexicographically by their string representations. Each locale's display name and string representation are added as options to the model.- Returns:
- A ListBoxModel containing the available user locales.
-