Package net.datacrow.util.filefilters

Examples of net.datacrow.util.filefilters.DcFileFilter


    @Override
    public void onActivation() {
        if (definition != null && definition.getExporter() != null) {
            settingsPanel.applySettings(definition.getSettings());
            target.setFileFilter(new DcFileFilter(definition.getExporter().getFileType()));
            target.setFile(definition.getFile());
        }
    }
View Full Code Here


        btStart = ComponentFactory.getButton(DcResources.getText("lblStart"), IconLibrary._icoAdd);
        btStart.setActionCommand("readDir");
        btStart.addActionListener(this);
       
        ffSingle = filter != null ?
                ComponentFactory.getFileField(false, false, new DcFileFilter(filter.getExtensions())) :
                ComponentFactory.getFileField(false, false);
           
        btAdd.setActionCommand("addFile");
        btAdd.addActionListener(this);
View Full Code Here

    if wizard.getDefinition() != null &&
        wizard.getDefinition().getImporter() != null) {
     
      settings.clear();
     
      source.setFileFilter(new DcFileFilter(wizard.getDefinition().getImporter().getSupportedFileTypes()));
      source.setFile(wizard.getDefinition().getFile());
     
      int y = 1;
          for (String key : wizard.getDefinition().getImporter().getSettingKeys()) {
            Setting setting = DcSettings.getSetting(key) != null ? DcSettings.getSetting(key) :
View Full Code Here

    }
   
    private void saveToFile() {
        if (picture != null) {
            BrowserDialog dlg = new BrowserDialog(DcResources.getText("lblSelectFile"),
                                                  new DcFileFilter("jpg"));
           
            File file = dlg.showCreateFileDialog(this, null);

            try {
                if (file != null) {
View Full Code Here

TOP

Related Classes of net.datacrow.util.filefilters.DcFileFilter

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.