Community Map Builder 21 Aug 2007

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 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, buttonBarGroup, panelHtmlTagId, buttonType, control, active
   
Fields inherited from class WidgetBase
model, widgetNode, id, outputNodeId, htmlTagId, node, groupnode
 
Constructor Summary
EditButtonBase (widgetNode, model)
            Base class for tools which update GML by clicking on the mapPane.
 
Method Summary
 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 loadDefaultModel(objRef)
           Load the defaultModel into the targetModel.
 void setEditingLayer(objRef)
           Set editing layer and register for editing events in OL, called after model loads.
 
Methods inherited from class ButtonBase
getButtonClass, doAction, select, attachToOL, buttonInit
   
Methods inherited from class WidgetBase
initTargetModel, prePaint, postPaint, clearWidget
 

Field Detail

cursor

Object cursor

defaultModelUrl

Object defaultModelUrl

featureXpath

Object featureXpath

trm

Object trm

Constructor Detail

EditButtonBase

EditButtonBase(widgetNode, model)

Method Detail

doSelect

void doSelect(objRef, selected)

handleFeatureInsert

void handleFeatureInsert(feature)

initButton

void initButton(objRef)

loadDefaultModel

void loadDefaultModel(objRef)

setEditingLayer

void setEditingLayer(objRef)

Community Map Builder 21 Aug 2007

Documentation generated by JSDoc on Tue Aug 21 08:12:28 2007