Community Map Builder 16 Jul 2009

Class EditButtonBase

Object
   |
   +--WidgetBase
         |
         +--ButtonBase
               |
               +--EditButtonBase
Direct Known Subclasses:
EditPolygon, EditLine, EditPoint, Measurement

class EditButtonBase
extends ButtonBase

Defined in EditButtonBase.js

Author: Cameron Shorter cameronATshorter.net


Field Summary
 Object appendOnEdit
          Should a new empty feature be appended after creating one?
 Object cursor
          
 Object defaultModelUrl
          Empty GML to load when this tool is selected.
 Object featureXpath
          Reference to GML node to update when a feature is added.
 Object trm
          
   
Fields inherited from class ButtonBase
htmlTagId, panelHtmlTagId, buttonType, olButtonType, action, cursor, selected, control, active, superclass, objRef, panel_div, div
   
Fields inherited from class WidgetBase
model, widgetNode, id, outputNodeId, htmlTagId, autoRefresh, debug
 
Constructor Summary
EditButtonBase (widgetNode, model)
            Base class for tools which update GML by clicking on the mapPane.
 
Method Summary
 Object createControl(objRef)
           OpenLayers DrawFeature control.
 void doSelect(objRef, selected)
           If tool is selected and the Edit Tool has changed (eg, changed from LineEdit to PointEdit) then load new default feature.
 void handleFeatureInsert(feature)
           This is called by the OL onFeatureInsert handler.
 void initButton(objRef)
           Create the array that will hold all OL feature layers for editing buttons.
 void newSession(objRef)
           start a new editing session
 void setEditingLayer(objRef)
           Set editing layer and register for editing events in OL, called after model loads.
 void setFeature(objRef)
           Add a geometry to the enclosing GML model.
 
Methods inherited from class ButtonBase
getButtonClass, doAction, select, attachToOL, buttonInit, setCursor
   
Methods inherited from class WidgetBase
getProperty, getNode, initTargetModel, prePaint, postPaint, clearWidget
 

Field Detail

appendOnEdit

Object appendOnEdit

cursor

Object cursor

defaultModelUrl

Object defaultModelUrl

featureXpath

Object featureXpath

trm

Object trm

Constructor Detail

EditButtonBase

EditButtonBase(widgetNode, model)

Method Detail

createControl

Object createControl(objRef)

doSelect

void doSelect(objRef, selected)

handleFeatureInsert

void handleFeatureInsert(feature)

initButton

void initButton(objRef)

newSession

void newSession(objRef)

setEditingLayer

void setEditingLayer(objRef)

setFeature

void setFeature(objRef)

Community Map Builder 16 Jul 2009

Documentation generated by JSDoc on Thu Jul 16 13:34:28 2009