Package com.neophob.sematrix.core.glue

Examples of com.neophob.sematrix.core.glue.PresetSettings


    /**
     * update preset stuff
     */
    public void updateCurrentPresetState() {
        Collector col = Collector.getInstance();
        PresetSettings preset = col.getPresets().get(col.getSelectedPreset());
        if (preset!=null) {
            String presetState;
            if (preset.isSlotUsed()) {
                presetState = messages.getString("GeneratorGui.STR_TRUE"); //$NON-NLS-1$
            } else {
                presetState = messages.getString("GeneratorGui.STR_FALSE"); //$NON-NLS-1$
            }

            presetInfo.setText(messages.getString("GeneratorGui.VALID_ENTRY_EMPTY")+presetState); //$NON-NLS-1$
            presetName.setText(preset.getName());               
        } else {
            presetInfo.setText(messages.getString("GeneratorGui.VALID_ENTRY_FALSE")); //$NON-NLS-1$
            presetName.setText("");                             //$NON-NLS-1$
        }
       
View Full Code Here


                break;
             
            case SAVE_PRESET:
                LOG.log(Level.INFO, "SAVE_PRESET");
                Collector col = Collector.getInstance();
                PresetSettings preset = col.getPresets().get(col.getSelectedPreset());
                if (preset!=null) {
                    preset.setName(callback.getCurrentPresetName());
                }
                createMessage(ValidCommands.SAVE_PRESET, "");
                break;
             
            case BUTTON_TOGGLE_FREEZE:
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.glue.PresetSettings

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.