private void resetPanel() {
   player1Box.setSelectedIndex(0);
   player2Box.setSelectedIndex(0);
   sportBox.setSelectedIndex(0);
   oneSet.setValue(true);
   setScoreBoxes(1);
 }
예제 #2
0
 @SuppressWarnings("deprecation")
 private void showCreationDate(Date d) {
   // TODO(jgw): Use non-deprecated date methods for this.
   dateYear.setSelectedIndex(d.getYear() - 100);
   dateMonth.setSelectedIndex(d.getMonth());
   dateDay.setSelectedIndex(d.getDate() - 1);
 }
 public void edit(RecipeTO pRecipe) {
   nameTextBox.setText(pRecipe.getName());
   nameTextBox.setReadOnly(false);
   for (int i = 0; i < category.getItemCount(); i++) {
     if (pRecipe.getCategory().equals(category.getItemText(i))) {
       category.setSelectedIndex(i);
     }
   }
   for (int i = 0; i < cuisine.getItemCount(); i++) {
     if (pRecipe.getCuisine().equals(cuisine.getItemText(i))) {
       cuisine.setSelectedIndex(i);
     }
   }
   for (int i = 0; i < occasion.getItemCount(); i++) {
     if (pRecipe.getOccasion().equals(occasion.getItemText(i))) {
       occasion.setSelectedIndex(i);
     }
   }
   for (int i = 0; i < serves.getItemCount(); i++) {
     if (pRecipe.getServes().equals(serves.getItemText(i))) {
       serves.setSelectedIndex(i);
     }
   }
   ingredients.setText(pRecipe.getIngredients());
   directions.setText(pRecipe.getDirections());
 }
예제 #4
0
  @Inject
  public MainView(IndexDisplayer indexDisplayer) {

    c.setStyleName("tab");
    c.addStyleName("first");
    p.setStyleName("tab");

    message.setStyleName("messageBar");
    message.setVisible(false);

    int i;
    for (i = 0; i < 5; i++) {
      startIndex.addItem(indexDisplayer.getDisplay(i), Integer.toString(i));
    }
    for (i = 5; i < 10; i++) {
      lastIndex.addItem(indexDisplayer.getDisplay(i), Integer.toString(i));
    }

    startIndex.setSelectedIndex(0);
    lastIndex.setSelectedIndex(0);

    HorizontalPanel hp = new HorizontalPanel();
    hp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    hp.add(new Label("Start Index: "));
    hp.add(startIndex);
    hp.add(new Label("End Index: "));
    hp.add(lastIndex);
    hp.setSpacing(5);

    bar.add(c);
    bar.add(p);
    bar.setStyleName("tabs");

    mainPanel = new VerticalPanel();
    mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    clearHistory.setStyleName("link");
    mainPanel.add(clearHistory);

    mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    mainPanel.add(hp);
    mainPanel.add(bar);
    mainPanel.add(message);
    mainPanel.add(bodyContainer);
    mainPanel.add(filter);
    mainPanel.add(filterActivate);
    mainPanel.add(filterModule);
    mainPanel.add(hasBeenThere);
    mainPanel.add(broadcastInfo);
    mainPanel.add(showStatus);
    mainPanel.add(activateStatus);
    wait.add(new Label("Wait"));

    initWidget(mainPanel);

    bodyContainer.setStyleName("body");
    bodyContainer.setWidget(new Label("Click on one of the tab to start."));
  }
예제 #5
0
 public void reset() {
   for (int i = 0; i < widget.getItemCount(); i++) {
     widget.setItemSelected(i, false);
   }
   widget.setSelectedIndex(-1);
   if (widget.getVisibleItemCount() <= 1) {
     widget.setSelectedIndex(0);
     widget.setItemSelected(0, true);
   }
 }
