Class MapScaleText
Object
|
+--WidgetBase
|
+--WidgetBaseXSL
|
+--MapScaleText
- class
MapScaleText
- extends WidgetBaseXSL
Defined in MapScaleText.js
Constructor Summary |
MapScaleText
(widgetNode, model)
Widget to display the scale of a map.
|
Method Summary |
Object
|
handleKeyPress(event)
handles keypress events to filter out everything except "enter".
|
void
|
postPaint(objRef)
Refreshes the form and event handlers when this widget is painted.
|
void
|
prePaint(objRef)
Called just before paint to set the map scale as stylesheet param
|
void
|
showScale(objRef)
outputs the scale value to the form element
|
Object
|
submitForm()
Handles submission of the form (via javascript in an tag or onsubmit handler)
|
formName
Object formName
MapScaleText
MapScaleText(widgetNode, model)
Widget to display the scale of a map. The model of this widget
must have an extent object associated with it which is the case when the
model has a MapContanier widget.
Parameters:
widgetNode
- This widget's object node from the configuration document.
model
- The model that this widget is a view of.
handleKeyPress
Object handleKeyPress(event)
handles keypress events to filter out everything except "enter".
Pressing the "enter" key will trigger a form submit
Parameters:
event
- the event object passed in for Mozilla; IE uses window.event
postPaint
void postPaint(objRef)
Refreshes the form and event handlers when this widget is painted.
Parameters:
objRef
- Pointer to this CurorTrack object.
prePaint
void prePaint(objRef)
Called just before paint to set the map scale as stylesheet param
Parameters:
objRef
- pointer to this object.
showScale
void showScale(objRef)
outputs the scale value to the form element
Parameters:
objRef
- Pointer to this widget object.
submitForm
Object submitForm()
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007