Package fr.soleil.data.service

Examples of fr.soleil.data.service.IKey


    protected void refreshGUI() {
        if (model != null && !model.isEmpty()) {
            // setStatusModel();
            deviceLabel.setText(getModel());
            getDeviceStatusLabel().setDeviceName(getModel());
            IKey statusKey = generateAttributeKey(ATTR_STATUS);
            stringBox.connectWidget(statusLabel, statusKey);
            stringBox.connectWidget(getDeviceStatusLabel(), statusKey);
            statusLabel.setOpaque(true);
            getDeviceStatusLabel().setOpaque(true);
View Full Code Here


        }

        boolean unavailable = ((configList == null) || (configList.trim().isEmpty()));
        currentConfigEditButton.setEnabled(!unavailable);

        IKey currentConfig = generateAttributeKey("currentConfig");
        setWidgetModel(currentConfigViewer, stringBox, currentConfig);
    }
View Full Code Here

        projectDirectoryDialogModel.setDefaultModel(generateCommandKey(getModel(), SET_DEFAULT_ROOT_DIRECTORY_CMD));
    }

    public void updateFileNameDialogModel(FileNameDialogModel fileNameDialogModel) {

        IKey fileNameKey = generateAttributeKey(getModel(), FILE_NAME_ATTR);
        fileNameDialogModel.setApplyModel(fileNameKey);
        fileNameDialogModel.setValueModel(fileNameKey);
        fileNameKey = null;
        fileNameDialogModel.setWriteValueModel(generateWriteAttributeKey(getModel(), FILE_NAME_ATTR));
        fileNameDialogModel.setDefaultModel(generateCommandKey(getModel(), SET_DEFAULT_FILE_NAME_CMD));
View Full Code Here

        fileNameDialogModel.setSymbolListModel(symbols);
    }

    public void updateSubDirectoryDialogModel(SubDirectoryDialogModel subDirectoryDialogModel) {

        IKey subDirectoryKey = generateAttributeKey(getModel(), SUB_DIRECTORY_ATTR);
        subDirectoryDialogModel.setApplyModel(subDirectoryKey);
        subDirectoryDialogModel.setValueModel(subDirectoryKey);
        subDirectoryKey = null;
        subDirectoryDialogModel.setWriteValueModel(generateWriteAttributeKey(getModel(), SUB_DIRECTORY_ATTR));
        subDirectoryDialogModel.setDefaultModel(generateCommandKey(getModel(), SET_DEFAULT_SUB_DIRECTORY_CMD));
View Full Code Here

    }

    public void updateFileNameEditDialog(FileNameEditDialog fileNameEditDialog) {

        fileNameEditDialog.loadPreferences();
        IKey fileNameKey = generateAttributeKey(getModel(), "filename");
        fileNameEditDialog.setApplyModel(fileNameKey);
        fileNameEditDialog.setValueModel(fileNameKey);
        fileNameKey = null;
        fileNameEditDialog.setWriteValueModel(generateWriteAttributeKey(getModel(), "filename"));
        fileNameEditDialog.setDefaultModel(generateCommandKey(getModel(), "setDefaultFileName"));
View Full Code Here

    }

    public void updateSubDirectoryEditDialog(SubDirectoryEditDialog subDirectoryEditDialog) {

        subDirectoryEditDialog.loadPreferences();
        IKey subDirectoryKey = generateAttributeKey(getModel(), "subDirectory");
        subDirectoryEditDialog.setApplyModel(subDirectoryKey);
        subDirectoryEditDialog.setValueModel(subDirectoryKey);
        subDirectoryKey = null;
        subDirectoryEditDialog.setWriteValueModel(generateWriteAttributeKey(getModel(),
                "subDirectory"));
View Full Code Here

        TangoKeyTool.registerAttribute(yTangoKey, deviceName, attribute);
        if (xTangoKey != null) {
            // Connect Widget to the source in dual
            String attributeName = TangoKeyTool.getAttributeName(xTangoKey);
            boolean column = (attributeName.indexOf("actuator_2") > -1);
            IKey dualKey = ChartViewerBox.createDualKey(xTangoKey, yTangoKey);
            chartBox.setSplitMatrixThroughColumns(dualKey, column);
            chartBox.connectWidget(chartViewer, dualKey);
            // chartBox.setSplitMatrixThroughColumns(dualKey, column);
            // chartBox.connectWidgetDual(chartViewer, xTangoKey, yTangoKey);
        }
View Full Code Here

        }
        chartViewer.setDataViewsSortedOnX(false);
    }

    private void connectAttribute(String deviceName, String attribute, int axis) {
        IKey dataKey = null;
        TangoKey yTangoKey = new TangoKey();
        TangoKeyTool.registerAttribute(yTangoKey, deviceName, attribute);
        if (xTangoKey != null) {
            // Connect Widget to the source in dual
            String attributeName = TangoKeyTool.getAttributeName(xTangoKey);
View Full Code Here

            }
        }
    }

    private void connectAttribute(String deviceName, String attribute, int axis, TangoKey xTangoKey) {
        IKey dataKey = null;
        TangoKey yTangoKey = new TangoKey();
        TangoKeyTool.registerAttribute(yTangoKey, deviceName, attribute);
        if (xTangoKey != null) {
            // Connect Widget to the source in dual
            String attributeName = TangoKeyTool.getAttributeName(xTangoKey);
            boolean column = (attributeName.indexOf("actuator_2") > -1);
            dataKey = ChartViewerBox.createDualKey(xTangoKey, yTangoKey);
            chartBox.setSplitMatrixThroughColumns(dataKey, column);
            // System.out.println("connectWidget dual x=" +
            // xTangoKey.getInformationKey());
            // System.out.println("connectWidget dual y=" +
            // yTangoKey.getInformationKey());
            // System.out.println("connectWidget dual=" +
            // dataKey.getInformationKey());
        } else {
            // Connect Widget to the source
            // System.out.println("connectWidget=" +
            // yTangoKey.getInformationKey());
            dataKey = yTangoKey;
        }
        // Set on the desired axis information Key is equal to the dataView id
        setRefreshingPeriod(yTangoKey);
        String dataViewId = yTangoKey.getInformationKey();
        // System.out.println("Attribute Key = " +
        // tangoKey.getInformationKey());
        setDataViewConfiguration(dataViewId, axis, deviceName, attribute, -1);
        // Bug 0024053 set configuration axis before add data
        if (dataKey != null && !connectedDataList.contains(dataKey.getInformationKey())) {
            // System.out.println("connectWidget=" +
            // dataKey.getInformationKey());
            connectedDataList.add(dataKey.getInformationKey());
            chartBox.connectWidget(chartViewer, dataKey);
        }
    }