예제 #6
0
  public LayerMapView(DataSetLayerOverview dataSetLayerOverview) {
    String[] chromosomes =
        new String[] {
          "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16",
          "17", "18", "19", "X"
        };
    List<String> validNames = Arrays.asList(new String[] {"positionPeakBP", "geneStartBP"});
    selectedPositionColumnX = validNames.get(0);
    selectedPositionColumnY = validNames.get(1);

    expressionQtlTrackX =
        new ExpressionQtlTrack("eQTL", dataSetLayerOverview.layerKey, selectedPositionColumnX);
    expressionQtlTrackY =
        new ExpressionQtlTrack("eQTL", dataSetLayerOverview.layerKey, selectedPositionColumnY);

    final GenomeDisplayTrack<?>[] tracksX =
        new GenomeDisplayTrack[] {
          new BasepairPositionTrack(),
          new ChromosomeBandTrack(),
          new ContigTrack(),
          new TranscriptTrack(),
          expressionQtlTrackX
        };
    this.scrollerX = new GenomeDisplayScroller(tracksX, chromosomes[0], false, "scrollX");

    final GenomeDisplayTrack<?>[] tracksY =
        new GenomeDisplayTrack[] {
          new BasepairPositionTrack(),
          new ChromosomeBandTrack(),
          new ContigTrack(),
          new TranscriptTrack(),
          expressionQtlTrackY
        };
    this.scrollerY = new GenomeDisplayScroller(tracksY, chromosomes[0], true, "scrollY");

    contents = new GenomeDisplayScroller2D(dataSetLayerOverview, "scroll2d");
    contents.selectedPositionColumnX = selectedPositionColumnX;
    contents.selectedPositionColumnY = selectedPositionColumnY;

    initWidget(uiBinder.createAndBindUi(this));

    for (String string : chromosomes) {
      if (string.equals("X")) chromosome.addItem("X Chromosome", string);
      else chromosome.addItem("Chromosome " + string, string);
    }

    for (String columName : dataSetLayerOverview.columns) {
      if (validNames.contains(columName)) {
        positionColumnX.addItem(columName);
        positionColumnY.addItem(columName);
      }
    }
    positionColumnX.setSelectedIndex(0);
    positionColumnY.setSelectedIndex(1);
  }
예제 #7
0
  public void fillForm(Member member) {

    header.setText("Mitglied bearbeiten");
    importantDisclosurePanel.setOpen(true);
    additionalDisclosurePanel.setOpen(true);
    forenameTextBox.setText(member.getForename());
    surnameTextBox.setText(member.getSurname());
    barcodeTextBox.setText("" + member.getBarcodeID());
    createMemberPanel.remove(barcodeInputPanel);
    streetTextBox.setText(member.getStreet());
    zipcodeTextBox.setText("" + member.getZipcode());
    cityTextBox.setText(member.getCity());
    birthTextBox1.setSelectedIndex(Integer.parseInt("" + member.getBirthDay()));
    birthTextBox2.setSelectedIndex(Integer.parseInt("" + member.getBirthMonth()));
    int temp = Integer.parseInt("" + (member.getBirthYear())) - 2009;
    birthTextBox3.setSelectedIndex(-temp);
    phoneTextBox.setText(member.getPhone());
    // TODO
    for (int i = 0; i < beltsizeListBox.getItemCount(); i++) {
      if (beltsizeListBox.getItemText(i).equals(member.getBeltsize())) {
        beltsizeListBox.setSelectedIndex(i);
      }
    }
    // beltsizeListBox.setSelectedIndex(i);
    // beltsizeTextBox.setText(member.getBeltsize());
    mobilephoneTextBox.setText(member.getMobilephone());
    faxTextBox.setText(member.getFax());
    emailTextBox.setText(member.getEmail());
    homepageTextBox.setText(member.getHomepage());
    diseasesTextBox.setText(member.getDiseases());
    noteTextBox.setText(member.getNote());
    imageUrl = member.getPicture();

    if (member.getAccountForename().equals(member.getForename())) {
      accountOwnerForenameTextBox.setText(constants.likeAbove());
      accountOwnerForenameTextBox.setReadOnly(true);
      likeAbove.setValue(true);
    } else {
      accountOwnerForenameTextBox.setText(member.getAccountForename());
    }

    if (member.getAccountSurname().equals(member.getSurname())) {
      accountOwnerSurnameTextBox.setText(constants.likeAbove());
      accountOwnerSurnameTextBox.setReadOnly(true);
      likeAbove2.setValue(true);
    } else {
      accountOwnerSurnameTextBox.setText(member.getAccountSurname());
    }

    accountNumberTextBox.setText(member.getAccountNumber());
    bankNameTextBox.setText(member.getBankName());
    bankNumberTextBox.setText(member.getBankNumber());
  }
 public void init() {
   currentId = null;
   trustBox.setSelectedIndex(0);
   descBox.setText("");
   defaultDescBox.setText("");
   accountCredIdBox.setText("");
   accountCredNameBox.setSelectedIndex(0);
   accountDebIdBox.setText("");
   accountDebNameBox.setSelectedIndex(0);
   actionClubBox.setSelectedIndex(0);
   actionTrustBox.setSelectedIndex(0);
 }
예제 #9
0
  private void displayReport() {
    errorText.setInnerText("");
    purposeText.setText(report.getPurpose());
    notesText.setText(report.getNotes());
    String department = report.getDepartment();
    departmentList.setSelectedIndex(0);
    for (int i = 0; i < Expenses.DEPARTMENTS.length; i++) {
      if (Expenses.DEPARTMENTS[i].equals(department)) {
        departmentList.setSelectedIndex(i);
      }
    }

    Date d = report.getCreated();
    showCreationDate(d);
  }
예제 #10
0
  private void makeWidget(final FlexTable table, final int row, final int col) {
    if (row == curRow && col == curCol) return;
    if (row >= 1) {
      curRow = row;
      curCol = col;
      if (col == 3 || col == 4) {
        TextBox t = new TextBox();
        t.setText(table.getText(row, col));
        table.setWidget(row, col, t);
        t.setFocus(true);
        t.addKeyboardListener(
            new KeyboardListener() {

              public void onKeyDown(Widget sender, char keyCode, int modifiers) {}

              public void onKeyPress(Widget sender, char keyCode, int modifiers) {
                TextBox t = (TextBox) sender;
                if (keyCode == (char) KeyboardListener.KEY_ENTER) {
                  clearCurrentSelection(table, -11, -11);
                }
              }

              public void onKeyUp(Widget sender, char keyCode, int modifiers) {}
            });
      } else if (col == 2 && !table.getText(row, col).equals("Primary")) {
        String curValue = table.getText(row, col);
        ListBox l = new ListBox();
        l.addItem("Category");
        if (curValue.equals("Category")) l.setSelectedIndex(0);
        l.addItem("Description");
        if (curValue.equals("Description")) l.setSelectedIndex(1);
        l.addItem("Numerical");
        if (curValue.equals("Numerical")) l.setSelectedIndex(2);
        l.addItem("Protected");
        if (curValue.equals("Protected")) l.setSelectedIndex(3);
        l.addItem("Tag");
        if (curValue.equals("Tag")) l.setSelectedIndex(4);
        l.addChangeListener(
            new ChangeListener() {

              public void onChange(Widget sender) {
                clearCurrentSelection(table, -11, -11);
              }
            });
        table.setWidget(row, col, l);
      }
    }
  }
예제 #11
0
  @Test
  public void checkSelected() {
    ListBox listBox = getListBox();

    listBox.setSelectedIndex(1);
    Assert.assertEquals("item 1", listBox.getItemText(listBox.getSelectedIndex()));
  }
  /** Pops up the fact selector. */
  @Override
  protected void showFactTypeSelector(final Widget w) {
    final ListBox box = new ListBox();
    AsyncPackageDataModelOracle oracle = this.getModeller().getDataModelOracle();
    String[] facts = oracle.getFactTypes();

    box.addItem(GuidedRuleEditorResources.CONSTANTS.Choose());

    for (int i = 0; i < facts.length; i++) {
      box.addItem(facts[i]);
    }
    box.setSelectedIndex(0);

    final FormStylePopup popup =
        new FormStylePopup(GuidedRuleEditorResources.CONSTANTS.NewFactPattern());
    popup.addAttribute(GuidedRuleEditorResources.CONSTANTS.chooseFactType(), box);
    box.addChangeHandler(
        new ChangeHandler() {

          public void onChange(ChangeEvent event) {
            pattern.setFactPattern(new FactPattern(box.getItemText(box.getSelectedIndex())));
            setModified(true);
            getModeller().refreshWidget();
            popup.hide();
          }
        });
    popup.show();
  }
