Exemple #1
0
 @Override
 protected void onRightClick(ComponentEvent ce) {
   ce.stopEvent();
   final int x = ce.getClientX();
   final int y = ce.getClientY();
   DeferredCommand.addCommand(
       new Command() {
         public void execute() {
           tabPanel.onItemContextMenu(TabItem.this, x, y);
         }
       });
 }