org.autoplot.util.MigratePreference

This allows a legacy preference to be used alongside a new preference, keeping the scientist's preferences.

MigratePreference( java.util.prefs.Preferences p1, java.util.prefs.Preferences p2 )

create a new where preferences are first read from p1 and if not found there the data is read from from p2 (and if not found there then the default is used. When writing a preference, a copy is made to both p1 and p2.


absolutePath

absolutePath( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc]


addNodeChangeListener

addNodeChangeListener( java.util.prefs.NodeChangeListener ncl ) → void

Parameters

ncl - a NodeChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


addPreferenceChangeListener

addPreferenceChangeListener( java.util.prefs.PreferenceChangeListener pcl ) → void

Parameters

pcl - a PreferenceChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


childrenNames

childrenNames( ) → String

Returns:

java.lang.String[]

[search for examples] [view on GitHub] [view on old javadoc]


clear

clear( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


exportNode

exportNode( java.io.OutputStream os ) → void

Parameters

os - an OutputStream

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


exportSubtree

exportSubtree( java.io.OutputStream os ) → void

Parameters

os - an OutputStream

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


flush

flush( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


get

get( String key, String def ) → String

Parameters

key - a String
def - a String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc]


getBoolean

getBoolean( String key, boolean def ) → boolean

Parameters

key - a String
def - a boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc]


getByteArray

getByteArray( String key, byte[] def ) → byte

Parameters

key - a String
def - a byte[]

Returns:

byte[]

[search for examples] [view on GitHub] [view on old javadoc]


getDouble

getDouble( String key, double def ) → double

Parameters

key - a String
def - a double

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc]


getFloat

getFloat( String key, float def ) → float

Parameters

key - a String
def - a float

Returns:

float

[search for examples] [view on GitHub] [view on old javadoc]


getInt

getInt( String key, int def ) → int

Parameters

key - a String
def - an int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc]


getLong

getLong( String key, long def ) → long

Parameters

key - a String
def - a long

Returns:

long

[search for examples] [view on GitHub] [view on old javadoc]


isUserNode

isUserNode( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc]


keys

keys( ) → String

Returns:

java.lang.String[]

[search for examples] [view on GitHub] [view on old javadoc]


name

name( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc]


node

node( String pathName ) → Preferences

Parameters

pathName - a String

Returns:

java.util.prefs.Preferences

[search for examples] [view on GitHub] [view on old javadoc]


nodeExists

nodeExists( String pathName ) → boolean

Parameters

pathName - a String

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc]


parent

parent( ) → Preferences

Returns:

java.util.prefs.Preferences

[search for examples] [view on GitHub] [view on old javadoc]


put

put( String key, String value ) → void

Parameters

key - a String
value - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putBoolean

putBoolean( String key, boolean value ) → void

Parameters

key - a String
value - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putByteArray

putByteArray( String key, byte[] value ) → void

Parameters

key - a String
value - a byte[]

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putDouble

putDouble( String key, double value ) → void

Parameters

key - a String
value - a double

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putFloat

putFloat( String key, float value ) → void

Parameters

key - a String
value - a float

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putInt

putInt( String key, int value ) → void

Parameters

key - a String
value - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


putLong

putLong( String key, long value ) → void

Parameters

key - a String
value - a long

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


remove

remove( String key ) → void

Parameters

key - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


removeNode

removeNode( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


removeNodeChangeListener

removeNodeChangeListener( java.util.prefs.NodeChangeListener ncl ) → void

Parameters

ncl - a NodeChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


removePreferenceChangeListener

removePreferenceChangeListener( java.util.prefs.PreferenceChangeListener pcl ) → void

Parameters

pcl - a PreferenceChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


sync

sync( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc]