jsx3.app.Server and publishes related events.
This class keeps all contained JSX objects indexed on id and name.
| Field Summary | |
|---|---|
| static int | 0 |
| static int | 2 |
| static int | 1 |
| Constructor Summary | |
|---|---|
| void | init() The instance initializer. |
| Method Summary | |
|---|---|
| void | add(objJSX : jsx3.app.Model) Adds a JSX object to this DOM and indexes it by its id and name. |
| void | destroy() The instance finalizer. |
| jsx3.app.Model | Looks up a DOM object contained in this DOM by id or name. |
| Array<jsx3.app.Model> | getAllByName(strName : String) Returns all the DOM nodes in this DOM with a name of strName. |
| jsx3.app.Model | Looks up a DOM object contained in this DOM by id. |
| jsx3.app.Model | Looks up a DOM object contained in this DOM by name. |
| static String | Creates a new unique system id. |
| void | called when a change to the JSX DOM occurs for this server instance (adopt, load, delete, etc); publishes an event object (javascript object) with the following named properties: subject (jsx3.app.DOM.EVENT_CHANGE); type (jsx3.app.DOM.TYPEADD | jsx3.app.DOM.TYPEREMOVE); parentId (id of JSX parent); jsxId (id of element added or removed) |
| void | A method that must be called after changing the name of a contained DOM node. |
| void | remove(objJSX : jsx3.app.Model) Removes a JSX object from this DOM and removes it from the indices. |
| 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 |
|---|
| Constructor Detail |
|---|
| Method Detail |
|---|
null if none found.
strName. The name index keeps a bucket of
DOM nodes for each unique name. Therefore, this method performs efficiently.null if none found.
strName the behavior of this method is undefined.null if none found.