Examples of ItemConfig


Examples of de.odysseus.calyxo.panels.conf.ItemConfig

    ListConfig list = context.lookupListConfig("list");
    assertNotNull(list);
    Iterator items = list.getItemConfigs();
    assertTrue(items.hasNext());
    ItemConfig item = (ItemConfig)items.next();
    context.push(item); // --> /panel/item

    param = context.lookupParamConfig("param");
    assertNotNull(param);
    assertEquals("test.item.param", param.getValue());
View Full Code Here

Examples of org.openhab.model.persistence.persistence.ItemConfig

    for(EObject itemCfg : config.getItems()) {
      if (itemCfg instanceof AllConfig) {
        return true;
      }
      if (itemCfg instanceof ItemConfig) {
        ItemConfig singleItemConfig = (ItemConfig) itemCfg;
        if(item.getName().equals(singleItemConfig.getItem())) {
          return true;
        }
      }
      if (itemCfg instanceof GroupConfig) {
        GroupConfig groupItemCfg = (GroupConfig) itemCfg;
View Full Code Here

Examples of org.openhab.model.persistence.persistence.ItemConfig

   
    // otherwise, go through the detailed definitions
    Set<Item> items = new HashSet<Item>();
    for(EObject itemCfg : config.getItems()) {
      if (itemCfg instanceof ItemConfig) {
        ItemConfig singleItemConfig = (ItemConfig) itemCfg;
        try {
          Item item = itemRegistry.getItem(singleItemConfig.getItem());
          items.add(item);
        } catch (ItemNotFoundException e) {
          logger.debug("Item '{}' does not exist.", singleItemConfig.getItem());
        }
      }
      if (itemCfg instanceof GroupConfig) {
        GroupConfig groupItemCfg = (GroupConfig) itemCfg;
        String groupName = groupItemCfg.getGroup();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.