Package lcmc.common.domain

Examples of lcmc.common.domain.StringValue


                          final String sourceDir,
                          final String sourceName,
                          final String targetDir) {
        super();
        this.type = type;
        setValue(TYPE, new StringValue(type));
        this.sourceDir = sourceDir;
        setValue(SOURCE_DIR, new StringValue(sourceDir));
        this.sourceName = sourceName;
        setValue(SOURCE_NAME, new StringValue(sourceName));
        this.targetDir = targetDir;
        setValue(TARGET_DIR, new StringValue(targetDir));
    }
View Full Code Here


    }

    @Override
    public Value getValue(final String parameter) {
        LOG.appError("getValue: wrong call to getValue");
        return new StringValue("???");
    }
View Full Code Here

    public static final String MODEL_HEADS = "model_heads";

    public VideoData(final String modelType, final String modelVRAM, final String modelHeads) {
        super();
        this.modelType = modelType;
        setValue(MODEL_TYPE, new StringValue(modelType));
        setValue(MODEL_VRAM, new StringValue(modelVRAM));
        setValue(MODEL_HEADS, new StringValue(modelHeads));
    }
View Full Code Here

                    if (!found) {
                        /* try it with underscores */
                        defaultValue = defaultValue.replaceAll("-", "_");
                    }
                    drbdBuildCombo.clear();
                    drbdBuildCombo.reloadComboBox(new StringValue(defaultValue), StringValue.getValues(items));
                    application.waitForSwing();
                    final String selectedItem = drbdBuildCombo.getStringValue();
                    drbdBuildCombo.setEnabled(true);
                    if (selectedItem == null) {
                        allDone();
View Full Code Here

    public static final String SAVED_MODEL = "saved_model";

    public SoundData(final String model) {
        super();
        this.model = model;
        setValue(MODEL, new StringValue(model));
    }
View Full Code Here

        super();
        this.name = name;
        this.uuid = uuid;
        this.autostart = autostart;
        if (autostart) {
            setValue(AUTOSTART, new StringValue("true"));
        } else {
            setValue(AUTOSTART, new StringValue("false"));
        }
        this.forwardMode = forwardMode;
        setValue(FORWARD_MODE, new StringValue(forwardMode));
        this.bridgeName = bridgeName;
        setValue(BRIDGE_NAME, new StringValue(bridgeName));
        this.bridgeSTP = bridgeSTP;
        setValue(BRIDGE_STP, new StringValue(bridgeSTP));
        this.bridgeDelay = bridgeDelay;
        setValue(BRIDGE_DELAY, new StringValue(bridgeDelay));
        this.bridgeForwardDelay = bridgeForwardDelay;
        setValue(BRIDGE_FORWARD_DELAY, new StringValue(bridgeForwardDelay));
    }
View Full Code Here

                    final String driverCache,
                    final boolean readonly,
       final boolean shareable) {
        super();
        this.type = type;
        setValue(TYPE, new StringValue(type));
        this.targetDev = targetDev;
        setValue(TARGET_DEVICE, new StringValue(targetDev));
        this.sourceFile = sourceFile;
        setValue(SOURCE_FILE, new StringValue(sourceFile));
        this.sourceDev = sourceDev;
        setValue(SOURCE_DEVICE, new StringValue(sourceDev));

        this.sourceProtocol = sourceProtocol;
        setValue(SOURCE_PROTOCOL, new StringValue(sourceProtocol));
        this.sourceName = sourceName;
        setValue(SOURCE_NAME, new StringValue(sourceName));
        this.sourceHostName = sourceHostName;
        setValue(SOURCE_HOST_NAME, new StringValue(sourceHostName));
        this.sourceHostPort = sourceHostPort;
        setValue(SOURCE_HOST_PORT, new StringValue(sourceHostPort));
        this.authUsername = authUsername;
        setValue(AUTH_USERNAME, new StringValue(authUsername));
        this.authSecretType = authSecretType;
        setValue(AUTH_SECRET_TYPE, new StringValue(authSecretType));
        this.authSecretUuid = authSecretUuid;
        setValue(AUTH_SECRET_UUID, new StringValue(authSecretUuid));

        this.targetBusType = targetBusType;
        setValue(TARGET_BUS_TYPE, new StringValue(targetBusType));
        this.driverName = driverName;
        setValue(DRIVER_NAME, new StringValue(driverName));
        this.driverType = driverType;
        setValue(DRIVER_TYPE, new StringValue(driverType));
        this.driverCache = driverCache;
        setValue(DRIVER_CACHE, new StringValue(driverCache));
        this.readonly = readonly;
        if (readonly) {
            setValue(READONLY, new StringValue("True"));
        } else {
            setValue(READONLY, new StringValue("False"));
        }
        this.shareable = shareable;
        if (shareable) {
            setValue(SHAREABLE, new StringValue("True"));
        } else {
            setValue(SHAREABLE, new StringValue("False"));
        }
    }
