Class AbstractBrowser

All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware, webwork.action.ParameterAware
Direct Known Subclasses:
GroupBrowser, GroupPickerBrowser, MockAbstractBrowser, UserBrowser, UserPickerBrowser

public abstract class AbstractBrowser extends IssueActionSupport implements webwork.action.ParameterAware
An abstract browser that implements a few helpful things for paging.
See Also:
  • Field Details

    • params

      protected Map params
  • Constructor Details

    • AbstractBrowser

      public AbstractBrowser()
  • Method Details

    • getCurrentPage

      public abstract List getCurrentPage()
      Return the current 'page' of items (given max and start) for the current filter
    • getBrowsableItems

      public abstract List getBrowsableItems()
    • getPager

      public abstract PagerFilter getPager()
    • resetPager

      public abstract void resetPager()
    • setParameters

      public void setParameters(Map parameters)
      Specified by:
      setParameters in interface webwork.action.ParameterAware
    • getSingleParam

      protected String getSingleParam(String s)
    • setStart

      public void setStart(String start)
    • getNiceStart

      public int getNiceStart()
      Return the 'readable' start (ie 1 instead of 0).
    • getNiceEnd

      public int getNiceEnd()
      Return the 'readable' end.
    • getMaxValues

      public Collection<String> getMaxValues()
      The different preset values that max can take.

      Used by forms to display a select box of max items per page.