com.cc.framework.ui.model.imp
Class TreelistStateModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.TreeStateModelImp
      extended bycom.cc.framework.ui.model.imp.TreelistStateModelImp
All Implemented Interfaces:
ListStateModel, java.io.Serializable, StateModel, TreelistStateModel, TreeStateModel

public class TreelistStateModelImp
extends TreeStateModelImp
implements TreelistStateModel

Implementation of the TreelistStateModel interface

Version:
$Revision: 1.9 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  int currentPage
          Current Page, which is displayed
private static long serialVersionUID
          Serial Version UID
private  java.lang.String sortColumn
          Column to sort
private  SortOrder sortOrder
          The sort order
 
Fields inherited from class com.cc.framework.ui.model.imp.TreeStateModelImp
 
Fields inherited from interface com.cc.framework.ui.model.ListStateModel
PROP_PAGE
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Fields inherited from interface com.cc.framework.ui.model.TreeStateModel
PROP_EXPANDED, PROP_SELECTED
 
Constructor Summary
TreelistStateModelImp()
           
 
Method Summary
 int getCurrentPage()
          Returns the zero based index of the page which is currently display.
 java.lang.String getSortColumn()
          Returns the name of the column which is currently used for sorting.
 SortOrder getSortOrder()
          Returns the sort order
 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
 
Methods inherited from class com.cc.framework.ui.model.imp.TreeStateModelImp
collapse, collapseAll, expand, getMarked, getSelected, isExpanded, isMarked, isSelected, mark, select, unmark, unmarkAll, unselectAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cc.framework.ui.model.ListStateModel
getMarked, isMarked, mark, unmark, unmarkAll
 
Methods inherited from interface com.cc.framework.ui.model.TreeStateModel
collapse, collapseAll, expand, getMarked, getSelected, isExpanded, isMarked, isSelected, mark, select, unmark, unmarkAll, unselectAll
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

currentPage

private int currentPage
Current Page, which is displayed


sortColumn

private java.lang.String sortColumn
Column to sort


sortOrder

private SortOrder sortOrder
The sort order

Constructor Detail

TreelistStateModelImp

public TreelistStateModelImp()
Method Detail

getCurrentPage

public int getCurrentPage()
Description copied from interface: ListStateModel
Returns the zero based index of the page which is currently display.

Specified by:
getCurrentPage in interface ListStateModel
Returns:
Zero based index of the page which is currently displayed
See Also:
ListStateModel.getCurrentPage()

getSortColumn

public java.lang.String getSortColumn()
Description copied from interface: ListStateModel
Returns the name of the column which is currently used for sorting.

Specified by:
getSortColumn in interface ListStateModel
Returns:
The name of the column which is currently used for sorting
See Also:
ListStateModel.getSortColumn()

getSortOrder

public SortOrder getSortOrder()
Description copied from interface: ListStateModel
Returns the sort order

Specified by:
getSortOrder in interface ListStateModel
Returns:
The sort order
See Also:
ListStateModel.getSortOrder()

setCurrentPage

public void setCurrentPage(int page)
Description copied from interface: ListStateModel
Sets the index for the page which is currently display to another value.

Specified by:
setCurrentPage in interface ListStateModel
Parameters:
page - The new page index
See Also:
ListStateModel.setCurrentPage(int)

setSortInfo

public void setSortInfo(java.lang.String column,
                        SortOrder direction)
Description copied from interface: ListStateModel
Sets the sort order for the specified column

Specified by:
setSortInfo in interface ListStateModel
Parameters:
column - Name of the column
direction - The sort order
See Also:
ListStateModel.setSortInfo(java.lang.String, com.cc.framework.common.SortOrder)

resetSortInfo

public void resetSortInfo()
Description copied from interface: ListStateModel
Resets any sorting Information

Specified by:
resetSortInfo in interface ListStateModel
See Also:
ListStateModel.resetSortInfo()

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
Overrides:
reset in class TreeStateModelImp
See Also:
StateModel.reset()

synchronizeState

public void synchronizeState(PropertyMap properties)
                      throws java.lang.Exception
Description copied from interface: StateModel
This method applies the given state properties to the controls state model

Specified by:
synchronizeState in interface StateModel
Overrides:
synchronizeState in class TreeStateModelImp
Throws:
java.lang.Exception
See Also:
StateModel.synchronizeState(com.cc.framework.util.PropertyMap)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.