Package fr.soleil.comete.dao.tangodao.device

Examples of fr.soleil.comete.dao.tangodao.device.StringArrayDeviceProperty


     * @see fr.soleil.comete.bean.AbstractTangoBean#refreshGUI()
     */
    @Override
    protected void refreshGUI() {
        // valeur de l'expression
        StringArrayDeviceProperty property = new StringArrayDeviceProperty(this.model,
                this.expressionProperty);
        if (property != null) {
            String[] data = property.getData();
            if (data != null && data.length > 0) {
                for (int i = 0; i < data.length; i++) {
                    String sData = data[i];
                    String[] splits = sData.split(",");
                    if (splits != null && splits.length == 2)
                        if (splits[0].endsWith(valueAttribute)) {
                            String value = splits[1];
                            this.jListExpression.setValueAt(value, 0);
                        }

                }
            }

        }

        // valeur de value
        this.valueViewer.setOpaque(true);
        setWidgetModel(this.valueViewer, generateAttributeKey(this.valueAttribute));

        // valeur de where
        property = new StringArrayDeviceProperty(this.model, this.whereProperty);

        if (property != null) {
            String[] data = property.getData();
            if (data != null) {
                this.jListWhere.setListData(data);
            }

        }
View Full Code Here


   * @param propertyName : nom de la propriete
   * @return les valeurs de la propriete
   */
  protected String[] getStringArrayFromProperty(String propertyName) {
    String[] values = new String[0];
    StringArrayDeviceProperty property = new StringArrayDeviceProperty(getModel(), propertyName);

    if(property != null) {
      values = property.getData();
    }

    return values;

  }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.dao.tangodao.device.StringArrayDeviceProperty

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.