Package | net.systemeD.potlatch2.mapfeatures |
Class | public class EditorFactory |
Subclasses | RelationMemberEditorFactory, SingleTagEditorFactory |
Property | Defined by | ||
---|---|---|---|
category : String = "Standard" Default category: "Standard"
| EditorFactory | ||
description : String [read-only] The label given to the edited field, as defined in map features XML.
| EditorFactory | ||
name : String [read-only] The name of the field/tag/edit control, as defined in map features XML.
| EditorFactory | ||
presence : Presence
Default Presence behaviour: onTagMatch
| EditorFactory | ||
sortOrder : uint = 5 Default sorting: PRIORITY_NORMAL
| EditorFactory |
Method | Defined by | ||
---|---|---|---|
EditorFactory(inputXML:XML)
The default EditorFactory extracts name, description and category from the provided map features XML subtree.
| EditorFactory | ||
areTagsMatching(entity:Entity):Boolean
Whether the tags on an entity correspond to those for the edit control.
| EditorFactory | ||
createEditorInstance(entity:Entity):DisplayObject
A subclass must provide an actual edit control.
| EditorFactory | ||
createFactory(inputType:String, inputXML:XML):EditorFactory
[static] Returns a specific subclass of EditorFactory as appropriate for the type: "freetext", "checkbox", "choice", "slider", "number", "speed", "route", "turn".
| EditorFactory | ||
getPriority(priority:String):uint
[static] Translates a priority string ("highest") to a const (PRIORITY_HIGHEST).
| EditorFactory |
category | property |
public var category:String = "Standard"
Default category: "Standard"
description | property |
description:String
[read-only]The label given to the edited field, as defined in map features XML.
Implementation public function get description():String
name | property |
name:String
[read-only]The name of the field/tag/edit control, as defined in map features XML.
Implementation public function get name():String
presence | property |
public var presence:Presence
Default Presence behaviour: onTagMatch
sortOrder | property |
public var sortOrder:uint = 5
Default sorting: PRIORITY_NORMAL
EditorFactory | () | constructor |
public function EditorFactory(inputXML:XML)
The default EditorFactory extracts name, description and category from the provided map features XML subtree.
ParametersinputXML:XML |
areTagsMatching | () | method |
public function areTagsMatching(entity:Entity):Boolean
Whether the tags on an entity correspond to those for the edit control. By default, returns true - must be overriden by more useful behaviour.
Parametersentity:Entity |
Boolean |
createEditorInstance | () | method |
public function createEditorInstance(entity:Entity):DisplayObject
A subclass must provide an actual edit control. This returns null.
Parametersentity:Entity |
DisplayObject |
createFactory | () | method |
public static function createFactory(inputType:String, inputXML:XML):EditorFactory
Returns a specific subclass of EditorFactory as appropriate for the type: "freetext", "checkbox", "choice", "slider", "number", "speed", "route", "turn". Otherwise null.
ParametersinputType:String |
|
inputXML:XML |
EditorFactory |
getPriority | () | method |
public static function getPriority(priority:String):uint
Translates a priority string ("highest") to a const (PRIORITY_HIGHEST).
Parameterspriority:String |
uint |