Package javax.swing

Examples of javax.swing.JInternalFrame$JDesktopIcon$AccessibleJDesktopIcon


      adaptable.setMascotLocation(p);
      setDropStatus(JInternalFramePainter.NOOP);
      return true;
    } else{
      if(hasMenuBar()){
        JInternalFrame jif = (JInternalFrame) adaptable.getWidget();
        JRootPane rootPane = jif.getRootPane();
        p=SwingUtilities.convertPoint(rootPane, p, adaptable.getContentPane());
      }
      return getContentOperation().dragExit(p);
    }
  }
View Full Code Here


      return false;
    } else if (isDroppingMenuBar()) {
      adaptable.setMascotLocation(p);
      WidgetAdapter target = adaptable.getDropWidget().get(0);
      JMenuBar jmb = (JMenuBar) target.getWidget();
      JInternalFrame jframe = (JInternalFrame) adaptable.getWidget();
      jframe.setJMenuBar(jmb);
      target.requestNewName();
      jframe.validate();
      adaptable.doLayout();
      adaptable.validateContent();
      adaptable.clearAllSelected();
      target.setSelected(true);
      adaptable.setDirty(true);
      adaptable.addNotify();
      adaptable.repaintDesigner();
      setDropStatus(JInternalFramePainter.NOOP);
      return true;
    } else{
      if(hasMenuBar()){
        JInternalFrame jif = (JInternalFrame) adaptable.getWidget();
        JRootPane rootPane = jif.getRootPane();
        p=SwingUtilities.convertPoint(rootPane, p, adaptable.getContentPane());
      }
      return getContentOperation().drop(p);
    }
  }
View Full Code Here

      return getContentOperation().drop(p);
    }
  }

  private boolean hasMenuBar() {
    JInternalFrame jframe = (JInternalFrame) adaptable.getWidget();
    JMenuBar jmb = jframe.getJMenuBar();
    return jmb != null;
  }
View Full Code Here

  @Override
  public void mousePressed(MouseEvent e) {
    super.mousePressed(e);
    if(e.isConsumed())
      return;
    JInternalFrame jif = (JInternalFrame) adaptable.getWidget();
    jif.toFront();
  }
View Full Code Here

    }
    return null;
  }

  private Rectangle getCaptionBounds() {
    JInternalFrame jif = (JInternalFrame) adaptable.getWidget();
    int w = jif.getWidth();
    return new Rectangle(0, 0, w, 30);
  }
View Full Code Here

      return null;
  }

  @Override
  public Object getWidgetValue() {
    JInternalFrame jif = (JInternalFrame) adaptable.getWidget();
    return jif.getTitle();
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    RestoreAction a = p.new RestoreAction();
    harness.check(a.getValue("Name"), "Restore");
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    SizeAction a = p.new SizeAction();
    harness.check(a.getValue("Name"), "Size");
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    MaximizeAction a = p.new MaximizeAction();
    harness.check(a.getValue("Name"), "Maximize");
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    CloseAction a = p.new CloseAction();
    harness.check(a.getValue("Name"), "Close");
  }
View Full Code Here

TOP

Related Classes of javax.swing.JInternalFrame$JDesktopIcon$AccessibleJDesktopIcon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.