summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-04-02 07:08:06 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-04-02 07:08:06 +0000
commit5218e96b2838388e2c9b77cf3aad7aecbb43a3c1 (patch)
tree7da41b00e316cbfddeb145408f267d15bac9d77c /src
parent060e0d53300801b3dea0d3e6c97c62f073b8a06a (diff)
downloadvaadin-framework-5218e96b2838388e2c9b77cf3aad7aecbb43a3c1.tar.gz
vaadin-framework-5218e96b2838388e2c9b77cf3aad7aecbb43a3c1.zip
fixes #2711, client side enabled flag check for item events (selects + item clicks, context menus)
svn changeset:7279/svn branch:6.0
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java45
1 files changed, 24 insertions, 21 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
index 2f7f61d1c7..f7a925ad00 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
@@ -2320,28 +2320,31 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener {
*/
@Override
public void onBrowserEvent(Event event) {
- Element targetTdOrTr = getEventTargetTdOrTr(event);
- if (targetTdOrTr != null) {
- switch (DOM.eventGetType(event)) {
- case Event.ONCLICK:
- handleClickEvent(event, targetTdOrTr);
- if (selectMode > Table.SELECT_MODE_NONE) {
- toggleSelection();
- // Note: changing the immediateness of this might
- // require changes to "clickEvent" immediateness
- // also.
- client.updateVariable(paintableId, "selected",
- selectedRowKeys.toArray(), immediate);
+ if (enabled) {
+ Element targetTdOrTr = getEventTargetTdOrTr(event);
+ if (targetTdOrTr != null) {
+ switch (DOM.eventGetType(event)) {
+ case Event.ONCLICK:
+ handleClickEvent(event, targetTdOrTr);
+ if (selectMode > Table.SELECT_MODE_NONE) {
+ toggleSelection();
+ // Note: changing the immediateness of this
+ // might
+ // require changes to "clickEvent" immediateness
+ // also.
+ client.updateVariable(paintableId, "selected",
+ selectedRowKeys.toArray(), immediate);
+ }
+ break;
+ case Event.ONDBLCLICK:
+ handleClickEvent(event, targetTdOrTr);
+ break;
+ case Event.ONCONTEXTMENU:
+ showContextMenu(event);
+ break;
+ default:
+ break;
}
- break;
- case Event.ONDBLCLICK:
- handleClickEvent(event, targetTdOrTr);
- break;
- case Event.ONCONTEXTMENU:
- showContextMenu(event);
- break;
- default:
- break;
}
}
super.onBrowserEvent(event);