API for seesaw.pref - Seesaw


Full namespace name: seesaw.pref

Overview





Public Variables and Functions



bind-preference-to-atom

macro
Usage: (bind-preference-to-atom key atom)
Bind atom to preference by syncing it
with (java.util.prefs.Preferences/userRoot) for the current
namespace and a given KEY. If no preference has been set yet the
atom will stay untouched, otherwise it will be set to the stored
preference value. Note that any value of the atom and the preference
key must be printable per PRINT-DUP and readable per READ-STRING for
it to be used with the preferences store.


bind-preference-to-atom*

function
Usage: (bind-preference-to-atom* ns key atom)
Bind atom to preference by syncing it
with (java.util.prefs.Preferences/userRoot) for the specified
namespace and a given KEY. If no preference has been set yet the
atom will stay untouched, otherwise it will be set to the stored
preference value. Note that any value of the atom and the preference
key must be printable per PRINT-DUP and readable per READ-STRING for
it to be used with the preferences store.


preference-atom

macro
Usage: (preference-atom key)
       (preference-atom key initial-value)
Create and return an atom which has been bound using
bind-preference-to-atom for the current namespace.


preferences-node

macro
Usage: (preferences-node)
       (preferences-node ns)
Return the java.util.prefs.Preferences/userRoot for the current
or the specified namespace.


preferences-node*

function
Usage: (preferences-node* ns)
Return the java.util.prefs.Preferences/userRoot for the specified
namespace.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.