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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 package autotest.afe;
2
3 import autotest.afe.ICheckBox.CheckBoxImpl;
4
5 import com.google.gwt.user.client.ui.Composite;
6 import com.google.gwt.user.client.ui.FlexTable;
7
8 public class CheckBoxPanelDisplay extends Composite implements CheckBoxPanel.Dis play {
9 private int numColumns;
10 private FlexTable table = new FlexTable();
11
12 public CheckBoxPanelDisplay(int numColumns) {
13 this.numColumns = numColumns;
14 initWidget(table);
15 }
16
17 public ICheckBox generateCheckBox(int index) {
18 CheckBoxImpl checkbox = new CheckBoxImpl();
19
20 int row = index / numColumns;
21 int col = index % numColumns;
22 table.setWidget(row, col, checkbox);
23
24 return checkbox;
25 }
26 }
OLDNEW
« 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