Class Pager

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Pager extends DefaultBean
Bean that is useful to browse a very large list of data. It includes a set of navigation buttons to step ahead or behind by one or going to the first and last element of the list as well as an slider and a text field for directly focus on a list item.
Author:
jaume dominguez faus
See Also:
  • Field Details

    • HORIZONTAL

      public static int HORIZONTAL
    • VERTICAL

      public static int VERTICAL
  • Constructor Details

    • Pager

      public Pager(int orientation)
      This is the default constructor. Creates a new instance of ItemBrowser with zero items.
    • Pager

      public Pager(int lowIndex, int itemCount, int orientation)
      Creates a new instance of ItemBrowser defining its edges
      Parameters:
      lowIndex - , the lowest edge.
      itemCount - , the highest edge.
  • Method Details

    • setValue

      public void setValue(int number, boolean fireEvent)
      This, sets the bean value and triggers an event that can be captured by a listener.
      Parameters:
      number -
      fireEvent - , if true then this method will fire the event. If false, then the value will be changed silently.
    • setItemCount

      public void setItemCount(int count)
      Sets the amount of items that this component will handle.
      Parameters:
      count -
    • setStartingPosition

      public void setStartingPosition(int initialPosition)
      Sets the starting point if none is defined the pager will start from 0.
      Parameters:
      initial - position
    • setCurrentPosition

      public void setCurrentPosition(int pos)