예제 #13
0
  protected void showAddFieldPopup(ClickEvent w) {
    final DataModelOracle completions = this.getModeller().getSuggestionCompletions();
    final FormStylePopup popup =
        new FormStylePopup(
            GuidedRuleEditorImages508.INSTANCE.Wizard(), Constants.INSTANCE.AddAField());

    final ListBox box = new ListBox();
    box.addItem("...");

    for (int i = 0; i < fieldCompletions.length; i++) {
      box.addItem(fieldCompletions[i]);
    }

    box.setSelectedIndex(0);

    popup.addAttribute(Constants.INSTANCE.AddField(), box);
    box.addChangeHandler(
        new ChangeHandler() {

          public void onChange(ChangeEvent event) {
            String fieldName = box.getItemText(box.getSelectedIndex());

            String fieldType = completions.getFieldType(variableClass, fieldName);
            model.addFieldValue(new ActionFieldValue(fieldName, "", fieldType));
            setModified(true);
            getModeller().refreshWidget();
            popup.hide();
          }
        });

    popup.show();
  }
예제 #14
0
  public DeviceDiskViewImpl() {
    initWidget(uiBinder.createAndBindUi(this));

    for (String pageSize : DevicePageSize.getPageSizeList()) {
      pageSizeList.addItem(pageSize);
    }
    pageSizeList.setSelectedIndex(DevicePageSize.getPageSizeSelectedIndex());
    pageSizeList.addChangeHandler(
        new ChangeHandler() {

          @Override
          public void onChange(ChangeEvent event) {
            DevicePageSize.setPageSizeSelectedIndex(pageSizeList.getSelectedIndex());
            if (table != null) {
              table.setPageSize(DevicePageSize.getPageSize());
            }
          }
        });

    selection = new MultiSelectionModel<SearchResultRow>(SearchResultRow.KEY_PROVIDER);
    selection.addSelectionChangeHandler(
        new SelectionChangeEvent.Handler() {

          @Override
          public void onSelectionChange(SelectionChangeEvent event) {
            updateSearchResultButtonStatus();
            presenter.onSelectionChange(selection.getSelectedSet());
          }
        });
    updateSearchResultButtonStatus();

    popup.setAutoHideEnabled(true);
  }
  public WorkItemFloatParameterWidget(
      PortableFloatParameterDefinition ppd, IBindingProvider bindingProvider, boolean isReadOnly) {
    super(ppd, bindingProvider);
    this.parameterName.setText(ppd.getName());
    this.parameterEditor.setEnabled(!isReadOnly);

    // Setup widget to select a literal value
    if (ppd.getValue() != null) {
      this.parameterEditor.setText(Float.toString(ppd.getValue()));
    }

    // Setup widget to use bindings
    Set<String> bindings = bindingProvider.getBindings(ppd.getClassName());
    if (bindings.size() > 0) {
      lstAvailableBindings.clear();
      lstAvailableBindings.addItem(CommonConstants.INSTANCE.Choose());
      lstAvailableBindings.setEnabled(true && !isReadOnly);
      lstAvailableBindings.setVisible(true);
      int selectedIndex = 0;
      for (String binding : bindings) {
        lstAvailableBindings.addItem(binding);
        if (binding.equals(ppd.getBinding())) {
          selectedIndex = lstAvailableBindings.getItemCount() - 1;
        }
      }
      lstAvailableBindings.setSelectedIndex(selectedIndex);
      parameterEditor.setEnabled(selectedIndex == 0 && !isReadOnly);
    }
  }
 public void setPoolSize(int poolSize) {
   if (poolSize < 2 || poolSize > 3) {
     Logger.debug("Incorrect poolSize " + poolSize);
     lbPoolSize.setSelectedIndex(1);
     return;
   }
   switch (poolSize) {
     case 2:
       lbPoolSize.setSelectedIndex(0);
       break;
     case 3:
       lbPoolSize.setSelectedIndex(1);
       break;
   }
   updateControls();
 }
  /** Pops up the fact selector. */
  protected void showFactTypeSelector(final Widget w) {
    PackageDataModelOracle completions = this.getModeller().getSuggestionCompletions();
    final ListBox box = new ListBox();
    String[] facts = completions.getFactTypes();

    box.addItem(Constants.INSTANCE.Choose());

    for (int i = 0; i < facts.length; i++) {
      box.addItem(facts[i]);
    }
    box.setSelectedIndex(0);

    final FormStylePopup popup = new FormStylePopup();
    popup.setTitle(Constants.INSTANCE.NewFactPattern());
    popup.addAttribute(Constants.INSTANCE.chooseFactType(), box);
    box.addChangeHandler(
        new ChangeHandler() {

          public void onChange(ChangeEvent event) {
            pattern.setFactPattern(new FactPattern(box.getItemText(box.getSelectedIndex())));
            setModified(true);
            getModeller().refreshWidget();
            popup.hide();
          }
        });

    popup.show();
  }
 public void selectInListBox(String index, String objectLocalization) {
   ListBox listBox = getObject(ListBox.class, objectLocalization);
   checkWidgetVisibleAndEnable(listBox, objectLocalization);
   listBox.setSelectedIndex(Integer.parseInt(index));
   WidgetUtils.click(listBox);
   WidgetUtils.change(listBox);
 }
