private void onTitleClicked() { if (expanded) { CloseEvent.fire(this, this); } else { OpenEvent.fire(this, this); } }
/** Show message dilaog. The dialog is centered and the screen is blocked for edition */ private void doShow() { try { dialogBox.center(); dialogBox.show(); okButton.setFocus(true); OpenEvent.fire(ConfirmDialog.this, ConfirmDialog.this); } catch (Exception e) { Crux.getErrorHandler().handleError(e); Screen.unblockToUser(); } }
/** * Sets the additional info visible if present. * * <p> * * @param visible <code>true</code> to show, <code>false</code> to hide */ public void setAdditionalInfoVisible(boolean visible) { if (m_openClose == null) { return; } if (visible) { addStyleName(CmsListItemWidget.OPENCLASS); m_openClose.setDown(true); OpenEvent.fire(this, this); } else { removeStyleName(CmsListItemWidget.OPENCLASS); m_openClose.setDown(false); CloseEvent.fire(this, this); } }
public void fireOpenEvent(Appointment appointment) { OpenEvent.fire(this, appointment); }