Package net.datacrow.settings.definitions

Examples of net.datacrow.settings.definitions.IDefinitions


        String toString = "";
       
        if (value != null) {
            switch (dataType) {
              case DcRepository.ValueTypes._DEFINITIONGROUP:
                IDefinitions definitions = (IDefinitions) value;
                for (Definition definition : definitions.getDefinitions()) {
                        toString += "{" + definition.toSettingValue() + "}";
                }
                  break;
                case DcRepository.ValueTypes._DIMENSION:
                    int x = (int) ((Dimension) value).getWidth();
View Full Code Here


        try {
            switch (dataType) {

            case DcRepository.ValueTypes._DEFINITIONGROUP:
                    int group = sValue.indexOf("}");
                    IDefinitions definitions = (IDefinitions) getValue();
                   
                    if (definitions == null) {
                        if (key.equals(DcRepository.Settings.stProgramDefinitions))
                            definitions = new ProgramDefinitions();
                        else if (key.equals(DcRepository.ModuleSettings.stQuickViewFieldDefinitions))
                            definitions = new QuickViewFieldDefinitions();
                        else if (key.equals(DcRepository.ModuleSettings.stWebFieldDefinitions))
                            definitions = new QuickViewFieldDefinitions();
                        else
                            definitions = new DcFieldDefinitions();
                    }
                   
                    while (group > -1) {
                        String value = sValue.substring(1, group);
                        definitions.add(value);
                        if (sValue.length() > group + 1) {
                            sValue = sValue.substring(group + 1, sValue.length());
                            group = sValue.indexOf("}");
                        } else {
                            group = -1;
                        }
                    }
                   
                    if (definitions.getSize() > 0)
                        value = definitions;

                    break;
                case DcRepository.ValueTypes._DIMENSION:
                    int index1 = sValue.indexOf("/");
View Full Code Here

TOP

Related Classes of net.datacrow.settings.definitions.IDefinitions

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.