BrightSide Workbench Full Report + Source Code
EditEventListener.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
package
org.turro.zkoss.grid;
19
20
import
org.turro.elephant.util.Components;
21
import
org.zkoss.zk.ui.Component;
22
import
org.zkoss.zk.ui.event.Event;
23
import
org.zkoss.zul.Row;
24
29
public
class
EditEventListener
extends
EditableEventListener
{
30
31
public
EditEventListener
(
EditableGrid
grid
) {
32
super(
grid
);
33
}
34
35
@Override
36
public
void
onEvent
(Event event)
throws
Exception {
37
Component comp =
event
.getTarget();
38
Row row =
Components
.
from
(comp).parent(Row.class);
39
if
(row !=
null
) {
40
grid
.
processEdition
(
new
EditableCell
(
grid
, row, comp));
41
}
42
}
43
44
}
org.turro.elephant.util.Components
Definition:
Components.java:29
org.turro.elephant.util.Components.from
static Components from(Object component)
Definition:
Components.java:46
org.turro.zkoss.grid.EditEventListener
Definition:
EditEventListener.java:29
org.turro.zkoss.grid.EditEventListener.onEvent
void onEvent(Event event)
Definition:
EditEventListener.java:36
org.turro.zkoss.grid.EditEventListener.EditEventListener
EditEventListener(EditableGrid grid)
Definition:
EditEventListener.java:31
org.turro.zkoss.grid.EditableCell
Definition:
EditableCell.java:31
org.turro.zkoss.grid.EditableEventListener
Definition:
EditableEventListener.java:26
org.turro.zkoss.grid.EditableEventListener.grid
EditableGrid grid
Definition:
EditableEventListener.java:28
org.turro.zkoss.grid.EditableGrid
Definition:
EditableGrid.java:46
org.turro.zkoss.grid.EditableGrid.processEdition
void processEdition(EditableCell editableCell)
Definition:
EditableGrid.java:204
TurroProjects
Public
BrightSide
elephant-zkoss
src
main
java
org
turro
zkoss
grid
EditEventListener.java
Generated on Tue Mar 12 2024 07:01:19 for BrightSide by
1.9.1