Class HtmlField.HtmlFieldConditionContainer<T>

java.lang.Object
jp.ecuacion.splib.web.bean.HtmlField.HtmlFieldConditionContainer<T>
Type Parameters:
T - data type of the value
Enclosing class:
HtmlField

public static class HtmlField.HtmlFieldConditionContainer<T> extends Object
Stores multiple HtmlField conditions.

Conditions are stored in List, so the order matters.
If you set new HtmlField("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 HtmlField("name").setXxx("X").setXxx(KEYWORD, "update", "A")

  • Constructor Details

    • HtmlFieldConditionContainer

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