OverviewSingleDeprecated

jsx3.app

class Settings

Object
->jsx3.lang.Object
  ->jsx3.app.Settings

class Settings
extends jsx3.lang.Object
Read-Only system settings interface.

Since:

3.0

Field Summary
static int
DOMAIN_ADDIN
static int
DOMAIN_PROJECT
static int
Deprecated.
Constructor Summary
void
init(intDomain : int | jsx3.xml.Document, objInstance : String | Object)
The instance initializer.
Method Summary
String | Number | boolean | Array | Object
get(strKey : String...)
Returns a stored setting value.
jsx3.xml.Entity
getNode(strKey : String...)
Returns a stored setting value as the raw XML node.
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Field Detail

DOMAIN_ADDIN

static final int DOMAIN_ADDIN

DOMAIN_PROJECT

static final int DOMAIN_PROJECT

DOMAIN_SYSTEM

static final int DOMAIN_SYSTEM
Deprecated.
Constructor Detail

init

void init(intDomain : int | jsx3.xml.Document, objInstance : String | Object)
The instance initializer. Creates a view onto the settings persisted on disk. All identical instances of this class are backed by the same XML source document.

Parameters:

intDomainthe domain of the settings to load, one of jsx3.app.Settings.DOMAIN...
objInstanceif in the project or addin domain, the key of the specific project or addin to load settings for

Throws:

{jsx3.lang.IllegalArgumentException}if intDomain is not a valid domain
Method Detail

get

String | Number | boolean | Array | Object get(strKey : String...)
Returns a stored setting value.

Parameters:

strKeythe setting key.

Returns:

the stored value.  

getNode

jsx3.xml.Entity getNode(strKey : String...)
Returns a stored setting value as the raw XML node.

Parameters:

strKeythe setting key.

Returns: