Class ChatTemplatesListBean

  • All Implemented Interfaces:
    Serializable

    @ViewScoped
    @Named
    public class ChatTemplatesListBean
    extends Object
    implements Serializable
    Controller bean for chat templates listing and selection.
    Since:
    8.4.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • ChatTemplatesListBean

        public ChatTemplatesListBean()
    • Method Detail

      • onRefreshTemplateList

        public void onRefreshTemplateList()
        handler for the 'refresh' action provided by the chat template selection dialog
      • onRowSelected

        public void onRowSelected​(org.primefaces.event.SelectEvent<ChatTemplatesListBean.GroupedTemplate> event)
        handler for the 'select template' action provided by the chat template selection dialog
      • onRowUnselected

        public void onRowUnselected​(org.primefaces.event.UnselectEvent<ChatTemplatesListBean.GroupedTemplate> event)
        handler for the 'unselect template' action provided by the chat template selection dialog
      • filterTemplates

        public boolean filterTemplates​(Object value,
                                       Object filter,
                                       Locale locale)
        Filter method for the 'global filter' of the templates table (as expected by the 'globalFilterFunction' attribute of the datatable
        Parameters:
        value - the value (i.e. grouped template) to check for matching
        filter - the user's input
        locale - may be used for locale dependent filtering
        Returns:
        true if the provided value matches the user's filter input, false if not