包 | com.supermap.web.events |
类 | public class GraphicDataGridEvent |
继承 | GraphicDataGridEvent ![]() |
该类提供了三种事件类型: 当选中 GraphicDataGrid 列表中某条记录时触发 GraphicDataGridEvent.GRAPHIC_SELECTED 事件;当单击地图中的图形 Graphic 时,触发 GraphicDataGridEvent.GRAPHIC_CLICK 事件;当删除 GraphicDataGrid 列表中某条记录时触发 GraphicDataGridEvent.GRAPHIC_DELETE
另请参见
方法 | 定义方 | ||
---|---|---|---|
GraphicDataGridEvent(type:String, graphic:Graphic = null)
初始化 GraphicDataGridEvent 类的新实例。
|
GraphicDataGridEvent |
常量 | 定义方 | ||
---|---|---|---|
GRAPHIC_CLICK : String = graphicClick
[static] 定义 GraphicDataGridEvent.GRAPHIC_CLICK 事件的 type 属性值。当点击地图中的图形时触发该事件。
|
GraphicDataGridEvent | ||
GRAPHIC_DELETE : String = graphicDelete
[static] 定义 GraphicDataGridEvent.GRAPHIC_DELETE 事件的 type 属性值。当删除 GraphicDataGrid 列表中某条记录时触发该事件。
|
GraphicDataGridEvent | ||
GRAPHIC_SELECTED : String = graphicSelected
[static] 定义 GraphicDataGridEvent.GRAPHIC_SELECTED 事件的 type 属性值。当选中 GraphicDataGrid 列表中的图形记录时触发该事件。
|
GraphicDataGridEvent |
graphic | 属性 |
graphic:Graphic
[read-only]
选中的记录对应的 Graphic 对象。
public function get graphic():Graphic
GraphicDataGridEvent | () | 构造函数 |
public function GraphicDataGridEvent(type:String, graphic:Graphic = null)
初始化 GraphicDataGridEvent 类的新实例。
参数type:String — 事件类型。 |
|
graphic:Graphic (default = null ) — 鼠标单击的记录对应的 Graphic 对象。 |
GRAPHIC_CLICK | 常量 |
public static const GRAPHIC_CLICK:String = graphicClick
定义 GraphicDataGridEvent.GRAPHIC_CLICK 事件的 type 属性值。当点击地图中的图形时触发该事件。
GRAPHIC_DELETE | 常量 |
public static const GRAPHIC_DELETE:String = graphicDelete
定义 GraphicDataGridEvent.GRAPHIC_DELETE 事件的 type 属性值。当删除 GraphicDataGrid 列表中某条记录时触发该事件。
GRAPHIC_SELECTED | 常量 |
public static const GRAPHIC_SELECTED:String = graphicSelected
定义 GraphicDataGridEvent.GRAPHIC_SELECTED 事件的 type 属性值。当选中 GraphicDataGrid 列表中的图形记录时触发该事件。