Community Map Builder 21 Aug 2007

Class ButtonBase

Object
   |
   +--WidgetBase
         |
         +--ButtonBase
Direct Known Subclasses:
WfsGetFeature, ZoomOut, InsertFeature, Graticule, DragPan, Reset, GetFeatureInfo, Forward, ZoomIn, EditButtonBase, SetAoi, DeleteFeature, Button, Save, Back

class ButtonBase
extends WidgetBase

Defined in ButtonBase.js

Author: Mike Adair mike.adairATccrs.nrcan.gc.ca


Field Summary
 Object active
          
 Object buttonBarGroup
          
 Object buttonType
          
 Object control
          OpenLayers control for this button.
 Object htmlTagId
          
 Object panelHtmlTagId
          
   
Fields inherited from class WidgetBase
model, widgetNode, id, outputNodeId, htmlTagId, node, groupnode
 
Constructor Summary
ButtonBase (widgetNode, model)
            Abstract base button object that all Buttons extend.
 
Method Summary
 void attachToOL(objRef,refreshId)
           Attaches the control for this button to OpenLayers and add it to the buttonBar.
 void buttonInit(objRef)
           Set the target context for the button, initialise the buttonBars array in the context document and add a listener to the target model for adding controls to the OL map as soon as the map is initialized.
 void doAction()
           Override this in buttons which inherit from this object to carry out the action.
 void doSelect(objRef, selected)
           Method overriden by subclasses
 Object getButtonClass(objRef, state)
           Gets the css classname for this button.
 void select()
           Select this button.
 
Methods inherited from class WidgetBase
initTargetModel, prePaint, postPaint, clearWidget
 

Field Detail

active

Object active

buttonBarGroup

Object buttonBarGroup

buttonType

Object buttonType

control

Object control

htmlTagId

Object htmlTagId

panelHtmlTagId

Object panelHtmlTagId

Constructor Detail

ButtonBase

ButtonBase(widgetNode, model)

Method Detail

attachToOL

void attachToOL(objRef,refreshId)

buttonInit

void buttonInit(objRef)

doAction

void doAction()

doSelect

void doSelect(objRef, selected)

getButtonClass

Object getButtonClass(objRef, state)

select

void select()

Community Map Builder 21 Aug 2007

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