com.supermap.web.events
public class GraphicDataGridEvent
继承 GraphicDataGridEvent Inheritance mx.events.DataGridEvent

GraphicDataGrid 事件类.

该类提供了三种事件类型: 当选中 GraphicDataGrid 列表中某条记录时触发 GraphicDataGridEvent.GRAPHIC_SELECTED 事件;当单击地图中的图形 Graphic 时,触发 GraphicDataGridEvent.GRAPHIC_CLICK 事件;当删除 GraphicDataGrid 列表中某条记录时触发 GraphicDataGridEvent.GRAPHIC_DELETE

另请参见

com.supermap.web.components.GraphicDataGrid


公共属性
  属性 定义方
    graphic : Graphic
[read-only] 选中的记录对应的 Graphic 对象。
GraphicDataGridEvent
公共方法
  方法 定义方
   
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 对象。


Implementation
    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 列表中的图形记录时触发该事件。