nl.cloudfarming.client.area.field.pref
Enum AreaFieldPreference

java.lang.Object
  extended by java.lang.Enum<AreaFieldPreference>
      extended by nl.cloudfarming.client.area.field.pref.AreaFieldPreference
All Implemented Interfaces:
Serializable, Comparable<AreaFieldPreference>

public enum AreaFieldPreference
extends Enum<AreaFieldPreference>

utility enum for storing and retrieving preferences ( for localized text use NbBundle )

Author:
Timon Veenstra

Enum Constant Summary
FIELD_DATABASE_DIR
           
LAST_SHAPE_DIR
           
LOAD_DIR
           
SHAPE_ATT_NAME
           
SHAPE_ATT_POLYGON
           
SHAPE_CONTAINTS_FIELD
           
SHAPE_CONTAINTS_PARTFIELD
           
SHAPE_FILE_ARCHIVE_DIR
           
 
Method Summary
 String getDefaultProperty()
           
 String getPropertyName()
           
 String getValue()
           
 void saveValue(String value)
           
static AreaFieldPreference valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AreaFieldPreference[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOAD_DIR

public static final AreaFieldPreference LOAD_DIR

SHAPE_FILE_ARCHIVE_DIR

public static final AreaFieldPreference SHAPE_FILE_ARCHIVE_DIR

FIELD_DATABASE_DIR

public static final AreaFieldPreference FIELD_DATABASE_DIR

LAST_SHAPE_DIR

public static final AreaFieldPreference LAST_SHAPE_DIR

SHAPE_CONTAINTS_FIELD

public static final AreaFieldPreference SHAPE_CONTAINTS_FIELD

SHAPE_CONTAINTS_PARTFIELD

public static final AreaFieldPreference SHAPE_CONTAINTS_PARTFIELD

SHAPE_ATT_POLYGON

public static final AreaFieldPreference SHAPE_ATT_POLYGON

SHAPE_ATT_NAME

public static final AreaFieldPreference SHAPE_ATT_NAME
Method Detail

values

public static AreaFieldPreference[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AreaFieldPreference c : AreaFieldPreference.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AreaFieldPreference valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getDefaultProperty

public String getDefaultProperty()

getPropertyName

public String getPropertyName()

getValue

public String getValue()

saveValue

public void saveValue(String value)


Copyright © 2011. All Rights Reserved.