Community Map Builder 02 Dec 2005

Class ButtonBase

Object
   |
   +--WidgetBase
         |
         +--ButtonBase
Direct Known Subclasses:
WfsGetFeature, ZoomOut, InsertFeature, 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 buttonType
          
 Object enabled
          
 Object htmlTagId
          
 Object stylesheet
          
   
Fields inherited from class WidgetBase
model, widgetNode, id, autoRefresh, outputNodeId, htmlTagId, node
 
Constructor Summary
ButtonBase (widgetNode, model)
            Abstract base Button object that all Buttons extend.
 
Method Summary
 void buttonInit(objRef)
           Initialise image for the button and select it if required.
 void doAction()
           Override this in buttons which inherit from this object to carry out the action.
 void doSelect(selected, objRef)
           Method overriden by subclasses
 void initMouseHandler(objRef)
           A listener method to initialize the mouse handler, if configured.
 void prePaint(objRef)
           Override of widgetBase prePaint to set the doc to be styled as the widget node in config for this button.
 void select()
           Called when a user clicks on a this.
 
Methods inherited from class WidgetBase
initTargetModel, postPaint, clearWidget
 

Field Detail

buttonType

Object buttonType

enabled

Object enabled

htmlTagId

Object htmlTagId

stylesheet

Object stylesheet

Constructor Detail

ButtonBase

ButtonBase(widgetNode, model)

Method Detail

buttonInit

void buttonInit(objRef)

doAction

void doAction()

doSelect

void doSelect(selected, objRef)

initMouseHandler

void initMouseHandler(objRef)

prePaint

void prePaint(objRef)

select

void select()

Community Map Builder 02 Dec 2005

Documentation generated by JSDoc on Fri Dec 2 16:31:06 2005