Project

General

Profile

EditorGuiImpl.diff

Vadim Gindin, 03/10/2016 05:09 AM

Download (1.29 KB)

View differences:

src/com/goldencode/p2j/ui/client/gui/EditorGuiImpl.java 2016-03-10 09:49:04 +0000
1386 1386
   {
1387 1387
      Widget<GuiOutputManager> src = super.findMouseSource(p);
1388 1388
      
1389
      return (src == editor || src == contentPane || src == editorScroll  
1389
      return (src == editor || src == contentPane   
1390 1390
              /* TODO: this will be removed: this == src.parent(EditorGuiImpl.class) */ ) ? 
1391 1391
            this : src;
1392 1392
   }
......
2669 2669
   private class EditorContent 
2670 2670
   extends AbstractContainer<GuiOutputManager>
2671 2671
   {
2672
      private WidgetId id = WidgetId.nextID();
2673
      
2674
      @Override
2675
      public WidgetId getId()
2676
      {
2677
         return id;
2678
      }
2679
      
2672 2680
      @Override
2673 2681
      public Dimension dimension()
2674 2682
      {
......
2801 2809
      {
2802 2810
         return new Dimension(width(), height());
2803 2811
      }
2812
      
2813
      /**
2814
       * Determine the mouse actions processed by this widget.
2815
       * 
2816
       * @return   See above.
2817
       */
2818
      @Override
2819
      protected int[] mouseActions()
2820
      {
2821
         return new int[]
2822
         {
2823
            MouseEvent.MOUSE_CLICKED, 
2824
         };
2825
      }
2804 2826
   }