Interface ListModelSupport

  • All Known Implementing Classes:
    ComboBoxTag, ListBoxTag

    public interface ListModelSupport

    Definition of an interface for tags that support a list model.

    This interface will be implemented by tag handler classes that create components like list boxes or combo boxes that are associated with a ListModel. Other tags that create such models will look for enclosing tags implementing this interface to set the newly created models.

    This interface is also used for resolving the list model and looking it up in a BeanContext. Therefore there are some other methods for querying information related to the list model.

    Version:
    $Id: ListModelSupport.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Method Detail

      • getListModel

        ListModel getListModel()
        Returns the current ListModel. This method can return null if no model has been set so far.
        Returns:
        the current ListModel
      • setListModel

        void setListModel​(ListModel model)
        Sets the ListModel.
        Parameters:
        model - the ListModel to be set
      • getModelRef

        String getModelRef()
        Returns the reference name of the list model. This name is used for looking up the ListModel in the current BeanContext.
        Returns:
        the name of the bean representing the list model
      • getContext

        org.apache.commons.jelly.JellyContext getContext()
        Returns the current Jelly context. This object is needed for performing a lookup to find the list model object.
        Returns:
        the current Jelly context