Package fr.soleil.comete.tango.data.service

Examples of fr.soleil.comete.tango.data.service.TangoKey


    protected void initKey() {
        if (TangoAttributeHelper.isAttributeReadOnly(getDeviceName(), getAttributeName())) {
            displayReadValue = true;
        }

        key = new TangoKey();
        if (displayReadValue) {
            TangoKeyTool.registerAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }
        else {
            TangoKeyTool.registerWriteAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }

        // init attribute quality key
        qualityKey = new TangoKey();
        TangoKeyTool.registerAttributeQuality(qualityKey, getDeviceName(), getAttributeName());
    }
View Full Code Here


     
        if ((canInitDAO() && (widget != null))) {

            boolean connected;
            for (final String element : attributeNameList) {
                final TangoKey aKey = new TangoKey();
                TangoKeyTool.registerAttribute(aKey, element);

                connected = ((ChartViewerBox) mybox).connectWidget(widget, aKey);

                if (!connected) {
View Full Code Here

    if ((canInitDAO() && (widget != null))) {

      boolean connected;
      for (int i = 0; i < xAttributeNameList.length; i++) {
        final TangoKey xKey = new TangoKey();
        final TangoKey yKey = new TangoKey();

        TangoKeyTool.registerAttribute(xKey, xAttributeNameList[i]);
        TangoKeyTool.registerAttribute(yKey, yAttributeNameList[i]);
        connected = ((ChartViewerBox) mybox).connectWidgetDual(((IChartViewer)widget),
            xKey, yKey);

        if (this.displayAttributeLabel) {
          // Affichage du label
          String dataViewId = yKey.getInformationKey();
          String displayName = TangoAttributeHelper.getLabel(
              TangoKeyTool.getDeviceName(yKey),
              TangoKeyTool.getAttributeName(yKey));
          ((IChartViewer)widget).setDataViewDisplayName(dataViewId, displayName);
        }
View Full Code Here

    }

    @Override
    public void initDAO() {
        if (m_cmdhelper.isEntityDefined()) {
            TangoKey commandKey = new TangoKey();
            TangoKeyTool.registerCommand(commandKey, m_cmdhelper.getDeviceName(),
                    m_cmdhelper.getEntityName());
            StringMatrixCommandDataSource cmdArray = (StringMatrixCommandDataSource) refreshingManager
                    .createDataSource(commandKey);
View Full Code Here

    @Override
    protected void initKey() {
        if (displayReadValue) {
            super.initKey();// display read part
        } else {
            key = new TangoKey();
            TangoKeyTool.registerWriteAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }
    }
View Full Code Here

  /**
   * init the tango key on attribute (read part). This method can be overriden
   * to register another type of key (ie attribute write part, command, etc.)
   */
  protected void initKey() {
    key = new TangoKey();
    TangoKeyTool.registerAttribute(key, tangoHelper.getDeviceName(),
        tangoHelper.getEntityName());
  }
View Full Code Here

        return result;
    }

    @Override
    protected void initKey() {
        key = new TangoKey();
        TangoKeyTool.registerWriteAttribute(key, getDeviceName(), getAttributeName());

        readKey = new TangoKey();
        TangoKeyTool.registerAttribute(readKey, getDeviceName(), getAttributeName());

        // init attribute quality key
        qualityKey = new TangoKey();
        TangoKeyTool.registerAttributeQuality(qualityKey, getDeviceName(), getAttributeName());
    }
View Full Code Here

        if ((canInitDAO() && (widget != null))) {
            clearDAO();

            boolean connected;
            for (final String element : attributeNameList) {
                final TangoKey aKey = new TangoKey();
                TangoKeyTool.registerAttribute(aKey, element);

                connected = ((ChartViewerBox) mybox).connectWidget(widget, aKey);

                if (!connected) {
View Full Code Here

    if ((canInitDAO() && (widget != null))) {
      clearDAO();

      boolean connected;
      for (int i = 0; i < xAttributeNameList.length; i++) {
        final TangoKey xKey = new TangoKey();
        final TangoKey yKey = new TangoKey();

        TangoKeyTool.registerAttribute(xKey, xAttributeNameList[i]);
        TangoKeyTool.registerAttribute(yKey, yAttributeNameList[i]);
        connected = ((ChartViewerBox) mybox).connectWidgetDual(((IChartViewer)widget),
            xKey, yKey);

        if (this.displayAttributeLabel) {
          // Affichage du label
          String dataViewId = yKey.getInformationKey();
          String displayName = TangoAttributeHelper.getLabel(
              TangoKeyTool.getDeviceName(yKey),
              TangoKeyTool.getAttributeName(yKey));
          ((IChartViewer)widget).setDataViewDisplayName(dataViewId, displayName);
        }
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.comete.tango.data.service.TangoKey

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.