Examples of TextDialog


Examples of com.tulskiy.musique.gui.dialogs.TextDialog

        JMenuItem helpMenuItem = helpMenu.add("Help     ");
        helpMenuItem.setIcon(emptyIcon);
        helpMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new TextDialog(comp, "Readme", new File("README")).setVisible(true);
            }
        });

        helpMenu.add("License").addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new TextDialog(comp, "License", new File("Copying")).setVisible(true);
            }
        });

        helpMenu.add("About").addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new TextDialog(comp, "About", new File("ABOUT")).setVisible(true);
            }
        });
    }
View Full Code Here

Examples of net.datacrow.console.windows.TextDialog

            super.insertString(i, s, attributeset);
        }
    }

    public void openTextWindow() {
        TextDialog textView = new TextDialog(getValue().toString(), isEditable() && isEnabled());
        if (textView.isSuccess())
            setText(textView.getText());
        textView.clear();
    }
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.TextDialog

        String defaultName = Mediator.getInstance()
            .getDocumentManager().getNextUntitledFilterName();
        List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
        fields.add(new TextField("Name", defaultName, false, false,
            TextField.Kind.LINE));
        final TextDialog nameDlg = new TextDialog("Filter Name", fields);

        // Create an observation filter message and notify listeners.
        IFilterDescription desc = new IFilterDescription() {

          @Override
          public boolean isParsable() {
            return false;
          }

          @Override
          public String getFilterName() {
            return nameDlg.getTextStrings().get(0);
          }

          @Override
          public String getFilterDescription() {
            // Return a machine-readable (able to be parsed)
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.TextDialog

      String msg = binningResult.createAnovaText();
     
      List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
      fields.add(new TextField("ANOVA", msg, TextField.Kind.AREA));
      new TextDialog(
          "ANOVA for " + binningResult.getSeries() + " series",
          fields);
    }
  }
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.TextDialog

    // false, TextField.Kind.LINE);
    // resultFields[3] = new TextField("Maximum Distance", String
    // .format(otherFmt + " parsecs", distanceMax), true,
    // false, TextField.Kind.LINE);

    new TextDialog("Distance", resultFields);
  }
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.TextDialog

        obsCodes = wrap(obsCodes)// Force lines to wrap ...
        seriesFields.add(new TextField(type.getDescription(), obsCodes,
            Kind.AREA));
      }
    }
    new TextDialog("Observers By Series", seriesFields);
  }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.TextDialog

    public boolean openDialog( Shell shell )
    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) )
            {
                setValue( dialog.getText() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.TextDialog

    public boolean openDialog( Shell shell )
    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) )
            {
                setValue( dialog.getText() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.TextDialog

    public boolean openDialog( Shell shell )
    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) )
            {
                setValue( dialog.getText() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.TextDialog

    public boolean openDialog( Shell shell )
    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) ) //$NON-NLS-1$
            {
                setValue( dialog.getText() );
                return true;
            }
        }
        return false;
    }
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.