Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3202)

Unified Diff: frontend/client/src/autotest/afe/CheckBoxPanelDisplay.java

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: frontend/client/src/autotest/afe/CheckBoxPanelDisplay.java
diff --git a/frontend/client/src/autotest/afe/CheckBoxPanelDisplay.java b/frontend/client/src/autotest/afe/CheckBoxPanelDisplay.java
new file mode 100644
index 0000000000000000000000000000000000000000..19618edd8f4f26dc6c9a1eaa6b9a12ea324bd2b6
--- /dev/null
+++ b/frontend/client/src/autotest/afe/CheckBoxPanelDisplay.java
@@ -0,0 +1,26 @@
+package autotest.afe;
+
+import autotest.afe.ICheckBox.CheckBoxImpl;
+
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.FlexTable;
+
+public class CheckBoxPanelDisplay extends Composite implements CheckBoxPanel.Display {
+ private int numColumns;
+ private FlexTable table = new FlexTable();
+
+ public CheckBoxPanelDisplay(int numColumns) {
+ this.numColumns = numColumns;
+ initWidget(table);
+ }
+
+ public ICheckBox generateCheckBox(int index) {
+ CheckBoxImpl checkbox = new CheckBoxImpl();
+
+ int row = index / numColumns;
+ int col = index % numColumns;
+ table.setWidget(row, col, checkbox);
+
+ return checkbox;
+ }
+}
« no previous file with comments | « frontend/client/src/autotest/afe/CheckBoxPanel.java ('k') | frontend/client/src/autotest/afe/ClassFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698