diff options
Diffstat (limited to 'frontend/client/src/autotest/planner/TestPlannerUtils.java')
-rw-r--r-- | frontend/client/src/autotest/planner/TestPlannerUtils.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/frontend/client/src/autotest/planner/TestPlannerUtils.java b/frontend/client/src/autotest/planner/TestPlannerUtils.java deleted file mode 100644 index 6c9b6d14..00000000 --- a/frontend/client/src/autotest/planner/TestPlannerUtils.java +++ /dev/null @@ -1,37 +0,0 @@ -package autotest.planner; - -import com.google.gwt.gen2.table.client.FixedWidthFlexTable; -import com.google.gwt.gen2.table.client.FixedWidthGrid; -import com.google.gwt.gen2.table.client.ScrollTable; - -public class TestPlannerUtils { - - private static final int HEIGHT_FUDGE = 300; - - public static String getHeightParam(int windowHeight) { - return (windowHeight - HEIGHT_FUDGE) + "px"; - } - - public static void resizeScrollTable(ScrollTable scrollTable) { - resizeScrollTable(scrollTable, false); - } - - public static void resizeScrollTable(ScrollTable scrollTable, boolean hasSelectAllHeader) { - FixedWidthGrid dataTable = scrollTable.getDataTable(); - FixedWidthFlexTable header = scrollTable.getHeaderTable(); - - for (int column = 0; column < dataTable.getColumnCount(); column++) { - int headerColumn = column; - if (hasSelectAllHeader) { - headerColumn++; - } - - int width = Math.max( - dataTable.getIdealColumnWidth(column), - header.getIdealColumnWidth(headerColumn)); - - header.setColumnWidth(headerColumn, width); - dataTable.setColumnWidth(column, width); - } - } -} |