Examples of BrowseAction


Examples of kg.apc.jmeter.gui.BrowseAction

        addToPanel(mainPanel, labelConstraints, 0, 1, new JLabel("Filename: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 1, filename = new JTextField(20));
        addToPanel(mainPanel, labelConstraints, 2, 1, browseButton = new JButton("Browse..."));
        GuiBuilderHelper.strechItemToComponent(filename, browseButton);
        browseButton.addActionListener(new BrowseAction(filename));

        addToPanel(mainPanel, labelConstraints, 0, 2, new JLabel("Overwrite existing file: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 2, overwrite=new JCheckBox());

        addToPanel(mainPanel, labelConstraints, 0, 3, new JLabel("Write File Header: ", JLabel.RIGHT));
View Full Code Here

Examples of kg.apc.jmeter.gui.BrowseAction

        GuiBuilderHelper.strechItemToComponent(fileName, browseButton);

        editConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
        labelConstraints.insets = new java.awt.Insets(2, 0, 0, 0);

        browseButton.addActionListener(new BrowseAction(fileName));

        addToPanel(mainPanel, labelConstraints, 0, 2, new JLabel("Variable name: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 2, variableName = new JTextField(20));

        addToPanel(mainPanel, labelConstraints, 0, 3, new JLabel("Encode read data as HEX: ", JLabel.RIGHT));
View Full Code Here

Examples of kg.apc.jmeter.gui.BrowseAction

        GuiBuilderHelper.strechItemToComponent(fileName, browseButton);

        editConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
        labelConstraints.insets = new java.awt.Insets(2, 0, 0, 0);

        browseButton.addActionListener(new BrowseAction(fileName));

        addToPanel(mainPanel, labelConstraints, 0, 1, new JLabel(" Variable prefix: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 1, variablePrefix = new JTextField(20));

        addToPanel(mainPanel, labelConstraints, 0, 2, new JLabel("Separator (use '\\t' for tab): ", JLabel.RIGHT));
View Full Code Here

Examples of kg.apc.jmeter.gui.BrowseAction

        addToPanel(mainPanel, editConstraints, 1, 6, fileName = new JTextField(20));
        addToPanel(mainPanel, labelConstraints, 2, 6, browseButton = new JButton("Browse..."));

        GuiBuilderHelper.strechItemToComponent(fileName, browseButton);

        browseButton.addActionListener(new BrowseAction(fileName));

        editConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
        labelConstraints.insets = new java.awt.Insets(2, 0, 0, 0);

        addToPanel(mainPanel, labelConstraints, 0, 7, new JLabel("Parse result as HTTP: ", JLabel.RIGHT));
View Full Code Here

Examples of kg.apc.jmeter.gui.BrowseAction

        addToPanel(mainPanel, labelConstraints, 0, row, new JLabel("Directory to store data for upload: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, row, storeDir = new JTextField(20));
        addToPanel(mainPanel, labelConstraints, 2, row, browseButton = new JButton("Browse..."));

        GuiBuilderHelper.strechItemToComponent(storeDir, browseButton);
        browseButton.addActionListener(new BrowseAction(storeDir, true));

        row++;
        addToPanel(mainPanel, labelConstraints, 0, row, new JLabel("Test Title: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, row, testTitle = new JTextField(20));
View Full Code Here

Examples of org.cybergarage.upnp.std.av.player.action.BrowseAction

      return null;
    Action action = conDir.getAction(ContentDirectory.BROWSE);
    if (action == null)
      return null;

    BrowseAction browseAction = new BrowseAction(action);
    browseAction.setObjectID(objectID);
    browseAction.setBrowseFlag(browseFlag);
    browseAction.setStartingIndex(startIndex);
    browseAction.setRequestedCount(requestedCount);
    browseAction.setFilter(filter);
    browseAction.setSortCriteria(sortCaiteria);
    if (browseAction.postControlAction() == false)
      return null;

    /*
     * ContentDirectory:1 Service Template Version 1.01
     * 2.7.4.2. Argument Descriptions
     *  RequestedCount ui4 Requested number of entries under the object specified by ObjectID.
     *  RequestedCount =0 indicates request all entries.
     * Added to set the RequestedCount parameter using the NumberReturned result when the specified parameter is zero and
     * the NumberReturned parameter is less than the TotalMatches parameter for XMBC.
    */
    if (requestedCount == 0) {
      int numberReturned = browseAction.getNumberReturned();
      int totalMatches = browseAction.getTotalMatches();
      if (numberReturned == 0) {
        if (0 < totalMatches) {
          browseAction.setRequestedCount(totalMatches);
          if (browseAction.postControlAction() == false)
            return null;
        }
        else {
          browseAction.setRequestedCount(9999);
          if (browseAction.postControlAction() == false)
            return null;
        }
      }
    }
   
    Argument resultArg = browseAction.getArgument(BrowseAction.RESULT);
    if (resultArg == null)
      return null;

    String resultStr = resultArg.getValue();
    if (resultStr == null)
View Full Code Here

Examples of versusSNP.util.action.BrowseAction

    txtLabel.setPreferredSize(Size.dialog_textfield_label);
    txtPath1.setPreferredSize(Size.dialog_textfield_path);
    txtPath2.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse1.setPreferredSize(Size.dialog_button_browse);
    btnBrowse2.setPreferredSize(Size.dialog_button_browse);
    btnBrowse1.addActionListener(new BrowseAction(txtPath1,
        new MyFileFilter[] {
          new MyFileFilter(new String[] { "txt" }, UICaption.dialog_filter_file_tabbed),
          new MyFileFilter(new String[] { "csv" }, UICaption.dialog_filter_file_csv)}));
    btnBrowse2.addActionListener(new BrowseAction(txtPath2,
        new MyFileFilter[] {new MyFileFilter(new String[] { "fas", "fasta" }, UICaption.dialog_filter_file_fasta)}));
//    txtLabel.getDocument().addDocumentListener(new EditAction(name));
    txtPath1.getDocument().addDocumentListener(new EditAction(path1));
    txtPath2.getDocument().addDocumentListener(new EditAction(path2));
    panel1.add(txtLabel);
View Full Code Here

Examples of versusSNP.util.action.BrowseAction

    path = new StringBuffer();
    txtPath = new JTextField();
    btnBrowse = new JButton(UICaption.dialog_caption_browse);
    txtPath.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse.setPreferredSize(Size.dialog_button_browse);
    btnBrowse.addActionListener(new BrowseAction(txtPath));
    txtPath.getDocument().addDocumentListener(new EditAction(path));
  }
View Full Code Here

Examples of versusSNP.util.action.BrowseAction

    btnBrowse1 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse2 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse3 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse1.addActionListener(new BrowseEnsureAction(txtPath1, "blastall"));
    btnBrowse2.addActionListener(new BrowseEnsureAction(txtPath2, "formatdb"));
    btnBrowse3.addActionListener(new BrowseAction(txtPath3, true));
    txtPath1.getDocument().addDocumentListener(new EditAction(blast_path));
    txtPath2.getDocument().addDocumentListener(new EditAction(formatdb_path));
    txtPath3.getDocument().addDocumentListener(new EditAction(temp_path));
    JPanel panel1 = new JPanel(new BorderLayout());
    JPanel panel2 = new JPanel(new BorderLayout());
View Full Code Here

Examples of versusSNP.util.action.BrowseAction

        UICaption.panel_caption_snp });
    selector.addActionListener(new SelectAction(id));
    selector.setSelectedIndex(id.intValue());
    txtPath.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse.setPreferredSize(Size.dialog_button_browse);
    btnBrowse.addActionListener(new BrowseAction(txtPath, JFileChooser.SAVE_DIALOG));
    txtPath.getDocument().addDocumentListener(new EditAction(path));
    panel.add(txtPath);
    panel.add(btnBrowse);
  }
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.