예제 #19
0
  @Override
  public void showSearchResult(SearchResult result) {
    if (table == null) {
      table = new DeviceSearchResultTable(result.getDescs(), selection);
      table.setRangeChangeHandler(presenter);
      table.setClickHandler(presenter);
      table.load();
      resultPanel.add(table);
      final DeviceColumnPopupPanel panel =
          new DeviceColumnPopupPanel(
              new DeviceColumnPopupPanel.Presenter() {

                @Override
                public void onValueChange(int column, boolean value) {
                  if (table != null) {
                    table.setVisible(column, value);
                  }
                }
              });
      columnButton.addClickHandler(
          new ClickHandler() {

            @Override
            public void onClick(ClickEvent event) {
              panel.popup(columnButton);
            }
          });
      initColumnPanel(result.getDescs(), panel);
    }
    table.setData(result);
    if (table.getPageSize() != DevicePageSize.getPageSize()) {
      table.setPageSize(DevicePageSize.getPageSize());
      pageSizeList.setSelectedIndex(DevicePageSize.getPageSizeSelectedIndex());
    }
  }
예제 #20
0
 private void selectFirstConfig() {
   if (isConfigListEmpty()) {
     disableDeleteButton();
   } else {
     enableDeleteButton();
     configList.setSelectedIndex(0);
   }
 }
예제 #21
0
 /** reset */
 public void reset() {
   selectedRow = -1;
   table.removeAllRows();
   name.setText("");
   importButton.setEnabled(false);
   typeList.setSelectedIndex(0);
   name.setFocus(true);
 }
예제 #22
0
 private void setValueType(VariableDto variableDto) {
   for (int i = 0; i < valueType.getItemCount(); i++) {
     valueType.setItemSelected(i, valueType.getValue(i).equals(variableDto.getValueType()));
   }
   if (valueType.getSelectedIndex() == -1) {
     valueType.setSelectedIndex(0);
   }
 }
예제 #23
0
  /** Pops up the fact selector. */
  protected void showFactTypeSelector(final Widget w) {
    final ListBox box = new ListBox();
    DataModelOracle completions = this.getModeller().getSuggestionCompletions();
    String[] facts = completions.getFactTypes();

    box.addItem(Constants.INSTANCE.Choose());
    for (int i = 0; i < facts.length; i++) {
      box.addItem(facts[i]);
    }
    box.setSelectedIndex(0);

    final FormStylePopup popup = new FormStylePopup();
    popup.setTitle(Constants.INSTANCE.NewFactPattern());
    popup.addAttribute(Constants.INSTANCE.chooseFactType(), box);
    box.addChangeHandler(
        new ChangeHandler() {

          public void onChange(ChangeEvent event) {
            pattern.addFactPattern(new FactPattern(box.getItemText(box.getSelectedIndex())));
            setModified(true);
            getModeller().refreshWidget();
            popup.hide();
          }
        });

    final Button fromBtn = new Button(HumanReadableConstants.INSTANCE.From());
    final Button fromAccumulateBtn = new Button(HumanReadableConstants.INSTANCE.FromAccumulate());
    final Button fromCollectBtn = new Button(HumanReadableConstants.INSTANCE.FromCollect());
    ClickHandler btnsClickHandler =
        new ClickHandler() {

          public void onClick(ClickEvent event) {
            Widget sender = (Widget) event.getSource();
            if (sender == fromBtn) {
              pattern.addFactPattern(new FromCompositeFactPattern());
            } else if (sender == fromAccumulateBtn) {
              pattern.addFactPattern(new FromAccumulateCompositeFactPattern());
            } else if (sender == fromCollectBtn) {
              pattern.addFactPattern(new FromCollectCompositeFactPattern());
            } else {
              throw new IllegalArgumentException("Unknown sender: " + sender);
            }

            setModified(true);
            getModeller().refreshWidget();
            popup.hide();
          }
        };

    fromBtn.addClickHandler(btnsClickHandler);
    fromAccumulateBtn.addClickHandler(btnsClickHandler);
    fromCollectBtn.addClickHandler(btnsClickHandler);
    popup.addAttribute("", fromBtn);
    popup.addAttribute("", fromAccumulateBtn);
    popup.addAttribute("", fromCollectBtn);

    popup.show();
  }
