赣州市洪水风险预警系统二维版本
xiebin
2023-03-02 b39483c96ae572121d3c619c0b9d37634e682cc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
 * 全屏按钮
 * @author haoml
 */
define([
        "dojo",
  "dojo/_base/declare", 
  "base/AppEvent",
  "controls/toolbar/tools/BaseTool",
  "dojo/dom-style"
], function(
        dojo,
  declare, 
  AppEvent,
  BaseTool,
  domStyle
) {
  var RL = declare([BaseTool], {
    constructor: function(args) {
        this._normalIconClass="tool-fullScreen-normal";
        this._overIconClass="tool-fullScreen-over";
        this._selectedIconClass="tool-fullScreen-select";
        this._disableClass="";
        this.tooltip="全屏";
    },
    deactivate:function(args)
    {
        this.inherited(arguments);
        AppEvent.dispatchAppEvent(AppEvent.APPLICATION_FULLSCREEN,{fullscreen:false});
    },
    activate:function()
    {
        this.inherited(arguments);
        AppEvent.dispatchAppEvent(AppEvent.APPLICATION_FULLSCREEN,{fullscreen:true});
    },
    postCreate:function()
    {
        this.inherited(arguments);
        domStyle.set(this.tool,"border-top-right-radius","5px");
        domStyle.set(this.tool,"border-bottom-right-radius","5px");
    }
  });
  return RL;
});