Examples of allowEmptyInput()


Examples of org.gudy.azureus2.ui.swt.SimpleTextEntryWindow.allowEmptyInput()

  private static String askForRenameFilename(DiskManagerFileInfo fileInfo) {
    SimpleTextEntryWindow dialog = new SimpleTextEntryWindow(
        "FilesView.rename.filename.title", "FilesView.rename.filename.text");
    dialog.setPreenteredText(fileInfo.getFile(true).getName(), false); // false -> it's not "suggested", it's a previous value
    dialog.allowEmptyInput(false);
    dialog.prompt();
    if (!dialog.hasSubmittedInput()) {
      return null;
    }
    return dialog.getSubmittedInput();
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.plugins.UISWTInputReceiver.allowEmptyInput()

                   
                    req_str += (req_str.length()==0?"":";") + r + "=?";
                  }
                  entry.setPreenteredText( req_str, true );
                  entry.maintainWhitespace(false);
                  entry.allowEmptyInput( false );
                  entry.setTitle("general.enter.cookies");
                  entry.prompt(new UIInputReceiverListener() {
                    public void UIInputReceiverClosed(UIInputReceiver entry) {
                      if (!entry.hasSubmittedInput()){
                       
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.plugins.UISWTInputReceiver.allowEmptyInput()

      menuItem.addListener(new SubsMenuItemListener() {
        public void selected(MdiEntry info, final Subscription subs) {
          UISWTInputReceiver entry = new SimpleTextEntryWindow();
          entry.setPreenteredText(subs.getName(), false );
          entry.maintainWhitespace(false);
          entry.allowEmptyInput( false );
          entry.setLocalisedTitle(MessageText.getString("label.rename",
              new String[] {
                subs.getName()
              }));
          entry.prompt(new UIInputReceiverListener() {
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.plugins.UISWTInputReceiver.allowEmptyInput()

             
              entry.setPreenteredText(device.getName(), false );
             
              entry.maintainWhitespace(false);
             
              entry.allowEmptyInput( false );
             
              entry.setLocalisedTitle(MessageText.getString("label.rename",
                  new String[] {
                device.getName()
              }));
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.plugins.UISWTInputReceiver.allowEmptyInput()

                 
                  entry.setPreenteredText( renderer.getAccessRestriction(), false );
                 
                  entry.maintainWhitespace( false );
                 
                  entry.allowEmptyInput( true );
                 
                  entry.setLocalisedTitle(
                    MessageText.getString("devices.restrict_access.prompt",
                      new String[]{
                    device.getName()
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.