metagloss 0.0.2

net.sf.metagloss.preference
Annotation Type BooleanString


@Target(value={TYPE,FIELD})
@Retention(value=RUNTIME)
@Inherited
public @interface BooleanString

Annotation type to set the format of Preference#setSummary(CharSequence) for CheckBoxPreferences to something other than true or false.

Must be used in conjunction with BindPreference.

Example

@BooleanString(checked = "descending", unchecked = "ascending")
@BindPreference
public static final String PREF_USER_ORDER_REVERSE = "user_order_direction";


Required Element Summary
 java.lang.String checked
           
 java.lang.String unchecked
           
 
Optional Element Summary
 java.lang.String key
          The key value associated with a preference.
 

Element Detail

checked

public abstract java.lang.String checked
Returns:
String when checked.

unchecked

public abstract java.lang.String unchecked
Returns:
String when unchecked.

key

public abstract java.lang.String key
The key value associated with a preference.

Returns:
Preference element's key value.
See Also:
Preference.getKey()
Default:
""