Package net.datacrow.util

Examples of net.datacrow.util.PollerTask


            if (!saved && view.getCurrentTask() != null) {
                if (DcSwingUtilities.displayQuestion("msgNotSaved"))
                    view.save(false);
            }
           
            PollerTask poller = new PollerTask(this, DcResources.getText("lblFiltering"));
            poller.start();
           
            try {
                sleep(1000);
            } catch (Exception e) {}
           
            view.undoChanges();

            parent.clear();
           
            DataFilter df = getDataFilter();
            DataFilters.setCurrent(module.getIndex(), df);
           
            // do not query here if the grouping pane is enabled; the grouping pane will
            // execute the query by itself..
            Map<String, Integer> keys =
                module.getSearchView().getGroupingPane() != null &&
                module.getSearchView().getGroupingPane().isEnabled() ?
                        new HashMap<String, Integer>() : DataManager.getKeys(df);
           
            parent.setStatus(DcResources.getText("msgSearchHasBeenExecuted"));
            parent.add(keys);

            DataFilters.setCurrent(module.getIndex(), df);
            DataCrow.mainFrame.setSelectedTab(0);  
           
            try {
                poller.finished(true);
            } catch (Exception e) {
                logger.error(e, e);
                DcSwingUtilities.displayErrorMessage(Utilities.isEmpty(e.getMessage()) ? e.toString() : e.getMessage());
            }
        }
View Full Code Here


            this.df = df;
        }
       
        @Override
        public void run() {
            PollerTask poller = new PollerTask(this, DcResources.getText("lblFiltering"));
            poller.start();
           
            DataFilters.setCurrent(module.getIndex(), df);
           
            // do not query here if the grouping pane is enabled; the grouping pane will
            // execute the query by itself..
            Map<String, Integer> keys =
                module.getSearchView().getGroupingPane() != null &&
                module.getSearchView().getGroupingPane().isEnabled() ?
                        new HashMap<String, Integer>() :
                        DataManager.getKeys(df == null ? DataFilters.getCurrent(module.getIndex()) : df);
                       
            DcModules.getCurrent().getSearchView().add(keys);
           
            try {
                poller.finished(true);
            } catch (Exception e) {
                logger.error(e, e);
                DcSwingUtilities.displayErrorMessage(Utilities.isEmpty(e.getMessage()) ? e.toString() : e.getMessage());
            }
        }
View Full Code Here

       
        @Override
        public void run() {
            if (poller != null) poller.finished(true);
           
            poller = new PollerTask(this, DcResources.getText("lblGroupingItems"));
            poller.start();
           
            createTree();
           
            poller.finished(true);
View Full Code Here

        } else {
            String filename = (String) dco.getValue(DcObject._SYS_FILENAME);
            String hash = (String) dco.getValue(DcObject._SYS_FILEHASH);
            Long size  = (Long) dco.getValue(DcObject._SYS_FILESIZE);
           
            PollerTask poller = new PollerTask(this, DcResources.getText("msgLocatingFile", filename));
            poller.start();
           
            FileInfo fi = new FileInfo(hash, filename, size);
            result = DriveManager.getInstance().find(fi, precision);
           
            poller.finished(true);
        }
    }
View Full Code Here

       
        @Override
        public void run() {
            if (poller != null) poller.finished(true);
           
            poller = new PollerTask(this, DcResources.getText("lblGroupingItems"));
            poller.start();

          createTree();
         
            poller.finished(true);
View Full Code Here

        return dco;
    }
   
    @Override
    public void run() {
        PollerTask poller = new PollerTask(this, DcResources.getText("msgRetrievingItemDetails", dco.getName()));
        poller.start();
       
        try {
            dco = task.query(dco);
            poller.finished(true);
        } catch (Exception e) {
            DcSwingUtilities.displayErrorMessage(Utilities.isEmpty(e.getMessage()) ? e.toString() : e.getMessage());
            logger.error(e, e);
        }
    }
View Full Code Here

        private boolean stop = false;
       
        @Override
        public void run() {
            if (poller != null) poller.finished(true);
            poller = new PollerTask(this, DcResources.getText("lblGroupingItems"));
            poller.start();

            createTree();

            poller.finished(true);
View Full Code Here

TOP

Related Classes of net.datacrow.util.PollerTask

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.