Class If

  • All Implemented Interfaces:
    Action

    public class If
    extends AbstractAction
    Tests whether an condition is true and render the child only if the condition is true.
    Author:
    tomyeh
    • Constructor Detail

      • If

        public If()
    • Method Detail

      • getTest

        public boolean getTest()
        Returns the test result.
      • setTest

        public void setTest​(boolean cond)
        Sets the test result.
      • isTrim

        public boolean isTrim()
        Returns whether to trim the result.

        Default: true.

      • setTrim

        public void setTrim​(boolean trim)
        Sets whether to trim the result.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object