com.allen_sauer.gwt.dnd.demo.client.example.flextable
Class FlexTableUtil
java.lang.Object
com.allen_sauer.gwt.dnd.demo.client.example.flextable.FlexTableUtil
public class FlexTableUtil
- extends java.lang.Object
Utility class to manipulate FlexTables.
|
Method Summary |
static void |
copyRow(com.google.gwt.user.client.ui.FlexTable sourceTable,
com.google.gwt.user.client.ui.FlexTable targetTable,
int sourceRow,
int targetRow)
Copy an entire FlexTable from one FlexTable to another. |
static void |
moveRow(com.google.gwt.user.client.ui.FlexTable sourceTable,
com.google.gwt.user.client.ui.FlexTable targetTable,
int sourceRow,
int targetRow)
Move an entire FlexTable from one FlexTable to another. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlexTableUtil
public FlexTableUtil()
copyRow
public static void copyRow(com.google.gwt.user.client.ui.FlexTable sourceTable,
com.google.gwt.user.client.ui.FlexTable targetTable,
int sourceRow,
int targetRow)
- Copy an entire FlexTable from one FlexTable to another. Each element is copied by creating a
new
HTML widget by calling HTMLTable.getHTML(int, int) on the source table.
- Parameters:
sourceTable - the FlexTable to copy a row fromtargetTable - the FlexTable to copy a row tosourceRow - the index of the source rowtargetRow - the index before which to insert the copied row
moveRow
public static void moveRow(com.google.gwt.user.client.ui.FlexTable sourceTable,
com.google.gwt.user.client.ui.FlexTable targetTable,
int sourceRow,
int targetRow)
- Move an entire FlexTable from one FlexTable to another. Elements are moved by attempting to
call
HTMLTable.getWidget(int, int) on the source table. If no widget is found (because
null is returned), a new HTML is created instead by calling
HTMLTable.getHTML(int, int) on the source table.
- Parameters:
sourceTable - the FlexTable to move a row fromtargetTable - the FlexTable to move a row tosourceRow - the index of the source rowtargetRow - the index before which to insert the moved row