Class MessageList

    • Constructor Detail

      • MessageList

        public MessageList()
        Creates a new message list component. To populate the content of the list, use setItems(Collection).
      • MessageList

        public MessageList​(Collection<MessageListItem> items)
        Creates a new message list component, with the provided items rendered as messages.
        Parameters:
        items - the items to render as messages
        See Also:
        setItems(Collection)
      • MessageList

        public MessageList​(MessageListItem... items)
        Creates a new message list component, with the provided items rendered as messages.
        Parameters:
        items - the items to render as messages
        See Also:
        setItems(MessageListItem...)
    • Method Detail

      • setItems

        public void setItems​(Collection<MessageListItem> items)
        Sets the items that will be rendered as messages in this message list.
        Parameters:
        items - the items to set, not null and not containing any null items
      • setItems

        public void setItems​(MessageListItem... items)
        Sets the items that will be rendered as messages in this message list.
        Parameters:
        items - the items to set, none of which can be null
      • getItems

        public List<MessageListItem> getItems()
        Gets the items that are rendered as message components in this message list.
        Returns:
        an unmodifiable view of the list of items