Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/JoinedTableController.java

Diff revisions: vs.
  @@ -1,16 +1,14 @@
1 1 // This Source Code is in the Public Domain per: http://unlicense.org
2 2 package org.litesoft.GWT.client.widgets.datatables;
3 3
4 - import java.util.*;
5 -
6 4 import com.google.gwt.event.logical.shared.*;
7 5
8 - public class JoinedTableController<T> implements SelectionHandler<T>
9 - {
6 + import java.util.*;
7 +
8 + public class JoinedTableController<T> implements SelectionHandler<T> {
10 9 private final JoinedTableTop<T> mTopTable;
11 10
12 - public JoinedTableController( JoinedTableTop<T> pTopTable, RegularTable<T> pBottomTable )
13 - {
11 + public JoinedTableController( JoinedTableTop<T> pTopTable, RegularTable<T> pBottomTable ) {
14 12 mTopTable = pTopTable;
15 13 pBottomTable.addSelectionHandler( this );
16 14 Set<T> selectedValues = pBottomTable.getSelectedValues();
  @@ -18,13 +16,11 @@
18 16 }
19 17
20 18 @Override
21 - public void onSelection( SelectionEvent<T> pEvent )
22 - {
19 + public void onSelection( SelectionEvent<T> pEvent ) {
23 20 onSelectionImpl( pEvent.getSelectedItem() );
24 21 }
25 22
26 - private void onSelectionImpl( T pSelectedItem )
27 - {
23 + private void onSelectionImpl( T pSelectedItem ) {
28 24 mTopTable.setValue( pSelectedItem );
29 25 }
30 26 }