|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ListStateModelImp
Implementation of the ListState model
| Field Summary | |
private int |
currentPage
Current Page, which is displayed |
private java.util.HashSet |
highlight
Collection with the highlight rows |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
sortColumn
Column to sort |
private SortOrder |
sortOrder
The sort order |
| Fields inherited from interface com.cc.framework.ui.model.ListStateModel |
PROP_PAGE |
| Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
| Constructor Summary | |
ListStateModelImp()
|
|
| Method Summary | |
int |
getCurrentPage()
Returns the zero based index of the page which is currently display. |
java.lang.String[] |
getMarked()
Retrieves all marked items |
java.lang.String |
getSortColumn()
Returns the name of the column which is currently used for sorting. |
SortOrder |
getSortOrder()
Returns the sort order |
boolean |
isMarked(java.lang.String uniqueKey)
Checks if the specified row is selected. |
void |
mark(java.lang.String uniqueKey)
Selects a specified row. |
void |
reset()
Resets the actual state of a control to the initial state |
void |
resetSortInfo()
Resets any sorting Information |
void |
setCurrentPage(int page)
Sets the index for the page which is currently display to another value. |
void |
setSortInfo(java.lang.String column,
SortOrder direction)
Sets the sort order for the specified column |
void |
synchronizeState(PropertyMap properties)
This method applies the given state properties to the controls state model |
void |
unmark(java.lang.String uniqueKey)
Unselects a specified row. |
void |
unmarkAll()
Unselects all selected rows |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private int currentPage
private java.lang.String sortColumn
private SortOrder sortOrder
private java.util.HashSet highlight
| Constructor Detail |
public ListStateModelImp()
| Method Detail |
public int getCurrentPage()
ListStateModel
getCurrentPage in interface ListStateModelListStateModel.getCurrentPage()public java.lang.String getSortColumn()
ListStateModel
getSortColumn in interface ListStateModelListStateModel.getSortColumn()public SortOrder getSortOrder()
ListStateModel
getSortOrder in interface ListStateModelListStateModel.getSortOrder()public boolean isMarked(java.lang.String uniqueKey)
ListStateModel
isMarked in interface ListStateModeluniqueKey - The unique key
ListStateModel.isMarked(java.lang.String)public java.lang.String[] getMarked()
ListStateModel
getMarked in interface ListStateModelListStateModel.getMarked()public void mark(java.lang.String uniqueKey)
ListStateModel
mark in interface ListStateModeluniqueKey - The unique key of the row which should be selectedListStateModel.mark(java.lang.String)public void setCurrentPage(int page)
ListStateModel
setCurrentPage in interface ListStateModelpage - The new page indexListStateModel.setCurrentPage(int)
public void setSortInfo(java.lang.String column,
SortOrder direction)
ListStateModel
setSortInfo in interface ListStateModelcolumn - Name of the columndirection - The sort orderListStateModel.setSortInfo(java.lang.String, com.cc.framework.common.SortOrder)public void resetSortInfo()
ListStateModel
resetSortInfo in interface ListStateModelListStateModel.resetSortInfo()public void unmark(java.lang.String uniqueKey)
ListStateModel
unmark in interface ListStateModeluniqueKey - The unique key of the row which should be unselectedListStateModel.unmark(java.lang.String)public void unmarkAll()
ListStateModel
unmarkAll in interface ListStateModelListStateModel.unmarkAll()public void reset()
StateModel
reset in interface StateModelStateModel.reset()
public void synchronizeState(PropertyMap properties)
throws java.lang.Exception
StateModel
synchronizeState in interface StateModelproperties - State properties
java.lang.Exception - is thrown when an error occurs during executionStateModel.synchronizeState(com.cc.framework.util.PropertyMap)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||