@UiHandler("editFolderSaveButton") public void clickedOnEditFolderSaveButton(ClickEvent event) { titleAlertMessageLbl.setVisible(false); folderTitle.switchToLabel(); // editFolderSaveButton.getElement().getStyle().setDisplay(Display.NONE); // editFolderSaveButtonCancel.getElement().getStyle().setDisplay(Display.NONE); }
@UiHandler("editFolderSaveButtonCancel") public void clickedOnEditFolderSaveButtonCancelButton(ClickEvent event) { titleAlertMessageLbl.setVisible(false); titleAlertMessageLbl.addStyleName("titleAlertMessageDeActive"); titleAlertMessageLbl.removeStyleName("titleAlertMessageActive"); folderTitle.switchToTitleCancelLabel(); editFolderSaveButton.getElement().getStyle().setDisplay(Display.NONE); editFolderSaveButtonCancel.getElement().getStyle().setDisplay(Display.NONE); }
@Override public void reset() { super.reset(); this.collectionDo = null; collectionMetaDataSimPanel.clear(); editFolderDescSaveButton.getElement().getStyle().setDisplay(Display.NONE); editFolderDescSaveButtonCancel.getElement().getStyle().setDisplay(Display.NONE); editFolderSaveButton.getElement().getStyle().setDisplay(Display.NONE); editFolderSaveButtonCancel.getElement().getStyle().setDisplay(Display.NONE); folderDescription.switchToDescCancelLabel(); folderTitle.switchToTitleCancelLabel(); }
@Override public void setFolderMetaData(CollectionDo collectionDo) { folderTitle.setText(collectionDo.getTitle()); folderDescription.setText(collectionDo.getGoals()); foldersBreadCrumps.setText("Folders > " + collectionDo.getTitle()); }