org.cruxframework.crux.plugin.gadget.client.features
Annotation Type UserPreferences.PreferenceAttributes


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface UserPreferences.PreferenceAttributes

Annotates instances of Preference getters in UserPreferences objects. The name of the getter method will be used as the name of the preference.


Optional Element Summary
 String default_value
          The default value of the preference.
 String display_name
          The user-visible name of the preference.
 UserPreferences.PreferenceAttributes.Options options
          Additional options that may be applied to the preference.
 

default_value

public abstract String default_value
The default value of the preference.

Default:
""

display_name

public abstract String display_name
The user-visible name of the preference. If no name is specified, the name of the accessor method will be used.

Default:
""

options

public abstract UserPreferences.PreferenceAttributes.Options options
Additional options that may be applied to the preference.

Default:
org.cruxframework.crux.plugin.gadget.client.features.UserPreferences.PreferenceAttributes.Options.NORMAL


Copyright © 2014. All rights reserved.