Class AbstractGroup.ElementMap

java.lang.Object
org.zkoss.idom.impl.AbstractGroup.ElementMap
Enclosing class:
AbstractGroup

protected static class AbstractGroup.ElementMap extends Object
Stores a 'cached' map of child elements to speed up the access.
  • Constructor Details

    • ElementMap

      protected ElementMap()
  • Method Details

    • put

      public final void put(Element e, Element following)
      Put an element into the map. If the "following" argument is assocaied the same name, we will add the element before the "following".
    • get

      public final Element get(String name)
      Get the element with name. If you have many values associated with the same key, it returned the head for you.
    • getAll

      public final List<Element> getAll(String name)
      Get a readonly list of all elements with name.
    • remove

      public final void remove(Element e)
      Remove e from the map.
    • any

      public final boolean any()
      Returns true if any element.
    • names

      public final Set<String> names()
      Returns a readonly set of names of all elements.
    • size

      public final int size()
      Returns the number of elements.