Class HtmlItem.HtmlItemConditionContainer<T>

java.lang.Object
jp.ecuacion.splib.web.item.HtmlItem.HtmlItemConditionContainer<T>
Type Parameters:
T - data type of the value
Enclosing class:
HtmlItem

public static class HtmlItem.HtmlItemConditionContainer<T> extends Object
Stores multiple HtmlItem conditions.

Conditions are stored in List, so the order matters.
If you set new HtmlItem("name").setXxx(KEYWORD, "update", "A") .setXxx(ROLE, "admin", "B").setXxx("X") and parameters have keyword update and role "admin", the resultant value becomes "A".
.setXxx("C") sets the default value so even if you set as follows and you give a parameter keyword "update", the resultant value is "A".
new HtmlItem("name").setXxx("X").setXxx(KEYWORD, "update", "A")

  • Constructor Details

    • HtmlItemConditionContainer

      public HtmlItemConditionContainer(T defaultValue)
      Returns the defaultValue.
      Parameters:
      defaultValue - defaultValue
  • Method Details