Class PPartialListFmt

java.lang.Object
com.portal.web.fmt.PPartialListFmt

public class PPartialListFmt extends Object
Retrieves a subset of items from a list. Manipulates the data until the user clicks Save, then calls PInfranetServlet to save the data in the database.
Version:
%version: 3 % %date_modified: Thu Nov 08 18:30:44 2001 %
Author:
sujata
  • Constructor Details

    • PPartialListFmt

      public PPartialListFmt()
      Constructs a Format Bean that returns a partial list of items. The Format Bean does all the manipulation of the data until the user clicks Save. When the user clicks Save, PInfranetServlet is called to save the data to the database.
  • Method Details

    • getSubDataArray

      public Object[] getSubDataArray(int fromIndex, int size)
      Gets a subset of the list when the bean is loaded.
      Parameters:
      fromIndex - the start index into the list
      size - the number of sub items to be returned
      Returns:
      An array of objects or null.
    • setDataArray

      public void setDataArray(Object[] result)
      Sets the current data array indexed property.
      Parameters:
      result - an array of objects
    • getDataArray

      public Object getDataArray(int index)
      Gets the item at the specified index from the list when the bean is loaded.
      Parameters:
      index - the index for the object
      Returns:
      The object found at the specified index.
    • setDataArray

      public void setDataArray(int index, Object result)
      Sets the object at index in the list.
      Parameters:
      index - the array location at which to set the object
      result - the object to place in the array at the specified location
    • getNoItemsLeft

      public int getNoItemsLeft()
      Gets the number of items in the list yet to be displayed when the bean is loaded.
      Returns:
      The number of items yet to be displayed.
    • getStartIndex

      public int getStartIndex()
      Gets the start index when the bean is loaded.
      Returns:
      The int value to use for the starting index.
    • setStartIndex

      public void setStartIndex(int index)
      Sets the starting point of the subset of the list.
      Parameters:
      index - the starting point in the array