View Full Code Here

            }
        }
    }

    private void connectAttribute(String deviceName, String attribute, int axis, TangoKey xTangoKey) {
        IKey dataKey = null;
        TangoKey yTangoKey = new TangoKey();
        TangoKeyTool.registerAttribute(yTangoKey, deviceName, attribute);
        if (xTangoKey != null) {
            // Connect Widget to the source in dual
            String attributeName = TangoKeyTool.getAttributeName(xTangoKey);
            boolean column = (attributeName.indexOf("actuator_2") > -1);
            dataKey = ChartViewerBox.createDualKey(xTangoKey, yTangoKey);
            chartBox.setSplitMatrixThroughColumns(dataKey, column);
            // System.out.println("connectWidget dual x=" + xTangoKey.getInformationKey());
            // System.out.println("connectWidget dual y=" + yTangoKey.getInformationKey());
            // System.out.println("connectWidget dual=" + dataKey.getInformationKey());
        }
        else {
            // Connect Widget to the source
            // System.out.println("connectWidget=" + yTangoKey.getInformationKey());
            dataKey = yTangoKey;
        }
        // Set on the desired axis information Key is equal to the dataView id
        setRefreshingPeriod(yTangoKey);
        String dataViewId = yTangoKey.getInformationKey();
        // System.out.println("Attribute Key = " + tangoKey.getInformationKey());
        setDataViewConfiguration(dataViewId, axis, deviceName, attribute, -1);
        // Bug 0024053 set configuration axis before add data
        if (dataKey != null && !connectedDataList.contains(dataKey.getInformationKey())) {
            // System.out.println("connectWidget=" + dataKey.getInformationKey());
            connectedDataList.add(dataKey.getInformationKey());
            chartBox.connectWidget(chartViewer, dataKey);
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.data.service.IKey

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.