예제 #1
0
  /**
   * Moves the window to front and check the listener calls.
   *
   * <p>Has <b>OK</b> status if listener <code>activated</code> method was called.
   */
  public void _toFront() {
    requiredMethod("addTopWindowListener()");
    listener.initListener();
    oObj.toFront();
    waitForEventIdle();

    tRes.tested("toFront()", listener.activated && !listener.deactivated);
  }
 public void before() {
   aListener = new _XRangeSelection.MyRangeSelectionListener(log);
   // workaround for i34499
   XModel xModel = (XModel) tEnv.getObjRelation("FirstModel");
   if (xModel == null)
     throw new StatusException(Status.failed("Object relation FirstModel' not set."));
   XWindow xWindow = xModel.getCurrentController().getFrame().getContainerWindow();
   XTopWindow xTopWindow = UnoRuntime.queryInterface(XTopWindow.class, xWindow);
   xTopWindow.toFront();
   util.utils.shortWait(500);
 }