예제 #24
0
 public String removeSelected() {
   int idx = listBox.getSelectedIndex();
   String value = listBox.getItemText(idx);
   listBox.removeItem(idx);
   if (listBox.getItemCount() > 0) {
     listBox.setSelectedIndex(0);
   }
   return value;
 }
예제 #25
0
  private void updateSortMode() {
    sortMode.clear();
    for (SortMode mode : supportedModes) {
      sortMode.addItem(app.getPlain(mode.toString()));
    }

    SortMode selectedMode = app.getAlgebraView().getTreeMode();
    sortMode.setSelectedIndex(supportedModes.indexOf(selectedMode));
  }
예제 #26
0
 @Override
 public void setValue(List<String> value) {
   Set<String> sortedChoices = new TreeSet<String>(value);
   listBox.clear();
   for (String c : sortedChoices) {
     listBox.addItem(c);
   }
   listBox.setSelectedIndex(-1);
 }
  /**
   * Set selected by value.
   *
   * @param selectedValue the selected value.
   */
  private void setSelectedByValue(final String selectedValue) {
    for (int i = 0; i < streamOptions.getItemCount(); i++) {
      if (streamOptions.getValue(i).equals(selectedValue)) {
        streamOptions.setSelectedIndex(i);
      }
    }

    scopes.setVisible(hasStreamScopes(selectedValue));
  }
