|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mlw.vlh.ValueListInfo
This bean holds all the information needed to retrieve a ValueList. This information is needed to allow for server side sorting, paging and focusing.
Field Summary | |
static Integer |
ASCENDING
Constant for an ascending order. |
static Integer |
DESCENDING
Constant for an descending order. |
static String |
DO_FOCUS
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static byte |
FOCUS_FOUND
Focus value was founded. |
static byte |
FOCUS_NOT_FOUND
Focus value was not founded. |
static String |
FOCUS_PARAM_PREFIX
General prefix for focus's parameters, DO_FOCUS has different |
static String |
FOCUS_PROPERTY
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static byte |
FOCUS_STATUS_NOT_DEFINED
Focus status when is not used. |
static byte |
FOCUS_TOO_MANY_ITEMS
Focusing is not possible, because in ResultSet are too many items - rows. |
static String |
FOCUS_VALUE
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static String |
PAGING_NUMBER_PER
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static String |
PAGING_PAGE
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static String |
PAGING_PARAM_PREFIX
General prefix for paging's parameters. |
static String |
SORT_COLUMN
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static String |
SORT_DIRECTION
The string name of the attribute that should be used in Map backed transports, such as a Request Object. |
static String |
SORT_PARAM_PREFIX
General prefix for sorting's parameters. |
static String |
VALUE_LIST_NAME
The name of the ValueList requested. |
Constructor Summary | |
ValueListInfo()
Default constructor. |
|
ValueListInfo(Map parameters)
Default constructor. |
|
ValueListInfo(String primaryColumn,
Integer primaryDirection)
Creates a new ValueListInfo that contains sorting information |
|
ValueListInfo(String primaryColumn,
Integer primaryDirection,
Map filters)
Creates a new ValueListInfo that contains sorting information |
Method Summary | |
protected String |
getFilterParameterAsString(String key)
Extracts a value with the given key from filters and converts it to a String. |
Map |
getFilters()
Getter for property filters. |
int |
getFocusedRowNumberInTable()
|
String |
getFocusProperty()
|
byte |
getFocusStatus()
|
String |
getFocusValue()
|
int |
getPagingNumberPer()
Getter for the number of VOs per page. |
int |
getPagingPage()
Getter for the curent page to display. |
String |
getSortingColumn()
Returns an array of column (property) names. |
Integer |
getSortingDirection()
Returns an array of directions. |
int |
getTotalNumberOfEntries()
Getter for the total number VOs. |
int |
getTotalNumberOfPages()
Getter for the total number of pages. |
boolean |
isDoFocus()
|
boolean |
isDoFocusAgain()
Used for generating links, if any errors found, doFocus is set to false for next retrieving of the valueList. |
boolean |
isFocusEnabled()
Return true if the focusing is enabled. |
void |
resetSorting()
|
void |
setDoFocus(boolean enabled)
|
void |
setFilters(Map filters)
The map to build the query. |
void |
setFocusedRowNumberInTable(int absolutPositionInResultSet)
Set the certain row in table to be focused. |
void |
setFocusProperty(String focusProperty)
Set focusProperty, if null, remove FOCUS_PROPERTY AND FOCUS_VALUE |
void |
setFocusStatus(byte status)
Acceptable values: FOUND, NOT_FOUND, TOO_MANY_ITEMS |
void |
setFocusValue(String focusValue)
|
void |
setPagingNumberPer(int numberPerPage)
Sets the number of items per page. |
void |
setPagingPage(int pageNumber)
Sets the current page number. |
void |
setPagingPageFromRowNumber(int resultSetRowNumber)
The resultSetRowNumber starts from 0. |
void |
setPrimarySortColumn(String column)
|
void |
setPrimarySortDirection(Integer direction)
|
void |
setTotalNumberOfEntries(int totalNumberOfEntries)
Sets the total number of items that meet the filter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String VALUE_LIST_NAME
public static final Integer DESCENDING
public static final Integer ASCENDING
public static final String PAGING_PARAM_PREFIX
public static final String PAGING_PAGE
public static final String PAGING_NUMBER_PER
public static final String SORT_PARAM_PREFIX
public static final String SORT_COLUMN
public static final String SORT_DIRECTION
public static final String DO_FOCUS
public static final String FOCUS_PARAM_PREFIX
public static final String FOCUS_VALUE
public static final String FOCUS_PROPERTY
public static final byte FOCUS_STATUS_NOT_DEFINED
public static final byte FOCUS_FOUND
public static final byte FOCUS_NOT_FOUND
public static final byte FOCUS_TOO_MANY_ITEMS
Constructor Detail |
public ValueListInfo()
public ValueListInfo(Map parameters)
parameters
- The filters/parameters to initialize.public ValueListInfo(String primaryColumn, Integer primaryDirection)
primaryColumn
- The column to sort byprimaryDirection
- The direction to sort the ValueList
bypublic ValueListInfo(String primaryColumn, Integer primaryDirection, Map filters)
primaryColumn
- The column to sort byprimaryDirection
- The direction to sort the ValueList
byfilters
- The filters of search criteria.Method Detail |
public Map getFilters()
public String getSortingColumn()
getSortingColumn
in interface PagingInfo
public void setPrimarySortColumn(String column)
public Integer getSortingDirection()
getSortingDirection
in interface PagingInfo
public void setPrimarySortDirection(Integer direction)
public int getPagingPage()
getPagingPage
in interface PagingInfo
public int getTotalNumberOfPages()
getTotalNumberOfPages
in interface PagingInfo
public int getTotalNumberOfEntries()
getTotalNumberOfEntries
in interface PagingInfo
public int getPagingNumberPer()
getPagingNumberPer
in interface PagingInfo
public void setTotalNumberOfEntries(int totalNumberOfEntries)
totalNumberOfEntries
- The total number of items that meet the filter.public void setFilters(Map filters)
filters
- Map to build the querypublic void setPagingNumberPer(int numberPerPage)
numberPerPage
- The number of line items per page.public void setPagingPage(int pageNumber)
pageNumber
- The current page number.public String getFocusValue()
getFocusValue
in interface PagingInfo
public void setFocusValue(String focusValue)
focusValue
- The focusValue to set.public String getFocusProperty()
getFocusProperty
in interface PagingInfo
public void setFocusProperty(String focusProperty)
focusProperty
- The focusProperty to set.public boolean isFocusEnabled()
PagingInfo
isFocusEnabled
in interface PagingInfo
public boolean isDoFocus()
isDoFocus
in interface PagingInfo
public boolean isDoFocusAgain()
isDoFocusAgain
in interface PagingInfo
public void setDoFocus(boolean enabled)
net.mlw.vlh.PagingInfo#setFocusSucces(boolean)
public void setFocusedRowNumberInTable(int absolutPositionInResultSet)
absolutPositionInResultSet
- public int getFocusedRowNumberInTable()
public void setPagingPageFromRowNumber(int resultSetRowNumber)
public void setFocusStatus(byte status)
public byte getFocusStatus()
getFocusStatus
in interface PagingInfo
public String toString()
Object.toString()
public void resetSorting()
protected String getFilterParameterAsString(String key)
key
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |