});
<BUG>}</BUG>
}
});
<BUG>popup.addDomHandler(SampleHeaderActivity.this, PClickEvent.TYPE);
popup.addCloseHandler(new PCloseHandler() {
@Override
public void onClose(final PCloseEvent closeEvent) {
}</BUG>
});

});
optionsAnchor.addClickHandler(clickEvent -> {
if (popup.isShowing()) {
popup.hide();
} else {
popup.setPopupPositionAndShow((offsetWidth, offsetHeight, windowWidth, windowHeight) -> {
final int left = windowWidth - 250;
popup.setPopupPosition(left, 26);
});
}
});
popup.addDomHandler(SampleHeaderActivity.this, PClickEvent.TYPE);
popup.addCloseHandler(closeEvent -> {
});
