-
Notifications
You must be signed in to change notification settings - Fork 7
/
GxClientEvents.bbj
129 lines (123 loc) · 3.52 KB
/
GxClientEvents.bbj
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
rem /**
rem * The package exports a collection of classes which describe The client events as BBj models
rem */
rem package GxClientEvents
rem /**
rem * This file is part of the BBjGridExWidget plugin.
rem * (c) Basis Europe <[email protected]>
rem *
rem * For the full copyright and license information, please view the LICENSE
rem * file that was distributed with this source code.
rem */
use ::BBjGridExWidget/GxClientModels.bbj::GxClientRowModel
use ::BBjGridExWidget/GxClientModels.bbj::GxClientColumnModel
use ::BBjGridExWidget/GxClientModels.bbj::GxClientCellModel
use ::BBjGridExWidget/GxClientModels.bbj::GxClientKeypressModel
REM /**
REM * Row Selection Event (single & double)
REM *
REM * @author Hyyan Abo Fakher
REM */
class public GxClientEventsRowSelection
rem /**
rem * An array of selected rows
rem */
field public BBjVector SelectedRows! = new BBjVector()
rem /**
rem * A keypress model which is received from the client.
rem *
rem * <strong>Note</strong> The the key model is available for the following grid events only
rem * `ON_GRID_ROW_CLICK` and `ON_GRID_DOUBLE_CLICK`. In all other cases , it will be null()
rem */
field public GxClientKeypressModel Key!
rem /**
rem * Get the number of affected rows by the last event
rem *
rem * @return BBjNumber
rem */
method public BBjNumber getSelectedRowCount()
methodret #SelectedRows!.size()
methodend
classend
rem /**
rem * Context Menu Event
rem *
REM * @author Hyyan Abo Fakher
rem */
class public GxClientEventsContextMenu
rem /**
rem * The current cell where the context menu is triggered
rem */
field public GxClientCellModel Cell!
rem /**
rem * Get the cell value
rem *
rem * @return BBjString The cell's value
rem */
method public BBjString getValue()
methodret #getCell().getValue()
methodend
rem /**
rem * Get the cell's row
rem *
rem * @return GxClientRowModel
rem */
method public GxClientRowModel getRow()
methodret #getCell().getRow()
methodend
rem /**
rem * Get the cell's column
rem *
rem * @return GxClientColumnModel
rem */
method public GxClientColumnModel getColumn()
methodret #getCell().getColumn()
methodend
classend
rem /**
rem * Cell Editing / Clicking Event
rem *
REM * @author Hyyan Abo Fakher
rem */
class public GxClientEventsCell extends GxClientEventsContextMenu
rem /**
rem * The old value of the cell
rem */
field public BBjString OldValue!
rem /**
rem * A keypress model which is received from the client.
rem *
rem * <strong>Note</strong> The the key model is available for the following grid events only
rem * `ON_GRID_CELL_CLICK` and `ON_GRID_CELL_DOUBLE_CLICK`. In all other cases , it will be null()
rem */
field public GxClientKeypressModel Key!
classend
rem /**
rem * Cell Editing / Clicking Event
rem *
REM * @author Hyyan Abo Fakher
rem */
class public GxClientEventsRowEditing
rem /**
rem * The Row being edited
rem */
field public GxClientRowModel Row!
classend
REM /**
REM * Cells range selection event
REM *
REM * @author Hyyan Abo Fakher
REM */
class public GxClientEventsRangeSelection
classend
REM /**
REM * Keypress event
REM *
REM * @author Hyyan Abo Fakher
REM */
class public GxClientEventsKeypress
rem /**
rem * A keypress model which is received from the client
rem */
field public GxClientKeypressModel Key!
classend