ソースを参照

Table is now in multiselectmode.SIMPLE always on touch devices.

svn changeset:18626/svn branch:6.6
tags/6.7.0.beta1
Matti Tahvonen 13年前
コミット
f71e4e0dad
2個のファイルの変更11行の追加3行の削除
  1. 7
    3
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
  2. 4
    0
      src/com/vaadin/ui/Table.java

+ 7
- 3
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java ファイルの表示

@@ -414,7 +414,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
private boolean hasFocus = false;
private int dragmode;

private int multiselectmode;
private int multiselectmode = BrowserInfo.get().isTouchDevice() ? MULTISELECT_MODE_SIMPLE
: MULTISELECT_MODE_DEFAULT;;
private int tabIndex;
private TouchScrollDelegate touchScrollDelegate;

@@ -826,8 +827,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
tabIndex = uidl.hasAttribute("tabindex") ? uidl
.getIntAttribute("tabindex") : 0;

multiselectmode = uidl.hasAttribute("multiselectmode") ? uidl
.getIntAttribute("multiselectmode") : MULTISELECT_MODE_DEFAULT;
if (!BrowserInfo.get().isTouchDevice()) {
multiselectmode = uidl.hasAttribute("multiselectmode") ? uidl
.getIntAttribute("multiselectmode")
: MULTISELECT_MODE_DEFAULT;
}

if (uidl.hasAttribute("alb")) {
bodyActionKeys = uidl.getStringArrayAttribute("alb");

+ 4
- 0
src/com/vaadin/ui/Table.java ファイルの表示

@@ -3815,6 +3815,10 @@ public class Table extends AbstractSelect implements Action.Container,
/**
* Sets the behavior of how the multi-select mode should behave when the
* table is both selectable and in multi-select mode.
* <p>
* Note, that on some clients the mode may not be respected. E.g. on touch
* based devices CTRL/SHIFT base selection method is invalid, so touch based
* browsers always use the {@link MultiSelectMode#SIMPLE}.
*
* @param mode
* The select mode of the table

読み込み中…
キャンセル
保存