metagloss 0.0.2

net.sf.metagloss.preference
Annotation Type IntegerConstraint


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

Annotation type to set the valid numerical range for an EditTextPreference.

Must be used in conjunction with BindPreference.

Example

@IntegerConstraint(min = 3, max = 100)
@BindPreference(format="Updates every %s hours")
public static final String PREF_PROJECT_UPDATE_INTERVAL = "update_interval";


Required Element Summary
 int max
           
 
Optional Element Summary
 java.lang.String key
          The key value associated with a preference.
 int min
           
 

Element Detail

max

public abstract int max

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:
""

min

public abstract int min
Default:
0