OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.amp.util

class PrefsPane

Object
->jsx3.lang.Object
  ->jsx3.amp.util.PrefsPane

All Implemented Interfaces:

jsx3.util.EventDispatcher

class PrefsPane
extends jsx3.lang.Object
A pane in a preferences panel. Provided by the jsx3.amp.util.prefspanel plug-in.

Field Summary
static String
DIRTIED
Event subject published when the state of a preference pane is dirtied.
static String
SAVED
Event subject published when a preference pane is saved.
Constructor Summary
void
init(ext : jsx3.amp.Ext, obj : jsx3.amp.XML)
The instance initializer.
Method Summary
String
Returns the description of this pane.
jsx3.app.Model
Returns the object in the UI of this pane that should get focus when this pane is first revealed.
String
Returns the resolved path of the image of this pane.
Object
getProperty(strId : String)
Returns an arbitrary property of this pane.
String
Returns the title of this pane.
jsx3.app.Model
Returns the root component of this pane once it is rendered.
boolean
Returns whether this pane has unsaved changes.
jsx3.$AsyncRV
Saves the state of this pane.
void
setDirty(bDirty : boolean)
Sets whether this pane has unsaved changes.
void
setProperty(strId : String, objValue : Object)
Sets an arbitrary property of this pane.
Methods Inherited From jsx3.util.EventDispatcher
publish, subscribe, unsubscribe, unsubscribeAll
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Field Detail

DIRTIED

static String DIRTIED
Event subject published when the state of a preference pane is dirtied.

SAVED

static String SAVED
Event subject published when a preference pane is saved.
Constructor Detail

init

void init(ext : jsx3.amp.Ext, obj : jsx3.amp.XML)
The instance initializer. The obj parameter must define an attribute, resource, which is the name of an XML resource of ext. This resource will be loaded as the UI component of this pane. The root object of this component file may define the following methods:

Parameters:

extthe AMP extension declaring this pane.
objthe XML declaration of the extension.
Method Detail

getDescription

String getDescription()
Returns the description of this pane.

Returns:

 

getFirstResponder

jsx3.app.Model getFirstResponder()
Returns the object in the UI of this pane that should get focus when this pane is first revealed. This method delegates to the method getFirstResponder() of the root UI component for this pane, if that method is defined.

Returns:

 

getImage

String getImage()
Returns the resolved path of the image of this pane.

Returns:

 

getProperty

Object getProperty(strId : String)
Returns an arbitrary property of this pane.

Parameters:

strId

Returns:

 

getTitle

String getTitle()
Returns the title of this pane.

Returns:

 

getUI

jsx3.app.Model getUI()
Returns the root component of this pane once it is rendered.

Returns:

 

isDirty

boolean isDirty()
Returns whether this pane has unsaved changes.

Returns:

 

save

asynchronous jsx3.$AsyncRV save()
Saves the state of this pane. This method delegates to the savePrefs() method of the root UI component of this pane.

Returns:

 

setDirty

void setDirty(bDirty : boolean)
Sets whether this pane has unsaved changes.

Parameters:

bDirty

setProperty

void setProperty(strId : String, objValue : Object)
Sets an arbitrary property of this pane. This method may be used for saving state.

Parameters:

strId
objValue