Package com.nexirius.framework.datamodel

Examples of com.nexirius.framework.datamodel.ComboBoxModel


        if (c == null) {
            throw new ParserException("Enum " + name + " is not defined");
        }

        ComboBoxModel ret = (ComboBoxModel) c.newInstance(this);

        ret.setFieldName(name);

        if (init != null) {
            try {
                ret.setText(init);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
View Full Code Here


        values = new HashSet();
    }

    public DataModel newInstance(DataModelClasses classes)
            throws ParserException {
        return new ComboBoxModel(0, new SimpleArrayModel(values.toArray()), getName());
    }
View Full Code Here

        append(mailList = new MailListModel());
        append(html = new BooleanModel(false, "html"));
        append(sendAll = new BooleanModel(false, "sendAll"));
        append(interrupt = new BooleanModel(false, "interrupt"));
        append(progress = new ProgressModel(0, "progress"));
        append(separator = new ComboBoxModel(0, new SimpleArrayModel(SEPARATOR), "separator"));
        append(replaceStrings = new ReplaceStringsModel("ReplaceStrings"));
        append(attachmentList = new AttachmentListModel());
        append(listSorting = new ListSortingModel());
        listSorting.addDataModelListener(new SortingListener());
        license = new LicenseModel();
View Full Code Here

        append(showEnvironmentSelector);

        environments = new SimpleArrayModel(manager.getEnvironments().toArray(), FIELDNAME_ENVIRONMENTS);
        append(environments);

        currentEnvironment = new ComboBoxModel(0, environments, FIELDNAME_CURRENT_ENVIRONMENT);
        append(currentEnvironment);
        try {
            currentEnvironment.setText(initialEnvironment);
        } catch (Exception e) {
            //ignore
View Full Code Here

TOP

Related Classes of com.nexirius.framework.datamodel.ComboBoxModel

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.