View Full Code Here

                        drbdDistItems = Arrays.asList(items);
                        application.invokeLater(new Runnable() {
                            @Override
                            public void run() {
                                drbdDistributionWidget.reloadComboBox(
                                        new StringValue(getHost().getDistributionVersion()),
                                        StringValue.getValues(items));
                                drbdDistributionWidget.setEnabled(true);
                            }
                        });
                        availKernels();
View Full Code Here

        final String distVersion = getHost().getDistributionVersion();
        if (drbdDistItems == null || !drbdDistItems.contains(distVersion)) {
            application.invokeLater(new Runnable() {
                @Override
                public void run() {
                    drbdKernelDirWidget.reloadComboBox(null, new Value[]{new StringValue(NO_MATCH_STRING)});
                }
            });
            availArchs();
            return;
        }
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                        .commandString("DrbdAvailKernels")
                        .convertCmdCallback(getDrbdInstallationConvertCmdCallback())
                        .execCallback(new ExecCallback() {
                            @Override
                            public void done(String answer) {
                                answer = NO_MATCH_STRING + '\n' + answer;
                                final String[] items = answer.split(NEWLINE);
                                drbdKernelDirItems = Arrays.asList(items);
                                application.invokeLater(new Runnable() {
                                    @Override
                                    public void run() {
                                        drbdKernelDirWidget.reloadComboBox(
                                                new StringValue(getHost().getKernelVersion()),
                                                StringValue.getValues(items));
                                        drbdKernelDirWidget.setEnabled(true);
                                    }
                                });
                                availArchs();
View Full Code Here

            || !drbdDistItems.contains(getHost().getDistributionVersion())
            || !drbdKernelDirItems.contains(kernelVersion)) {
            application.invokeLater(new Runnable() {
                @Override
                public void run() {
                    drbdArchWidget.reloadComboBox(null, new Value[]{new StringValue(NO_MATCH_STRING)});
                    drbdArchWidget.setEnabled(false);
                }
            });
            allDone(null);
            return;
        }
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                .commandString("DrbdAvailArchs")
                .convertCmdCallback(getDrbdInstallationConvertCmdCallback())
                .execCallback(new ExecCallback() {
                    @Override
                    public void done(String answer) {
                        answer = NO_MATCH_STRING + '\n' + answer;
                        final String[] items = answer.split(NEWLINE);
                        drbdArchItems = Arrays.asList(items);
                        application.invokeLater(new Runnable() {
                            @Override
                            public void run() {
                                drbdArchWidget.reloadComboBox(new StringValue(arch), StringValue.getValues(items));
                                drbdArchWidget.setEnabled(true);
                            }
                        });
                        if (drbdArchItems == null) {
                            allDone(null);
View Full Code Here

TOP

Related Classes of lcmc.common.domain.StringValue

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.