JEphem site
tig API
Build classes

jephem
Class JEphemPrefs

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--tig.TigProperties
                          |
                          +--jephem.JEphemPrefs
All Implemented Interfaces:
java.lang.Cloneable, GeneralConstants, java.util.Map, java.io.Serializable

public class JEphemPrefs
extends TigProperties
implements GeneralConstants

Class permitting to access to the general preferences of JEphem.
At program startup, an instance is loaded, and can be accessed through jephem.GlobalVar.getJEphemPrefs().
Example of use :

 JEphemPrefs prefs = new JEphemPrefs();
 String lang = (String)prefs.getJEphemPrefs().get(JEphemPrefs.KEY_LANG);
 

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
static java.lang.String KEY_COUNTRY
          Constant to use as a key to access to the 'country' property of this preference.
static java.lang.String KEY_LAF
          Constant to use as a key to access to the 'look and feel' property of this preference.
static java.lang.String KEY_LANG
          Constant to use as a key to access to the 'language' property of this preference - "lang".
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Constructor Summary
JEphemPrefs()
          Unique constructor.
 
Method Summary
 void store()
          Stores these preferences in the appropriate file with the appropriate header.
 
Methods inherited from class tig.TigProperties
getBooleanProperty, getBooleanProperty, getDoubleProperty, getDoubleProperty, getIntArrayProperty, getIntArrayProperty, getIntConstant, getIntProperty, getIntProperty, setBooleanProperty, setDoubleProperty, setIntArrayProperty, setIntProperty
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_COUNTRY

public static final java.lang.String KEY_COUNTRY
Constant to use as a key to access to the 'country' property of this preference.

See Also:
Constant Field Values

KEY_LAF

public static final java.lang.String KEY_LAF
Constant to use as a key to access to the 'look and feel' property of this preference.

See Also:
Constant Field Values

KEY_LANG

public static final java.lang.String KEY_LANG
Constant to use as a key to access to the 'language' property of this preference - "lang".

See Also:
Constant Field Values
Constructor Detail

JEphemPrefs

public JEphemPrefs()
Unique constructor.

Method Detail

store

public void store()
Stores these preferences in the appropriate file with the appropriate header.


JEphem site
tig API
Build classes