Interface UIExpandCollapseBlock

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void collapse()
      Makes the block rendered collapsed.
      void expand()
      Makes the block rendered expanded.
      String getId()
      Returns the id previously defined, or null.
      UserMessage getLabel()
      Returns the previously defined label, or an empty one if none was defined.
      boolean isCollapsed()
      Returns true if the component is configured to be rendered collapsed.
      void setId​(String anId)
      Sets an id for the expand/collapse block.
      void setLabel​(UserMessage aLabel)
      Sets the label of the expand/collapse block.
      void setLabel​(String aLabel)
      Sets the label of the expand/collapse block.
    • Method Detail

      • setLabel

        void setLabel​(String aLabel)
        Sets the label of the expand/collapse block.

        aLabel must not be null.

        Parameters:
        aLabel - the label to set
      • setLabel

        void setLabel​(UserMessage aLabel)
        Sets the label of the expand/collapse block.

        aLabel must not be null.

        Parameters:
        aLabel - the label to set
      • getLabel

        UserMessage getLabel()
        Returns the previously defined label, or an empty one if none was defined.

        Never returns null.

      • expand

        void expand()
        Makes the block rendered expanded.
      • collapse

        void collapse()
        Makes the block rendered collapsed.
      • isCollapsed

        boolean isCollapsed()
        Returns true if the component is configured to be rendered collapsed.

        If expand() nor collapse() have not been called yet, returns true.

      • setId

        void setId​(String anId)
        Sets an id for the expand/collapse block.

        When components ordering is dynamic over pages refresh (that is, their order depends on the record state, or any other parameter), it is recommended to invoke this method with a stable identifier, to ensure the block state remains the same if the page is redisplayed after a page submit.

        Parameters:
        anId - The id to set for the block; the id attribute must respect the W3C Recommendation (in particular, by being unique in the page).
        See Also:
        https://www.w3.org/TR/REC-html40/struct/global.html#adef-id
      • getId

        String getId()
        Returns the id previously defined, or null.