Package org.jfx4ee.adm4ee.business.configuration.entity

Examples of org.jfx4ee.adm4ee.business.configuration.entity.Domain


    Glassfish glassfish;
    Domain domain;

    @Before
    public void init() {
        domain = new Domain();
        domain.setServerType(ServerType.GLASSFISH);
        domain.setServerRootPath("C:\\glassfish-3.1.2.2");
        domain.setUrl("localhost:4848");
        domain.setDomainName("domain1");
        domain.setDomainUser("admin");
View Full Code Here


    }

    private void selectFirstItem() {
        if (!domainsListView.getItems().
                isEmpty()) {
            Domain d = domainsListView.getItems().get(0);
            domainsListView.getSelectionModel().
                    select(d);
            setSelectedDomain(d);
        }
    }
View Full Code Here

    }

    private void selectLastItem() {
        if (!domainsListView.getItems().
                isEmpty()) {
            Domain d = domainsListView.getItems().get(domainsListView.getItems().size() - 1);
            domainsListView.getSelectionModel().
                    select(d);
            setSelectedDomain(d);
        }
    }
View Full Code Here

    }

    @FXML
    public void addDomain() {
        logger.log(Level.INFO, "addDomain");
        Domain domain = new Domain();
        domain.setDomainName("New Domain" + (domainsListView.getItems().size() + 1));
        domain.setDomainUser("");
        domain.setDomainPassword("");
        domain.setServerRootPath("");
        domain.setServerType(ServerType.GLASSFISH);
        domainDataModel.getConfiguredDomainsList().add(domain);
        refreshDomainListViewCellFactory();
        ConfigurationManager.getInstance().getDomains().add(domain);

        setDirty(Boolean.TRUE);
View Full Code Here

            logger.log(Level.SEVERE, "Could not load config file ''{0}''! Creating a new one.", configFile);

            // File not found, so create a default file
            config = new Configuration();
            config.setLogLevel(Level.OFF);
            Domain domain = new Domain();
            domain.setServerRootPath("/Applications/Netbeans/glassfish-3.1.2.2");
            domain.setUrl("localhost:4848");
            domain.setDomainName("domain1");
            domain.setServerType(ServerType.GLASSFISH);
            domain.setDomainUser("admin");
            domain.setDomainPassword("");
            domain.setSsl(false);
            domain.setTemplate("");

            List<Domain> domains = config.getDomains();
            domains.add(domain);
            UIConfiguration uic = new UIConfiguration();
            uic.createDefaultConfig();
View Full Code Here

        for (Domain domain : domainDataModel.getConfiguredDomainsList()) {
            domain.setDefaultDomain(false);
        }

        if (defaultDomainCheckBox.isSelected()) {
            Domain d = (Domain) domainsListView.getSelectionModel().getSelectedItem();
            d.setDefaultDomain(true);
            domainDataModel.setDefaultDomain(d);
        } else {
            domainDataModel.setDefaultDomain(domainDataModel.findDefaultDomain());
        }
        refreshDomainListViewCellFactory();
View Full Code Here

TOP

Related Classes of org.jfx4ee.adm4ee.business.configuration.entity.Domain

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.