Examples of DcTable


Examples of net.datacrow.console.components.tables.DcTable

            table.setVisibleColumns(new int[] {Item._SYS_MODULE, Item._SYS_DISPLAYVALUE, Item._SYS_LOANDUEDATE, Item._SYS_LOANDAYSTILLOVERDUE});
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        DcTable table = (DcTable) e.getSource();
        if (e.getClickCount() == 2 && table.getSelectedIndex() > -1)
            open();
    }
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

        list = new DcObjectList(DcObjectList._ELABORATE, false, true);
        JScrollPane sp1 = new JScrollPane(list);
        list.addMouseListener(this);
        sp1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
       
        table = new DcTable(getModule(), true, false);
        table.setDynamicLoading(false);
        table.activate();
        JScrollPane sp2 = new JScrollPane(table);
        table.addMouseListener(this);
        sp1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

    @Override
    protected void initializeUI() {
        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

Examples of net.datacrow.console.components.tables.DcTable

 
  public CreateMultipleItemsDialog(int moduleIdx) {
    super();
   
    this.moduleIdx = moduleIdx;
    this.table = new DcTable(DcModules.get(moduleIdx), false, false);
   
    setTitle(DcResources.getText("lblAddMultiple"));
   
    build();
   
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

    @Override
    protected void initializeUI() {
        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

Examples of net.datacrow.console.components.tables.DcTable

    protected void initializeUI()  {
        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

Examples of net.datacrow.console.components.tables.DcTable

        JLabel databaseNameLabel = ComponentFactory.getLabel(DcResources.getText("lblDatabase"));
        JLabel databaseNameTextLabel = ComponentFactory.getLabel(DcSettings.getString(DcRepository.Settings.stConnectionString));
        JLabel databaseDriverLabel = ComponentFactory.getLabel(DcResources.getText("lblDatabaseDriver"));
        JLabel databaseDriverTextLabel = ComponentFactory.getLabel(DcSettings.getString(DcRepository.Settings.stDatabaseDriver));
       
        DcTable table = ComponentFactory.getDCTable(true, false);
        table.setEnabled(false);
        table.setColumnCount(2);
        TableColumn columnName = table.getColumnModel().getColumn(0);
        TableColumn columnCount = table.getColumnModel().getColumn(1);
        columnName.setHeaderValue(DcResources.getText("lblName"));
        columnCount.setHeaderValue(DcResources.getText("lblItems"));
        table.applyHeaders();
       
        columnCount.setCellRenderer(NumberTableCellRenderer.getInstance());
       
        int total = 0;
        for (DcModule module : DcModules.getModules()) {
            if (!module.isAbstract() && module.isTopModule()) {
                int count = getRecordCount(module);
                total += count;
                table.addRow(new Object[] {module.getLabel(), count});
            }
        }

        table.addRow(new Object[] {DcResources.getText("lblTotal"), total});

        JScrollPane sp = new JScrollPane(table);
        sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
        sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
       
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

        tabbedPane.setFont(getSystemFont());
        return tabbedPane;
    }

    public static final DcTable getDCTable(boolean readonly, boolean caching) {
        DcTable table = new DcTable(readonly, caching);
        return table;
    }
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

        DcTable table = new DcTable(readonly, caching);
        return table;
    }

    public static final DcTable getDCTable(DcModule module, boolean readonly, boolean caching) {
      DcTable table = new DcTable(module, readonly, caching);
        return table;
    }
View Full Code Here

Examples of net.datacrow.console.components.tables.DcTable

        if (insertView == null && hasInsertView()) {
            insertView = new MasterView(getIndex());

            // table view
            if (!isAbstract()) {
              DcTable table = new DcTable(this, false, true);
              table.setDynamicLoading(false);
              View tableView = new View(insertView, View._TYPE_INSERT, table,
                      DcResources.getText("lblNewItem", getObjectNamePlural()),
                      IconLibrary._icoItemsNew, MasterView._TABLE_VIEW);
              table.setView(tableView);
              insertView.addView(MasterView._TABLE_VIEW, tableView);
            }
           
            // list view
            DcObjectList list = new DcObjectList(this, DcObjectList._CARDS, true, true);
            View listView = new View(insertView, View._TYPE_INSERT, list,
                    DcResources.getText("lblNewItem", getObjectNamePlural()),
                    IconLibrary._icoItemsNew, MasterView._LIST_VIEW);
            list.setView(listView);
           
            insertView.addView(MasterView._LIST_VIEW, listView);
        }
       
        if (searchView == null && hasSearchView() ) {
            searchView = new MasterView(getIndex());
            searchView.setTreePanel(this);
           
            // table view
            if (!isAbstract()) {
              DcTable table = new DcTable(this, false, true);
              View tableView = new View(searchView, View._TYPE_SEARCH, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
              table.setView(tableView);
             
              searchView.addView(MasterView._TABLE_VIEW, tableView);
            }
           
            // list view
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.