| 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;
|
| + }
|
| +}
|
|
|