OOALV中的DOUBLE_CLICK事件
"定义事件的类
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
"事件的方法
METHODS: HANDLE_DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW
E_COLUMN .
ENDCALSS.
"类的实例化
CLASS LCL_EVENT_RECEIVER IMPLEMNTATION.
METHOD HANDLE_DOUBLE_CLICK.
LEAVE TO SCREEN 0.
ENDMETHOD.
ENDCLASS.
DATA EVENT_RECEIVER TYPE REF TO LCL_EVENT_RECEIVER.
CREATE OBJECT EVENT_RECEIVER.
"进行绑定
SET EVENT_RECEIVER->HANDLE_DOUBLE_CLICK FOR GO_ALV_GRID.
双击ALV GRID 的任意单元格,都会执行LEAVE TO SCREEN 0 语句并结束程序。
平平静静生活,踏踏实实努力。