Examples of Window


Examples of com.gargoylesoftware.htmlunit.javascript.host.Window

    @Override
    public void initialize(WebWindow webWindow) {
      // Hook in the hosted-mode plugin after initializing the JS engine.
      super.initialize(webWindow);
      Window window = (Window) webWindow.getScriptObject();
      window.defineProperty("__gwt_HostedModePlugin",
          new HostedModePluginObject(this), ScriptableObject.READONLY);
    }
View Full Code Here

Examples of com.google.gwt.thirdparty.com.gargoylesoftware.htmlunit.javascript.host.Window

    @Override
    public void initialize(WebWindow webWindow) {
      // Hook in the hosted-mode plugin after initializing the JS engine.
      super.initialize(webWindow);
      Window window = (Window) webWindow.getScriptObject();
      window.defineProperty("__gwt_HostedModePlugin",
          new HostedModePluginObject(this, logger), ScriptableObject.READONLY);
    }
View Full Code Here

Examples of com.gwtext.client.widgets.Window

    private void showDropDownEditor(EventObject e,
                                    final String dataIdx,
                                    final Record r,
                                    String val,
                                    String[] vals) {
        final Window w = new Window();
        w.setWidth( 200 );
        w.setPlain( true );
        w.setBodyBorder( false );
        w.setAutoDestroy( true );
        w.setTitle( dataIdx );
        final ListBox drop = new ListBox();
        for ( int i = 0; i < vals.length; i++ ) {
            String v = vals[i].trim();
            if ( v.indexOf( '=' ) > 0 ) {
                String[] splut = ConstraintValueEditorHelper.splitValue( v );
                drop.addItem( splut[1],
                              splut[0] );
                if ( splut[0].equals( val ) ) {
                    drop.setSelectedIndex( i );
                }
            } else {
                drop.addItem( v,
                              v );
                if ( v.equals( val ) ) {
                    drop.setSelectedIndex( i );
                }
            }

        }
        drop.addKeyboardListener( new KeyboardListenerAdapter() {
            public void onKeyUp(Widget sender,
                                char keyCode,
                                int modifiers) {
                if ( keyCode == KeyboardListener.KEY_ENTER ) {
                    r.set( dataIdx,
                           drop.getValue( drop.getSelectedIndex() ) );
                    w.destroy();
                }
            }
        } );

        Panel p = new Panel();
        p.add( drop );
        w.add( p );
        w.setBorder( false );

        Button ok = new Button( constants.OK() );
        ok.addClickListener( new ClickListener() {
            public void onClick(Widget wg) {
                r.set( dataIdx,
                       drop.getValue( drop.getSelectedIndex() ) );
                w.destroy();
            }
        } );
        p.add( ok );

        w.setPosition( e.getPageX(),
                       e.getPageY() );
        w.show();

    }
View Full Code Here

Examples of com.sap.hadoop.windowing.query.Window

        CommonTree name=null;
        TableFuncSpec tf1 = null;

        FuncArg p = null;

        Window w = null;



          tf = new TableFuncSpec();
          ((PartOrderScope_scope)PartOrderScope_stack.peek()).partitionColumns = tf.getPartitionColumns();
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.Window

    private MenuItem getReferMenuItem(final boolean isCommon) {
        final MenuItem referMenuItem = new MenuItem("复制引用语句", new SelectionHandler<MenuItem>() {
        @Override
        public void onSelection(SelectionEvent<MenuItem> event) {
          FileModel m =isCommon?getCommonTreeGrid().getSelectionModel().getSelectedItem():getMyTreeGrid().getSelectionModel().getSelectedItem();
          Window w = new Window();
          final TextField f = new TextField(){
            @Override
            public void onBrowserEvent(Event event) {
              super.onBrowserEvent(event);
              selectAll();
            }
          };
          w.setModal(true);
          w.setHeadingText("脚本引用语句");
          w.setHeight(60);
          StringBuffer sb = new StringBuffer();
          sb.append("download[").append("doc://")
            .append(m.getId()).append(' ').append(m.getName().replace(' ', '_'))
            .append("]");
          f.setValue(sb.toString());
          f.setReadOnly(true);
          f.setWidth(350);
          w.setWidget(f);
          w.show();
          f.focus();
        }
      });
        referMenuItem.setIcon(Images.getImageResources().script());
      return referMenuItem;
View Full Code Here

Examples of com.smartgwt.client.widgets.Window

              UrlBuilder ub = new UrlBuilder();
              ub.setPath("d/csvDownload");
              ub.setParameter("id", resp.getDocumentId());
              String link = ub.buildString().replaceFirst("http:///", GWT.getHostPageBaseURL());

              Window window = new DockableWindow();
              window.setTitle(messages.exportToCsvWindowTitle());
              String content = CONTENT_PRE + messages.exportToCsvContentReady() + CONTENT_POST;
              String linktocsv = messages.exportToCsvDownloadLink(link) + LINK_POST;
              window.addItem(new HTMLFlow(content + linktocsv));
              window.centerInPage();
              window.setAutoSize(true);
              window.show();
              window.setKeepInParentRect(true);
            }
            if (onFinished != null) {
              onFinished.execute();
            }
          }
View Full Code Here

Examples of com.sun.jna.platform.unix.X11.Window

        @Override
        public void run() {
          try {
            final X11 x11 = X11.INSTANCE;
            final Display display = x11.XOpenDisplay(null);
            Window window = new Window(nativeHandle);
            x11.XSelectInput(display, window,
                new NativeLong(X11.ExposureMask |
                    X11.VisibilityChangeMask |
                    X11.StructureNotifyMask |
                    X11.FocusChangeMask |
View Full Code Here

Examples of com.thecherno.cherno.engine.graphics.Window

   * @param height
   *            The height of the display (and window) in pixels.
   */
  protected final void createDisplay(String name, int width, int height) {
    startTimer = System.currentTimeMillis();
    display = new Display(new Window(name, width, height));
    screen = new Screen(width, height, 1.0);
  }
View Full Code Here

Examples of com.vaadin.ui.Window

    @Override
    public void init() {
        final GridLayout layout = new GridLayout(1, 3);
        layout.setWidth("100%");
        layout.setMargin(false);
        setMainWindow(new Window(this.title, layout));
       
        final BeanContainer<String, Task> beans = new BeanContainer<String, Task>(Task.class);
        beans.setBeanIdProperty("id");

        final Form form = new Form();
View Full Code Here

Examples of elemental.html.Window

   * <p>Actually, popup is never blocked, because it is initiated by user.
   * But in case it is not truth, we show alert to user that instructs how to
   * enable popups.
   */
  public static Window createOrOpenPopup(AppContext appContext) {
    Window popup =
        Browser.getWindow().open("", BootstrapSession.getBootstrapSession().getActiveClientId());
    if (popup == null) {
      if (!doNotShowPopupBlockedInstruction) {
        doNotShowPopupBlockedInstruction = true;
        PopupBlockedInstructionalPopup.create(appContext.getResources()).show();
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.