Subversion Repository Public Repository

litesoft

Diff Revisions 23 vs 49 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/ClickableColumnDefinition.java

Diff revisions: vs.
  @@ -1,3 +1,4 @@
1 + // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
1 2 package org.litesoft.GWT.client.widgets.datatables;
2 3
3 4 import com.google.gwt.gen2.table.client.*;
  @@ -9,27 +10,27 @@
9 10 {
10 11 this(null);
11 12 }
12 -
13 +
13 14 public ClickableColumnDefinition(String pHeaderText)
14 15 {
15 16 super(pHeaderText);
16 17 align(HasHorizontalAlignment.ALIGN_CENTER);
17 18 clickHandler(this);
18 19 }
19 -
20 +
20 21 @Override
21 22 public Object getCellValue(RowType pRowValue)
22 23 {
23 24 return createClickable(pRowValue);
24 25 }
25 -
26 +
26 27 @Override
27 28 public void execute(ColumnDefinition<RowType,?> colDef, int pRowIndex, RowType pRowValue)
28 29 {
29 30 execute(pRowIndex, pRowValue);
30 31 }
31 -
32 +
32 33 protected abstract UIObject createClickable(RowType pRowValue);
33 -
34 +
34 35 protected abstract void execute(int pRowIndex, RowType pRowValue);
35 36 }