Packagecom.endeca.tools.pagebuilder.editor
Classpublic class EditorModule
InheritanceEditorModule Inheritance mx.modules.Module
ImplementsIEditorModule

EditorModule is a simple implementation of IEditorModule. It allows editors to easily be specified using MXML.



Public Properties
 PropertyDefined by
  registeredEditors : Array
The collection of EditorEntry objects of which this module is aware.
EditorModule
Public Methods
 MethodDefined by
  
canCreateEditor(name:QName):Boolean
Indicates whether this module is capable of instantiating an editor with the given name.
EditorModule
  
createEditor(name:QName):IEditor
Attempts to create an editor with the given name.
EditorModule
Protected Methods
 MethodDefined by
  
matchesName(name:QName):Function
Returns a function of the correct type to be passed to higher-order Array functions which checks the given name for equality with the name property of an item.
EditorModule
Property detail
registeredEditorsproperty
public var registeredEditors:Array

The collection of EditorEntry objects of which this module is aware.

See also

Method detail
canCreateEditor()method
public function canCreateEditor(name:QName):Boolean

Indicates whether this module is capable of instantiating an editor with the given name.

Parameters
name:QName — The name

Returns
Boolean — Whether this module can create such an editor
createEditor()method 
public function createEditor(name:QName):IEditor

Attempts to create an editor with the given name.

Parameters
name:QName — The name

Returns
IEditor — An instance of the editor corresponding to the given name
matchesName()method 
protected function matchesName(name:QName):Function

Returns a function of the correct type to be passed to higher-order Array functions which checks the given name for equality with the name property of an item.

Parameters
name:QName — The name against which an item will be checked

Returns
Function

See also

Array