litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/gwtUITrimmed/src/com/gwtmobile/ui/kitchensink/client/panel/ListPanelPage.java
|
@@ -16,38 +16,35 @@ |
16 |
16 |
|
|
17 |
17 |
|
package com.gwtmobile.ui.kitchensink.client.panel; |
18 |
18 |
|
|
19 |
|
- |
import com.google.gwt.core.client.GWT; |
20 |
|
- |
import com.google.gwt.uibinder.client.UiBinder; |
21 |
|
- |
import com.google.gwt.uibinder.client.UiField; |
22 |
|
- |
import com.google.gwt.uibinder.client.UiHandler; |
23 |
|
- |
import com.google.gwt.user.client.Window; |
24 |
|
- |
import com.google.gwt.user.client.ui.Widget; |
25 |
|
- |
import com.gwtmobile.ui.client.event.SelectionChangedEvent; |
26 |
|
- |
import com.gwtmobile.ui.client.page.Page; |
27 |
|
- |
import com.gwtmobile.ui.client.widgets.ListPanel; |
28 |
|
- |
|
29 |
|
- |
public class ListPanelPage extends Page{ |
30 |
|
- |
|
31 |
|
- |
@UiField ListPanel list1, list2; |
32 |
|
- |
|
33 |
|
- |
private static ListPanelPageUiBinder uiBinder = GWT |
34 |
|
- |
.create(ListPanelPageUiBinder.class); |
35 |
|
- |
|
36 |
|
- |
interface ListPanelPageUiBinder extends UiBinder<Widget, ListPanelPage> { |
37 |
|
- |
} |
38 |
|
- |
|
39 |
|
- |
public ListPanelPage() { |
40 |
|
- |
initWidget(uiBinder.createAndBindUi(this)); |
41 |
|
- |
} |
|
19 |
+ |
import com.google.gwt.core.client.*; |
|
20 |
+ |
import com.google.gwt.uibinder.client.*; |
|
21 |
+ |
import com.google.gwt.user.client.*; |
|
22 |
+ |
import com.google.gwt.user.client.ui.*; |
|
23 |
+ |
import com.gwtmobile.ui.client.event.*; |
|
24 |
+ |
import com.gwtmobile.ui.client.page.*; |
|
25 |
+ |
import com.gwtmobile.ui.client.widgets.*; |
|
26 |
+ |
|
|
27 |
+ |
public class ListPanelPage extends Page { |
|
28 |
+ |
|
|
29 |
+ |
@UiField ListPanel list1, list2; |
|
30 |
+ |
|
|
31 |
+ |
private static ListPanelPageUiBinder uiBinder = GWT |
|
32 |
+ |
.create( ListPanelPageUiBinder.class ); |
|
33 |
+ |
|
|
34 |
+ |
interface ListPanelPageUiBinder extends UiBinder<Widget, ListPanelPage> { |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
public ListPanelPage() { |
|
38 |
+ |
initWidget( uiBinder.createAndBindUi( this ) ); |
|
39 |
+ |
} |
42 |
40 |
|
|
43 |
41 |
|
@UiHandler("list1") |
44 |
|
- |
void onList1SelectionChanged(SelectionChangedEvent e) { |
45 |
|
- |
Window.alert("You select item " + e.getSelection() + " on list 1."); |
|
42 |
+ |
void onList1SelectionChanged( SelectionChangedEvent e ) { |
|
43 |
+ |
Window.alert( "You select item " + e.getSelection() + " on list 1." ); |
46 |
44 |
|
} |
47 |
45 |
|
|
48 |
46 |
|
@UiHandler("list2") |
49 |
|
- |
void onList2SelectionChanged(SelectionChangedEvent e) { |
50 |
|
- |
Window.alert("You select item " + e.getSelection() + " on list 2."); |
|
47 |
+ |
void onList2SelectionChanged( SelectionChangedEvent e ) { |
|
48 |
+ |
Window.alert( "You select item " + e.getSelection() + " on list 2." ); |
51 |
49 |
|
} |
52 |
|
- |
|
53 |
50 |
|
} |