Examples of Dialog


Examples of org.eurekastreams.web.client.ui.common.dialog.Dialog

            public String getCssName()
            {
                return StaticResourceBundle.INSTANCE.coreCss().notificationSettingsModal();
            }
        };
        Dialog newDialog = new Dialog(dialogContent)
        {
            /**
             * When the dialog is closed, go to the start page.
             */
            @Override
            public void hide()
            {
                super.hide();
                EventBus.getInstance().notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.START)));
            }
        };
        newDialog.showCentered();
    }
View Full Code Here

Examples of org.gwtoolbox.widget.client.popup.dialog.Dialog

    public SimpleDialogSample() {

        Button openButton = new Button("Open Dialog", new ClickHandler() {
            public void onClick(ClickEvent event) {

                final Dialog dialog = new Dialog(false, true);
                dialog.setCaption("List");
                VerticalPanel main = new VerticalPanel();
                main.setWidth("100%")
                dialog.setWidthPx(300);
                dialog.setResizable(true);

                Label label = new Label("Please select one of the items");
                main.add(label);
                main.setCellHeight(label, "25px");

                final ListBox listBox = new ListBox(false);
                for (String coreName : new String[] { "Item 1" }) {
                    listBox.addItem(coreName, coreName);
                }
                listBox.setVisibleItemCount(5);
                listBox.setSelectedIndex(-1);
                listBox.setWidth("90%");
                listBox.setHeight("100%");
                main.add(listBox);
                main.setCellHorizontalAlignment(listBox, VerticalPanel.ALIGN_CENTER);
                main.setCellHeight(listBox, "120px");

                final SimpleButton okButton = new SimpleButton("OK", new ClickHandler() {
                    public void onClick(ClickEvent event) {
                        dialog.hide();
                        int index = listBox.getSelectedIndex();
                        String coreName = listBox.getValue(index);
                    }
                });
                okButton.setEnabled(false);
                main.add(okButton);
                main.setCellHorizontalAlignment(okButton, VerticalPanel.ALIGN_CENTER);
                main.setCellHeight(okButton, "25px");

                listBox.addChangeHandler(new ChangeHandler() {
                    public void onChange(ChangeEvent event) {
                        okButton.setEnabled(listBox.getSelectedIndex() >= 0);
                    }
                });

                dialog.setWidget(main);

                dialog.setPopupPositionAndShow(new Popup.PositionCallback() {
                    public void setPosition(int offsetWidth, int offsetHeight) {
                        dialog.center();
                    }
                });

                final HandlerRegistration windowResizeHandlerRegistration = Window.addResizeHandler(new ResizeHandler() {
                    public void onResize(ResizeEvent event) {
                        dialog.center();
                    }
                });

                dialog.addCloseHandler(new CloseHandler<Popup>() {
                    public void onClose(CloseEvent<Popup> closeEvent) {
                        windowResizeHandlerRegistration.removeHandler();
                    }
                });
            }
View Full Code Here

Examples of org.jboss.mbui.model.Dialog

        if (null == cachedWidgets.get(name) )
        {

            // fetch dialog meta data
            final Dialog dialog  =  repository.getDialog(name);

            // create coordinator instance
            final InteractionCoordinator coordinator = new InteractionCoordinator(
                    dialog, globalContext, this
            );
View Full Code Here

Examples of org.jmol.export.dialog.Dialog

    String dir = System.getProperty("user.dir");
    return dir == null ? null : new File(System.getProperty("user.dir"));
  }

  String getOpenFileNameFromDialog(String fileName) {
    return (new Dialog()).getOpenFileNameFromDialog(appletContext,
        viewer, fileName, historyFile, FILE_OPEN_WINDOW_NAME, (fileName == null));
  }
View Full Code Here

Examples of org.odlabs.wiquery.ui.dialog.Dialog

    super(id);
    final WebMarkupContainer dialogContainer = new WebMarkupContainer("dialogContainer");
    dialogContainer.setOutputMarkupId(true);
    add(dialogContainer);
   
    final Dialog dialog = new Dialog("dialog");
    dialog.setResizable(true);
    dialog.setTitle("Dialog title");
    dialog.setPosition(new PositionOptions()
        .setAt(new PositionAlignmentOptions(PositionRelation.TOP))
        .setMy(new PositionAlignmentOptions(PositionRelation.TOP))
        .setOf("#" + dialogContainer.getMarkupId())
    );
    dialog.setShow(new DialogAnimateOption("fold"));
    dialog.setHide(new DialogAnimateOption(100));
    dialog.setButtons(new DialogButton("Close", JsScope.quickScope(dialog.close()))
        .setIcons(UiIcon.CLOSE, null)
    );
    dialogContainer.add(dialog);
   
    final AjaxLink<Void> openDialog = new AjaxLink<Void>("openDialog") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick(AjaxRequestTarget target) {
        target.appendJavaScript(dialog.open().render().toString());
      }
    };
    dialogContainer.add(openDialog);
  }
View Full Code Here

Examples of org.onemind.swingweb.client.gwt.widget.Dialog

    /**
     * {@inheritDoc}
     */
    protected Object createComponentInstance(Object parent, DomNode element)
    {
        Dialog w = new Dialog();
        return w;
    }
View Full Code Here

Examples of org.spiffyui.client.widgets.dialog.Dialog

    }

    @Override
    public void onClose(CloseEvent<PopupPanel> event)
    {
        Dialog dlg = (Dialog) event.getSource();
        String btn = dlg.getButtonClicked();
        if (dlg == m_dlg && "OK".equals(btn)) {
            MessageUtil.showMessage(Index.getStrings().refreshing());
            //a little timer to simulate time it takes to set loading back to false
            Timer t = new Timer() {
View Full Code Here

Examples of org.ugate.gui.GuiUtil.Dialog

    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(3d);
    lighting.setLight(light);
    bar.setEffect(lighting);
    new Dialog(null, stage, KEY.APP_TITLE, RS.rbLabel(KEY.LOADING), null,
        WIDTH, HEIGHT, bar);
  }
View Full Code Here

Examples of org.useware.kernel.model.Dialog

        dialogs.add(new ServletContainerExample());
        dialogs.add(new UndertowServerExample());
    }
    @Override
    public Dialog getDialog(String name) {
        Dialog dialog = null;

        for(Sample sample : dialogs)
        {
            if(sample.getName().equals(name))
            {
View Full Code Here

Examples of org.useware.kernel.model.Dialog

                    .mappedBy(global)
                    .add(attributes).mappedBy(attributesMapping)
                .end()
        .build();

        Dialog dialog = new Dialog(QName.valueOf("org.jboss.as:servlet-container"), root);
        return dialog;
    }
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.