Class ForEach<EACHTYPE>

java.lang.Object
com.webfirmframework.wffweb.interpreter.ForEach<EACHTYPE>
All Implemented Interfaces:
Serializable, Cloneable

public abstract class ForEach<EACHTYPE> extends Object implements Serializable, Cloneable
Since:
1.0.0
See Also:
  • Constructor Details

    • ForEach

      public ForEach(AbstractHtml base, Collection<EACHTYPE> values)
      Parameters:
      base - the parent object i.e. the outer tag, usually this (current object). This argument cannot be null.
      values - from which to do the iteration
    • ForEach

      @SafeVarargs public ForEach(AbstractHtml base, EACHTYPE... values)
      Parameters:
      base - the parent object i.e. the outer tag, usually this (current object). This argument cannot be null.
      values - from which to do the iteration
  • Method Details

    • each

      public abstract void each(AbstractHtml base, Object values, EACHTYPE eachValue)
      invokes for each looping.
      Parameters:
      base - the base object given as the argument.
      values - the values object passed as a constructor argument. Type cast to the corresponding type.
      eachValue - each value from the given values passed in constructor.
      Since:
      1.0.0