|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.helper.PreferenceBean
This bean is used to store preferred values for different application parameters. An instance of this bean is stored as an attribute with name NAME in the applications scope to be used as the preference of all sessions that have not made any alterations to the default values. If the owner of a session makes a change of the preferred value of any parameter a bean of this class with name NAME should be stored in the session scope. Any tags in a JSP-page using this bean could use an Expression Language syntax expression construct like "${preferenceBean.locale}" to retrieve the preferred locale or "${preferenceBean.resultPageLength} to retrieve the preferred length of a search result page.
Field Summary | |
static String |
LOCALE
Name of preference parameter locale |
static String |
NAME
Bean name |
static String |
PROG_SORT_ORDER
Name of preference parameter result page sort order |
static String |
RESULT_PAGE_LENGTH
Name of preference parameter result page length |
Constructor Summary | |
PreferenceBean()
Default constructor |
|
PreferenceBean(PreferenceBean bean)
Copy constructor. |
Method Summary | |
String |
getLocale()
Gets the locale attribute of the bean |
Sorter |
getProgSortOrder()
Gets the search result sort order attribute of the bean |
int |
getResultPageLength()
Gets the search result page lentgh attribute of the bean |
void |
setLocale(String aLocale)
Sets the locale attribute of the bean |
boolean |
setPreferenceAttributes(Map prefAttrs)
Sets the appropriate preference attributes in the bean |
void |
setProgSortOrder(Sorter aProgSortOrder)
Sets the search result sort order attribute of the bean |
void |
setProgSortOrder(String aProgSortOrder)
Sets the search result sort order attribute of the bean from a given name |
void |
setResultPageLength(int aResultPageLength)
Sets the search result page length attribute of the bean |
void |
setResultPageLength(String aResultPageLength)
Sets the search result page length attribute of the bean |
String |
toString()
Make a string representation of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME
public static final String LOCALE
public static final String RESULT_PAGE_LENGTH
public static final String PROG_SORT_ORDER
Constructor Detail |
public PreferenceBean()
public PreferenceBean(PreferenceBean bean)
bean
- Copy values from this PreferenceBeanMethod Detail |
public String getLocale()
public void setLocale(String aLocale)
aLocale
- The new locale valuepublic int getResultPageLength()
public void setResultPageLength(int aResultPageLength)
aResultPageLength
- The new page length valuepublic void setResultPageLength(String aResultPageLength)
aResultPageLength
- The new page length valuepublic void setProgSortOrder(Sorter aProgSortOrder)
aProgSortOrder
- The new sort order valuepublic void setProgSortOrder(String aProgSortOrder)
aProgSortOrder
- The name of the new sort order valuepublic Sorter getProgSortOrder()
public boolean setPreferenceAttributes(Map prefAttrs)
prefAttrs
- The attributes to set in the bean
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |