Package com.portal.web.fmt
Class PPartialListFmt
java.lang.Object
com.portal.web.fmt.PPartialListFmt
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 Summary
ConstructorsConstructorDescriptionConstructs a Format Bean that returns a partial list of items. -
Method Summary
Modifier and TypeMethodDescriptiongetDataArray
(int index) Gets the item at the specified index from the list when the bean is loaded.int
Gets the number of items in the list yet to be displayed when the bean is loaded.int
Gets the start index when the bean is loaded.Object[]
getSubDataArray
(int fromIndex, int size) Gets a subset of the list when the bean is loaded.void
setDataArray
(int index, Object result) Sets the object at index in the list.void
setDataArray
(Object[] result) Sets the current data array indexed property.void
setStartIndex
(int index) Sets the starting point of the subset of the list.
-
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
Gets a subset of the list when the bean is loaded.- Parameters:
fromIndex
- the start index into the listsize
- the number of sub items to be returned- Returns:
- An array of objects or null.
-
setDataArray
Sets the current data array indexed property.- Parameters:
result
- an array of objects
-
getDataArray
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
Sets the object at index in the list.- Parameters:
index
- the array location at which to set the objectresult
- 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
-