Package com.nexirius.framework.datamodel

Examples of com.nexirius.framework.datamodel.DataModelEnumeration


        file.writeTextLines(lines);
    }

    public void addLocaleEntry(String locale, EntryModel newEntry) {
        DataModelEnumeration e = getEnumeration();

        while (e.hasMore()) {
            EntryModel entry = (EntryModel)e.next();

            if (entry.getKey().equals(newEntry.getKey())) {
                entry.setLocaleText(locale, newEntry.getValueText());
                return ;
            }
View Full Code Here


    }

    public StringVector getExtensions() {
        StringVector ret = new StringVector();

        DataModelEnumeration en = extensions.getEnumeration();

        while (en.hasMore()) {
            ExtensionModel ext = (ExtensionModel) en.next();

            ret.sortInsert(ext.getExtension());
        }

        return ret;
View Full Code Here

        return ret;
    }

    public StringVector getLocales() {
        StringVector ret = new StringVector();
        DataModelEnumeration en = locales.getEnumeration();

        while (en.hasMore()) {
            LocaleModel lm = (LocaleModel)en.next();

            ret.sortInsert(lm.getFileExtension());
        }

        return ret;
View Full Code Here

        setDefault(EN);
    }

    private void setDefault(LocaleModel locale) {
        DataModelEnumeration en = getEnumeration();

        while (en.hasMore()) {
            LocaleModel lm = (LocaleModel) en.next();

            String lang = lm.getFileExtension();
            lm.setDefault(lang.equals(locale.getFileExtension()));
        }
    }
View Full Code Here

    }

    protected void appendTable(StringBuffer ret, DataModel model) {
        ret.append("<TABLE BORDER='1' WIDTH='100%'>");

        DataModelEnumeration e = ((StructModel) model).getEnumeration();

        while (e.hasMore()) {
            DataModel child = e.next();

            ret.append("<TR>");
            ret.append("<TD>");
            ret.append("$!translate(\"");
            ret.append(child.getFieldName());
View Full Code Here

TOP

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

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.