Package de.odysseus.calyxo.panels.conf

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


    if (log.isTraceEnabled())
      log.trace("list " + name);
    PanelsSupport support = PanelsSupport.getInstance(pageContext);
    context = support.getContext(pageContext);

    ListConfig list = context.lookupListConfig(name);
    if (list == null) {
      throw new JspException("Could not get list " + name);
    }
    items = new ListStatus(list);
    if (varStatus != null) {
View Full Code Here


      }
      return result;
    }

    ListConfig lookupListConfig(String name) {
      ListConfig result = item.getListConfig(name);
      if (result == null && previous != null) {
        result = previous.lookupListConfig(name);
      }
      return result;
    }
View Full Code Here

    param = context.lookupParamConfig("param");
    assertNotNull(param);
    assertEquals("test.panel.param", param.getValue());
    context.pop(); // --> /panel

    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");
View Full Code Here

  /**
   * Search receiver and generalizations for a contained list with
   * given name
   */
  ListConfig findListConfigByGeneralization(String name) {
    ListConfig list = getListConfig(name);
    if (list == null && generalizedPanel != null) {
      list = generalizedPanel.findListConfigByGeneralization(name);
    }
    return list;
  }
View Full Code Here

   * @see de.odysseus.calyxo.panels.conf.PanelConfig#findListConfig(java.lang.String, java.util.Locale)
   */
  public ListConfig findListConfig(String name, Locale locale) {
    PanelConfigImpl panel = this;
    while (panel != null) {
      ListConfig result = panel.findListConfigByGeneralization(name);
      if (result != null) {
        return result;
      }
      panel = panel.lookupBase(locale);
    }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.panels.conf.ListConfig

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.