Community Map Builder 16 Jul 2009

Class ButtonBase

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

class ButtonBase
extends WidgetBase

Defined in ButtonBase.js

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


Field Summary
 Object action
          
 Object active
          
 Object buttonType
          
 Object control
          OpenLayers control for this button.
 Object cursor
          
 Object div
          
 Object htmlTagId
          
 Object objRef
          
 Object olButtonType
          
 Object panel_div
          
 Object panelHtmlTagId
          
 Object selected
          
 Object superclass
          
   
Fields inherited from class WidgetBase
model, widgetNode, id, outputNodeId, htmlTagId, autoRefresh, debug
 
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.
 void setCursor(cursor)
          
 
Methods inherited from class WidgetBase
getProperty, getNode, initTargetModel, prePaint, postPaint, clearWidget
 

Field Detail

action

Object action

active

Object active

buttonType

Object buttonType

control

Object control

cursor

Object cursor

div

Object div

htmlTagId

Object htmlTagId

objRef

Object objRef

olButtonType

Object olButtonType

panel_div

Object panel_div

panelHtmlTagId

Object panelHtmlTagId

selected

Object selected

superclass

Object superclass

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()

setCursor

void setCursor(cursor)

Community Map Builder 16 Jul 2009

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