Package net.datacrow.core.objects

Examples of net.datacrow.core.objects.Tab


        df.addEntry(new DataFilterEntry(DataFilterEntry._AND, DcModules._TAB, Tab._A_NAME, Operator.EQUAL_TO, name));
       
        Collection<String> tabs = getKeyList(df);
        if (tabs.size() == 0) {
            try {
                Tab tab = (Tab) DcModules.get(DcModules._TAB).getItem();
                tab.setIDs();
                tab.setValue(Tab._A_NAME, name);
                tab.setValue(Tab._D_MODULE, Long.valueOf(module));
               
                int order = name.equals(DcResources.getText("lblInformation")) ? 1 :
                            name.equals(DcResources.getText("lblSummary")) ? 0 :
                            2;
               
                tab.setValue(Tab._C_ORDER, Long.valueOf(order));
               
                if (name.equalsIgnoreCase(DcResources.getText("lblInformation")) || name.equals(DcResources.getText("lblSummary")))
                    tab.setValue(Tab._B_ICON, new DcImageIcon(DataCrow.installationDir + "icons" + File.separator + "information.png"));
                else if (name.equalsIgnoreCase(DcResources.getText("lblTechnicalInfo")))
                    tab.setValue(Tab._B_ICON, new DcImageIcon(DataCrow.installationDir + "icons" + File.separator + "informationtechnical.png"));
               
                tab.saveNew(false);
            } catch (Exception e) {
                logger.error(e, e);
                exists = false;
            }
        }
View Full Code Here


        super(DcModules._TAB, "Tab", "Tab", "Tab", "Tab", "Tabs");
    }

    @Override
    public DcObject createItem() {
        return new Tab();
    }
View Full Code Here

TOP

Related Classes of net.datacrow.core.objects.Tab

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.