Packagenet.systemeD.potlatch2.mapfeatures
Classpublic class Presence

This class defines the behaviour of the "Presence" attribute in a Map Feature definition. Presence is one of "always", "onTagMatch" or "withCategory". This is used to control whether edit controls for a feature show up on an given edit page.



Public Methods
 MethodDefined by
  
getPresence(presence:String):Presence
[static] Translates a string from the XML form (eg "onTagMatch") to a constant (ON_TAG_MATCH)
Presence
  
isEditorPresent(editor:EditorFactory, forEntity:Entity, forCategory:String):Boolean
Determines whether a given edit control (editor) should be used for a given entity, given a certain category page is open.
Presence
Method detail
getPresence()method
public static function getPresence(presence:String):Presence

Translates a string from the XML form (eg "onTagMatch") to a constant (ON_TAG_MATCH)

Parameters
presence:String

Returns
Presence
isEditorPresent()method 
public function isEditorPresent(editor:EditorFactory, forEntity:Entity, forCategory:String):Boolean

Determines whether a given edit control (editor) should be used for a given entity, given a certain category page is open. If not overriden by a child class, the behaviour is "always": show the edit control on the "Basic" page, and on the appropriate category page.

Parameters
editor:EditorFactory
 
forEntity:Entity
 
forCategory:String

Returns
Boolean