コード例 #1
0
 @UiHandler("ignoreButton")
 public void onIgnoreButtonClick(final ClickEvent e) {
   if (ignoreCommand != null) {
     ignoreCommand.execute();
   }
   panel.hide();
 }
コード例 #2
0
 @UiHandler("actionButton")
 public void onActionButtonClick(final ClickEvent e) {
   if (actionCommand != null) {
     actionCommand.execute();
   }
   panel.hide();
 }
コード例 #3
0
 @Inject
 public CandidateGeneListView(
     Binder binder,
     final CustomDataGridResources dataGridResources,
     final PlaceManager placeManager,
     final CandidateGeneListEditDriver candidateGeneListEditDriver,
     final AvatarNameCell avatarNameCell) {
   this.placeManager = placeManager;
   this.avatarNameCell = avatarNameCell;
   dataGrid =
       new DataGrid<>(50, dataGridResources, new EntityProxyKeyProvider<CandidateGeneListProxy>());
   initCellTable();
   widget = binder.createAndBindUi(this);
   bindSlot(FacetSearchPresenterWidget.SLOT_CONTENT, facetContainer);
   this.candidateGeneListEditDriver = candidateGeneListEditDriver;
   this.candidateGeneListEditDriver.initialize(candidateGeneListEditor);
   pager.setDisplay(dataGrid);
   editPopup.setDataBackdrop(ModalBackdrop.STATIC);
   editPopup.setClosable(true);
   editPopup.setFade(true);
   editPopup.setTitle("Create Candidate Gene list");
   Button cancelEditBtn =
       new Button(
           "Cancel",
           new ClickHandler() {
             @Override
             public void onClick(ClickEvent event) {
               getUiHandlers().onCancel();
             }
           });
   cancelEditBtn.setType(ButtonType.DEFAULT);
   Button saveEditBtn =
       new Button(
           "Save",
           new ClickHandler() {
             @Override
             public void onClick(ClickEvent event) {
               getUiHandlers().onSave();
             }
           });
   saveEditBtn.setType(ButtonType.PRIMARY);
   ModalFooter footer = new ModalFooter();
   footer.add(cancelEditBtn);
   footer.add(saveEditBtn);
   ModalBody modalBody = new ModalBody();
   modalBody.add(candidateGeneListEditor);
   editPopup.add(modalBody);
   editPopup.add(footer);
 }
コード例 #4
0
 @Override
 public void showEditPopup(boolean show) {
   if (show) editPopup.show();
   else editPopup.hide();
 }