});
final PHTML htmlWithContextMenu = new PHTML("<span style='cursor: pointer;border: 1px solid black;color:white;background-color:gray;margin:5px;padding:10px'>context menu on me!</span> using HTML and CSS");
htmlWithContextMenu.preventEvent(PEvent.ONCONTEXTMENU);
htmlWithContextMenu.addDomHandler(new PContextMenuHandler() {
@Override
public void onContextMenu(final PContextMenuEvent event) {
PNotificationManager.showHumanizedNotification("Context menu triggered");
}