Project

General

Profile

6240.diff

Hynek Cihlar, 04/06/2022 06:48 AM

Download (1.37 KB)

View differences:

new/src/com/goldencode/p2j/ui/client/widget/AbstractWidget.java 2022-03-31 18:05:07 +0000
2296 2296
   @Override
2297 2297
   public void mouseClicked(MouseEvent e)
2298 2298
   {
2299
      // TODO: move the logic of mouseClicked to mouseReleased and validate the inheritance
2300
      // and super calls. The popup-menu can show up even if the press and release is 
2301
      // not made at the same coordinates
2302
      
2299
      // no-op
2300
   }
2301

  
2302
   /**
2303
    * Notification of a mouse pressed event occurred for this widget.  No-op by default.
2304
    * 
2305
    * @param    e
2306
    *           The mouse event.
2307
    */
2308
   @Override
2309
   public void mousePressed(MouseEvent e)
2310
   {
2303 2311
      // right button is clicked under GUI
2304 2312
      if (e.getButton() == getMenuMouse() && !ThinClient.getInstance().isChui() && isDisplayed())
2305 2313
      {
......
2309 2317
   }
2310 2318

  
2311 2319
   /**
2312
    * Notification of a mouse pressed event occurred for this widget.  No-op by default.
2313
    * 
2314
    * @param    e
2315
    *           The mouse event.
2316
    */
2317
   @Override
2318
   public void mousePressed(MouseEvent e)
2319
   {
2320
      // no-op
2321
   }
2322

  
2323
   /**
2324 2320
    * Notification of a mouse released event occurred for this widget.  No-op by default.
2325 2321
    * 
2326 2322
    * @param    e