Package fr.soleil.data.service

Examples of fr.soleil.data.service.IKey


                   
            @SuppressWarnings("unchecked")
            AbstractCometeBox<ITarget> box = (AbstractCometeBox<ITarget>) params
                .getBox();
            ITarget widget = params.getWidget();
            IKey key = params.getKey();

            if (box.connectWidget(widget, key, false)) {
              if (widget instanceof IComponent){
                IComponent iComponent = (IComponent) widget;
                iComponent.setEnabled(params.isEnabled())
View Full Code Here


        //
        // chartBox.connectWidgetDual(viewer, keyX, keyY3);
        // chartBox.connectWidget(viewer, keyY3);
        // chartBox.connectWidget(viewer, keyY4);

        IKey dualKey = ChartViewerBox.createDualKey(keyY4, keyY5);
        chartBox.connectWidget(viewer, dualKey);
        chartBox.setSplitMatrixThroughColumns(dualKey, true);
        viewer.setDataViewMarkerStyle(keyY5.getInformationKey(), IChartViewer.MARKER_BOX);

    }
View Full Code Here

        final JPanel panel = new JPanel(new BorderLayout());

        SimulatedKeyGenerator generator = new SimulatedKeyGenerator();

        for (int i = 0; i < 7; ++i) {
            IKey key = null;
            if (i == 0) {
                key = generator.getBooleanMatrixKey();
            }
            if (i == 1) {
                key = generator.getBooleanScalarKey();
View Full Code Here

     * Initializes the {@link IKey} to access Tango data with expected result type
     *
     * @return A {@link IKey}
     */
    public IKey initKey() {
        IKey key = new TangoKey();
        prepareTangoTarget(key);
        return key;
    }
View Full Code Here

    }

    protected void initQualityLink(IKey key) {
        if (qualityController != null && key != null) {

            IKey qualityKey = null;
            ColorationLevel colorationLevel = getColorationLevelType();
            if (colorationLevel != null) {
                switch (colorationLevel) {
                    case ATTRIBUTE_QUALITY:
                        qualityKey = new TangoKey();
View Full Code Here

            setSource(null);
        }
    }

    protected void doInit() {
        IKey key = initKey();
        initSource(key);
        initQualityLink(key);
        setRefreshingStrategy(RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD);
        updateRefreshingStrategy();
        updateToolTip(key);
View Full Code Here

    }

    protected String printDataSource(final AbstractDataSource<?> source) {
        final StringBuilder result = new StringBuilder();
        result.append(source.getClass().getSimpleName() + "-" + source.hashCode());
        final IKey key = source.getOriginDescriptor();
        if (key != null) {
            result.append("(");
            result.append(key.getInformationKey());
            result.append(")");
            result.append("\n\t");
        }
        return result.toString();
    }
View Full Code Here

    }

    protected String printDataSource(final AbstractDataSource<?> source) {
        final StringBuilder result = new StringBuilder();
        result.append(source.getClass().getSimpleName() + "-" + source.hashCode());
        final IKey key = source.getOriginDescriptor();
        if (key != null) {
            result.append("(");
            result.append(key.getInformationKey());
            result.append(")");
            result.append("\n\t");
        }
        return result.toString();
    }
View Full Code Here

    }

    protected String printDataSource(final AbstractDataSource<?> source) {
        final StringBuilder result = new StringBuilder();
        result.append(source.getClass().getSimpleName() + "-" + source.hashCode());
        final IKey key = source.getOriginDescriptor();
        if (key != null) {
            result.append("(");
            result.append(key.getInformationKey());
            result.append(")");
            result.append("\n\t");
        }
        return result.toString();
    }
View Full Code Here

    @Override
    public void selectedItemChanged(EventObject event) {
        // This is a special case: we don't want to keep a refreshable source, only to set a value
        String item = ((ComboBox) getComponent()).getSelectedValue();
        if ((item != null) && (!item.trim().isEmpty())) {
            IKey key = new TangoKey();
            TangoKeyTool.registerCommand(key, m_helper.getDeviceName(), item);
            AbstractDataSource<?> dao = refreshingManager.createDataSource(key);
            if (dao != null) {
                dao.setData(null);
            }
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.