~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/lib/OpenLayers/Control/Button.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
 
2
 * See http://svn.openlayers.org/trunk/openlayers/repository-license.txt 
 
3
 * for the full text of the license. */
 
4
 
 
5
/**
 
6
 * @requires OpenLayers/Control.js
 
7
 */
 
8
 
 
9
/**
 
10
 * Class: OpenLayers.Control.Button 
 
11
 * A very simple button controlfor use with <OpenLayers.Control.Panel>.
 
12
 * When clicked, the function trigger() is executed.
 
13
 * 
 
14
 * Inherits from:
 
15
 *  - <OpenLayers.Control>
 
16
 *
 
17
 * Use:
 
18
 * (code)
 
19
 * var button = new OpenLayers.Control.Button({
 
20
 *     displayClass: "MyButton", trigger: myFunction
 
21
 * });
 
22
 * panel.addControls([button]);
 
23
 * (end)
 
24
 * 
 
25
 * Will create a button with CSS class MyButtonItemInactive, that
 
26
 *     will call the function MyFunction() when clicked.
 
27
 */
 
28
OpenLayers.Control.Button = OpenLayers.Class(OpenLayers.Control, {
 
29
    /**
 
30
     * Property: type
 
31
     * {Integer} OpenLayers.Control.TYPE_BUTTON.
 
32
     */
 
33
    type: OpenLayers.Control.TYPE_BUTTON,
 
34
    
 
35
    /**
 
36
     * Method: trigger
 
37
     * Called by a control panel when the button is clicked.
 
38
     */
 
39
    trigger: function() {},
 
40
 
 
41
    CLASS_NAME: "OpenLayers.Control.Button"
 
42
});
 
 
b'\\ No newline at end of file'