Package net.datacrow.console.views

Examples of net.datacrow.console.views.View


        @Override
        public void run() {
            try {
                client.initialize();
               
                View view = DcModules.getCurrent().getCurrentSearchView();
                Collection<DcObject> objects = new ArrayList<DcObject>();
                objects.addAll(client.getItemPickMode() == _ALL ? view.getItems() : view.getSelectedItems());               
                client.initProgressBar(objects.size());
               
                for (DcObject dco : objects) {
                    if (client.isCancelled()) break;
                   
View Full Code Here


            value = dco.getModule();
            model.setValueAt(value, row, col);
        }

        if (getView() != null) {
            View childView = getView().getChildView();
            if (getView().getType() == View._TYPE_INSERT &&  childView != null) {
                childView.add(dco.getChildren());
                childView.setParentID(dco.getID(), true);
            }
        }
       
        if (setSelected)
            setSelected(getRowCount() - 1);
View Full Code Here

        Settings settings = DcModules.getCurrent().getSettings();
       
        try {
            MasterView[] masterViews = activeModule.getViews();
            for (int i = 0; i < masterViews.length; i++) {
                View view = masterViews[i].getCurrent();
               
                if (view == null) {
                    for (View vw : masterViews[i].getViews())
                        settings.set(DcRepository.ModuleSettings.stDefaultView, Long.valueOf(vw.getIndex()));
                   
                    view = masterViews[i].getCurrent();
                }
               
                if (view != null) {
                    tabbedPane.addTab(view.getTitle(), view.getIcon(), view);
                    view.applyViewDividerLocation();
                }
            }

            ChartPanel chartPanel = DcModules.getCurrent().isAbstract() ? null : DcModules.getCurrent().getChartPanel(true);
            if (chartPanel != null) {
View Full Code Here

        parent.notifyJobStarted();
       
      final Collection<DcObject> result = new ArrayList<DcObject>();
          Collection<String> keys = new ArrayList<String>();
         
          View view = DcModules.get(module).getParent() != null ?
                  DcModules.get(module).getParent().getCurrentSearchView() :
                  DcModules.get(module).getCurrentSearchView();

          if (getItemPickMode() == _ALL)
             keys.addAll(view.getItemKeys());
          else
             keys.addAll(view.getSelectedItemKeys());
         
          Collection<FilePatternPart> patternParts = pattern.getParts();
          Collection<Integer> addFields = new ArrayList<Integer>();
          for (FilePatternPart fpp : patternParts) {
            addFields.add(fpp.getField().getIndex());
View Full Code Here

        }
       
        @Override
        public void run() {
           
            View view = parent.getCurrent();
            boolean saved = view.isChangesSaved();
           
            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);
View Full Code Here

        if (insertView == null && hasInsertView()) {
            insertView = new MasterView(getIndex());
        
            DcTable table = new DcTable(this, false, true);
            table.setDynamicLoading(false);
            View view = new CachedChildView(insertView, View._TYPE_INSERT, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
            table.setView(view);
           
            insertView.addView(MasterView._TABLE_VIEW, view);
        }

        if (searchView == null && hasSearchView()) {
            searchView = new MasterView(getIndex());
            searchView.setTreePanel(this);
           
            DcTable table = new DcTable(this, false, true);
            View view = new View(searchView, View._TYPE_SEARCH, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
            table.setView(view);

            searchView.addView(MasterView._TABLE_VIEW, view);
        }
    }
View Full Code Here

        if (searchView == null && insertView == null) {
            if (hasInsertView()) {
                insertView = new MasterView(getIndex());
                DcTable table = new DcTable(this, false, true);
                table.setDynamicLoading(false);
                View view = new CachedChildView(insertView, View._TYPE_INSERT, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
                table.setView(view);
               
                insertView.addView(MasterView._TABLE_VIEW, view);
            }

            if (hasSearchView()) {
                searchView = new MasterView(getIndex());
                searchView.setTreePanel(this);
               
                DcTable table = new DcTable(this, false, true);
                View view = new View(searchView, View._TYPE_SEARCH, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
                table.setView(view);

                searchView.addView(MasterView._TABLE_VIEW, view);
            }
        }
View Full Code Here

            searchView = new MasterView(getIndex());
            searchView.setTreePanel(this);
           
            // list view
            DcObjectList list = new DcObjectList(this, DcObjectList._CARDS, true, true);
            View listView = new View(searchView, View._TYPE_SEARCH, list, getObjectNamePlural(), getIcon16(), MasterView._LIST_VIEW);
            list.setView(listView);

            searchView.addView(MasterView._LIST_VIEW, listView);           
        }
    }
View Full Code Here

        if (searchView == null) {
            searchView = new MasterView(getIndex());
            searchView.setTreePanel(this);
           
            DcTable table = new DcTable(this, true, true);
            View view = new View(searchView, View._TYPE_SEARCH, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
            table.setView(view);

            searchView.addView(MasterView._TABLE_VIEW, view);      
        }
    }   
View Full Code Here

            searchView = new MasterView(getIndex());
            searchView.setTreePanel(this);
           
            // list view
            DcObjectList list = new DcObjectList(this, DcObjectList._CARDS, true, true);
            View listView = new UserView(searchView, View._TYPE_SEARCH, list, getObjectNamePlural(), getIcon16(), MasterView._LIST_VIEW);
            list.setView(listView);

            searchView.addView(MasterView._LIST_VIEW, listView);           
        }
    }
View Full Code Here

TOP

Related Classes of net.datacrow.console.views.View

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.