Examples of Setting


Examples of net.datacrow.core.settings.Setting

   
    private void build() {
        setLayout(Layout.getGBL());

        group = new SettingsGroup("", "");
        group.add(new Setting(DcRepository.ValueTypes._STRING,
                PanelImportConfiguration._IMPORT_FILE, null, ComponentFactory._FILEFIELD,
                "", DcResources.getText("lblModuleImportFile"), true, true));        
       
        settingsPanel = new SettingsPanel(group, true);
        settingsPanel.setVisible(true);
View Full Code Here

Examples of org.criticalfailure.torchlight.core.application.data.model.Setting

        if(settings.isEmpty())
        {
            logger.info("Creating initial standard setting.");

            {
                Setting setting = (Setting)createDataInstance(Setting.class, false, null, null, false);
                setting.setName(localeResources.getLocaleString("setting.default.name"));
                setting.setDescription(localeResources.getLocaleString("setting.default.description"));
                setting.setDefault(true);

                logger.debug("adding setting to list");
                settings.add(setting);

                logger.info("Saving default setting...");
View Full Code Here

Examples of org.criticalfailure.torchlight.core.model.model.Setting

                }
                break;
               
            case ACTION_TYPE_SETTING:
                try {
                    Setting setting;

                    // find a setting creation helper
                    if(runWizard) {
                        logger.debug("running wizard to create setting");
View Full Code Here

Examples of org.criticalfailure.torchlight.core.model.model.Setting

                    widgetSelected(e);
                }

                public void widgetSelected(SelectionEvent e) {
                    logger.debug("setting campaign setting; index = " + setting.getSelectionIndex());
                    Setting s = (Setting)setting.getData("setting" + setting.getSelectionIndex());
                    logger.trace("s: " + s);
                   
                    if(s != null) {
                      campaign.setSetting(s);
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

        }

        if (dataObject.getType().isSequenced()) {
            List settings = ((SDOSequence)dataObject.getSequence()).getSettings();
            for (int index = 0, size = dataObject.getSequence().size(); index < size; index++) {
                Setting nextSetting = (Setting)settings.get(index);

                Property prop = dataObject.getSequence().getProperty(index);
                if (prop == null || prop.getType().isDataType()) {
                    Setting copySetting = nextSetting.copy(copy);
                    ((SDOSequence)copy.getSequence()).getSettings().add(copySetting);
                    ((SDOSequence)copy.getSequence()).addValueToSettings(copySetting);
                }
            }
        }
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

       
        Property seqProperty = null;
        try {
            List settings = origSequence.getSettings();
            for (int index = 0, size = origSequence.size(); index < size; index++) {
                Setting nextSetting = (Setting)settings.get(index);               
                seqProperty = origSequence.getProperty(nextSetting);
               
                if ((null == seqProperty) || seqProperty.getType().isDataType()) {
                    Setting copySetting = nextSetting.copy(copy);
                    copySequence.getSettings().add(copySetting);
                    copySequence.addValueToSettings(copySetting);
                } else {
                    Object copySeqValue = null;
                    Object origSeqValue = origSequence.getValue(index);
                   
                    if (cs != null) {
                        Object orig = cs.getReverseDeletedMap().get(origSeqValue);
                        if (orig != null) {
                            origSeqValue = orig;
                        }
                    }
                   
                    if (origSeqValue instanceof XMLRoot) {
                        origSeqValue = ((XMLRoot)origSeqValue).getObject();
                    }

                    // lookup copy if not null, if null then the copySeqValue will be null in the reduced scope assignment above
                    if (null != origSeqValue) {
                        copySeqValue = doMap.get(origSeqValue);
                    } else {
                        // as a secondary verification to the assignment above - make sure the copy is null as well
                        copySeqValue = null;// this assignment is however redundant in our reduced scope assignment above
                    }

                    //now we have the new value
                    Setting copySetting = nextSetting.copy(copy, copySeqValue);
                    copySequence.getSettings().add(copySetting);
                    copySequence.addValueToSettings(copySetting);
                }

                /**
 
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

            if (value instanceof List) {
                // iterate list
                for (Iterator i = ((List) value).iterator(); i.hasNext();) {
                    // add a setting to the end of the sequence
                    Object aValue = i.next();
                    Setting setting = convertToSetting(property, aValue);
                    valuesToSettings.put(new Key(property, aValue), setting);
                    settings.add(index++, setting);
                    // no need to check updateContainment flag -
                    // ListWrapper.add() will not pass an entire List here
                    listWrapper.add(aValue, false);
                }
            } else {
                // set individual list item
                // add a setting to the end of the sequence
                Setting setting = convertToSetting(property, value);
                valuesToSettings.put(new Key(property, value), setting);
                settings.add(index, setting);
                int listIdx = getIndexInList(property, value);
                if (listIdx != -1) {
                    listWrapper.add(listIdx, value, false);
                } else {
                    listWrapper.add(value, false);
                }
            }
        } else {
            dataObject.setPropertyInternal((SDOProperty) property, value, false);
            // Update the settings
            Setting setting = convertToSetting(property, value);
            valuesToSettings.put(new Key(property, value), setting);
            settings.add(index, setting);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

    }

    public void addText(int index, String text) {
        // Trigger store of original sequence
        dataObject._setModified(true);
        Setting textSetting = new Setting(null, TEXT_XPATH);
        textSetting.setObject(dataObject);
        textSetting.setValue(text, false);
        settings.add(index, textSetting);
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

    }

    public void addText(String text) {
        // Trigger store of original sequence
        dataObject._setModified(true);
        Setting textSetting = new Setting(null, TEXT_XPATH);
        textSetting.setObject(dataObject);
        textSetting.setValue(text, false);
        settings.add(textSetting);
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.sequenced.Setting

            throw SDOException.invalidIndex(null, toIndex);
        }
        // trigger deep copy of sequence (if applicable)
        dataObject._setModified(true);

        Setting setting = settings.remove(fromIndex);
        settings.add(toIndex, setting);

        Property prop = getProperty(setting);
        if (prop != null && prop.isMany()) {
            ListWrapper lw = (ListWrapper) dataObject.getList(prop);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.