@Override
public void onClick(final PClickEvent clickEvent) {
optionsAnchor.removeStyleName(PonySDKTheme.HEADER_ACCOUNT_MENU_SELECTED);
popup.hide();
final POptionPane optionPane = POptionPane.showConfirmDialog(new PActionHandler() {
@Override
public void onAction(final PDialogBox dialogBox, final String option) {
if (POption.YES_OPTION.equals(option)) {
dialogBox.hide();
final UserLoggedOutEvent userLoggedOutEvent = new UserLoggedOutEvent(this, userLogged);
fireEvent(userLoggedOutEvent);
} else {
dialogBox.hide();
}
}
}, "Really logout user " + userLogged.getName() + " ?", "Sign out", POptionType.YES_NO_OPTION);
optionPane.getDialogBox().ensureDebugId("sign_out_dialog");
}
});
optionsAnchor.addClickHandler(new PClickHandler() {