Package common.files

Examples of common.files.MultiNamedFile


    if (object == null) // ebbene si, puo' capitare anche questo!
    {
      return null;
    }

    MultiNamedFile file = (MultiNamedFile) object;

    JComponent component;

    Collection<String> names = file.getNames();
    if (names.size() > 1)
    {
      JComboBox comboBox = new JComboBox();
      for (String name : names)
      {
        comboBox.addItem(name);
      }
      component = comboBox;
    }
    else
    {
      component = new JLabel(file.getFirstName());
    }

    component.setOpaque(true);

    return component;
View Full Code Here


  {
    public void mouseClicked(MouseEvent event)
    {
      if ((event.getClickCount() == 2) && !getSelectionModel().isSelectionEmpty())
      {
        MultiNamedFile file = (MultiNamedFile) getValueAt(getSelectedRow(), 1);
        getDownloadManager()
            .addDownload(new NamedFile(file, file.getFirstName()));
      }
    }
View Full Code Here

    Collection<String> names = new LinkedList<String>(file.getNames());

    filterNames(names, keywords);
    if (!names.isEmpty())
    {
      results.add(new MultiNamedFile(file, names));
    }
  }
View Full Code Here

TOP

Related Classes of common.files.MultiNamedFile

Copyright © 2018 www.massapicom. 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.