Examples of DialogWindow


Examples of bibliothek.gui.dock.common.action.panel.DialogWindow

      location.x = item.getWidth();
    }
   
    SwingUtilities.convertPointToScreen( location, item );
   
    DialogWindow window = createDialogWindow( item );
    window.setUndecorated( true );
    window.setContent( getContent() );
    window.open( location.x, location.y );
   
    openPopup( window );
  }
View Full Code Here

Examples of bibliothek.gui.dock.common.action.panel.DialogWindow

    if( content == null )
      return;
   
    closePopup();
   
    DialogWindow window = createDialogWindow( dockable.getComponent() );
    window.setUndecorated( getMenuBehavior() == MenuBehavior.UNDECORATED_DIALOG );
    window.setContent( getContent() );
    window.open( dockable.getComponent() );
   
    openPopup( window );
  }
View Full Code Here

Examples of bibliothek.gui.dock.common.action.panel.DialogWindow

   * Creates a new window which will be used as popup for this {@link CPanelPopup}.
   * @param owner the owner of the window
   * @return the new window, not <code>null</code>
   */
  protected DialogWindow createDialogWindow( Component owner ){
    return new DialogWindow( owner, this );
  }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.DialogWindow

    public Object jsxFunction_showModalDialog(final String url, final Object arguments, final String features) {
        final WebWindow ww = getWebWindow();
        final WebClient client = ww.getWebClient();
        try {
            final URL completeUrl = ((HtmlPage) getDomNodeOrDie()).getFullyQualifiedUrl(url);
            final DialogWindow dialog = client.openDialogWindow(completeUrl, ww, arguments);
            // TODO: Theoretically, we shouldn't return until the dialog window has been close()'ed...
            // But we have to return so that the window can be close()'ed...
            // Maybe we can use Rhino's continuation support to save state and restart when
            // the dialog window is close()'ed? Would only work in interpreted mode, though.
            final ScriptableObject jsDialog = (ScriptableObject) dialog.getScriptObject();
            return jsDialog.get("returnValue", jsDialog);
        }
        catch (final IOException e) {
            throw Context.throwAsScriptRuntimeEx(e);
        }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.DialogWindow

    public Object jsxFunction_showModelessDialog(final String url, final Object arguments, final String features) {
        final WebWindow ww = getWebWindow();
        final WebClient client = ww.getWebClient();
        try {
            final URL completeUrl = ((HtmlPage) getDomNodeOrDie()).getFullyQualifiedUrl(url);
            final DialogWindow dialog = client.openDialogWindow(completeUrl, ww, arguments);
            final Window jsDialog = (Window) dialog.getScriptObject();
            return jsDialog;
        }
        catch (final IOException e) {
            throw Context.throwAsScriptRuntimeEx(e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.