예제 #28
0
 public void setScheduleType(ScheduleType scheduleType) {
   int itemCount = scheduleCombo.getItemCount();
   for (int i = 0; i < itemCount; i++) {
     String itemText = scheduleCombo.getItemText(i);
     if (itemText.equals(scheduleType.toString())) {
       scheduleCombo.setSelectedIndex(i);
     }
   }
   selectScheduleTypeEditor(scheduleType);
 }
  public TournamentPoolPanel() {
    super("Pooler");

    poolCounts = new int[3];
    lblPoolCountTotal = new Label();
    lblPoolCount2 = new Label();
    lblPoolCount3 = new Label();
    lblPoolCount4 = new Label();

    poolGrid = new FlexTable();

    poolGrid.setText(0, 0, "Poolstorlek");
    lbPoolSize = new ListBox();
    lbPoolSize.addItem("2", "2");
    lbPoolSize.addItem("3", "3");
    lbPoolSize.setSelectedIndex(1);
    lbPoolSize.addChangeListener(
        new ChangeListener() {

          public void onChange(Widget sender) {
            updateControls();
          }
        });
    poolGrid.setWidget(0, 1, lbPoolSize);
    poolGrid.getFlexCellFormatter().setColSpan(0, 1, 3);

    poolGrid.setText(1, 0, "Vid udda deltagare");
    FlowPanel prefersLargerPanel = new FlowPanel();
    rbPreferLarger = new RadioButton("rePreferringLarger", "Föredrar större pooler");
    rbPreferLarger.setChecked(true);
    rbPreferSmaller = new RadioButton("rePreferringLarger", "Föredrar mindre pooler");
    prefersLargerPanel.add(rbPreferLarger);
    prefersLargerPanel.add(rbPreferSmaller);
    poolGrid.setWidget(1, 1, prefersLargerPanel);
    poolGrid.getFlexCellFormatter().setColSpan(1, 1, 3);

    poolGrid.setText(2, 0, "Antal pooler");
    poolGrid.getFlexCellFormatter().setColSpan(2, 0, 4);

    poolGrid.setText(3, 0, "Totalt");
    poolGrid.setText(3, 1, "2-man");
    poolGrid.setText(3, 2, "3-man");
    poolGrid.setText(3, 3, "4-man");
    poolGrid.setWidget(4, 0, lblPoolCountTotal);
    poolGrid.setWidget(4, 1, lblPoolCount2);
    poolGrid.setWidget(4, 2, lblPoolCount3);
    poolGrid.setWidget(4, 3, lblPoolCount4);

    for (int i = 0; i < 3; ++i) {
      poolGrid.getColumnFormatter().setWidth(i, "25%");
    }

    add(poolGrid);
  }
  @Override
  public void createFilterWidgets() {

    castb_patient_identifiantBox = new TextBox();
    castb_patient_identifiantFilterBox = new ImogFilterBox(castb_patient_identifiantBox);
    castb_patient_identifiantFilterBox.setFilterLabel(NLS.constants().patient_field_identifiant());
    addTableFilter(castb_patient_identifiantFilterBox);
    castb_patient_nomBox = new TextBox();
    castb_patient_nomFilterBox = new ImogFilterBox(castb_patient_nomBox);
    castb_patient_nomFilterBox.setFilterLabel(NLS.constants().patient_field_nom());
    addTableFilter(castb_patient_nomFilterBox);

    dateExamenAfterBox = new DateBox();
    dateExamenAfterBox.setFormat(new SimpleImogDateFormat(DateUtil.getDateFormater()));
    dateExamenAfterFilterBox = new ImogFilterBox(dateExamenAfterBox);
    dateExamenAfterFilterBox.setFilterLabel(
        NLS.constants().examenATB_field_dateExamen()
            + BaseNLS.constants().search_operator_superior());
    addTableFilter(dateExamenAfterFilterBox);

    dateExamenBeforeBox = new DateBox();
    dateExamenBeforeBox.setFormat(new SimpleImogDateFormat(DateUtil.getDateFormater()));
    dateExamenBeforeFilterBox = new ImogFilterBox(dateExamenBeforeBox);
    dateExamenBeforeFilterBox.setFilterLabel(
        NLS.constants().examenATB_field_dateExamen()
            + BaseNLS.constants().search_operator_inferior());
    addTableFilter(dateExamenBeforeFilterBox);

    raisonDepistageBox = new ListBox();
    raisonDepistageBox.addItem("", BaseNLS.constants().enumeration_unknown());
    raisonDepistageBox.setSelectedIndex(0);
    raisonDepistageBox.addItem(
        NLS.constants().examenATB_raisonDepistage_diagnostic_option(),
        EpicamEnumConstants.EXAMENATB_RAISONDEPISTAGE_DIAGNOSTIC);
    raisonDepistageBox.addItem(
        NLS.constants().examenATB_raisonDepistage_suivi_option(),
        EpicamEnumConstants.EXAMENATB_RAISONDEPISTAGE_SUIVI);
    raisonDepistageFilterBox = new ImogFilterBox(raisonDepistageBox);
    raisonDepistageFilterBox.setFilterLabel(NLS.constants().examenATB_field_raisonDepistage());
    addTableFilter(raisonDepistageFilterBox);

    resultatBox = new TextBox();
    resultatFilterBox = new ImogFilterBox(resultatBox);
    resultatFilterBox.setFilterLabel(NLS.constants().examenATB_field_resultat());
    addTableFilter(resultatFilterBox);

    deletedEntityBox = new ImogBooleanAsRadio();
    deletedEntityBox.isStrict(true);
    deletedEntityBox.setEnabled(true);
    deletedEntityBox.setValue(false);
    deletedEntityBoxFilterBox = new ImogFilterBox(deletedEntityBox);
    deletedEntityBoxFilterBox.setFilterLabel(BaseNLS.constants().entity_field_deleted());
    addTableFilter(deletedEntityBoxFilterBox);
  }