com.cc.framework.ui.control
Class TreelistControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.ListControl
          extended bycom.cc.framework.ui.control.TreelistControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ClientHandler, ListStateModel, java.io.Serializable, StateModel, TreelistStateModel, TreeStateModel

public class TreelistControl
extends ListControl
implements TreelistStateModel

The Tree List Control.

Since:
1.0
Version:
$Revision: 1.72 $
Author:
Harald Schulz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.cc.framework.ui.control.ListControl
ListControl.RowFilter
 
Field Summary
private  TreeGroupDataModel dataModel
          Data model for the control
private  TreelistDesignModel designModel
          Design model for the control
private static long serialVersionUID
          Serial Version UID
private  TreelistStateModel stateModel
          State model
 
Fields inherited from class com.cc.framework.ui.control.Control
log
 
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
TreelistControl()
          Constructor
 
Method Summary
protected  int calcAbsoulteRowIndex(int relRowIndex)
          Calculates the absolute row index from a page relative row index
protected  int calcVisibleNodes(TreeNodeDataModel root)
          Die Methode berechnet die Anzahl der sichtbaren (=aufgeklappten) Einträge des Baumes.
 void collapse(java.lang.String nodeKey)
          The specified group node will be collapsed
 void collapse(TreeNodeDataModel node)
          Collapses the given node
 void collapseAll()
          Collapses all tree nodes
protected  TreelistStateModel doCreateStatemodel()
          Creates the state model for this control instance
 void expand(java.lang.String key)
          The specified group node will be expanded
 void expand(TreeNodeDataModel node)
          Expands the given node
 void expandAll()
          Expands the whole tree.
 void expandToLevel(int level)
          Expands the tree up to the given level.
 int getCellPadding()
          Returns the cell padding for the list cells
 int getCellSpacing()
          Returns the cell spacing for the list cells
 ColumnDesignModel[] getColumns()
          Returns an Array with all columns.
 int getCurrentPage()
          Returns the zero based index of the page which is currently display.
 DataModel getDataModel()
          Returns the data model of the Control
 ControlDesignModel getDesignModel()
          Returns the design model of the control
 java.lang.String[] getDetailText()
          Returns the detail text which is displayed in the caption in the format "3 to 10 from 2000"
 java.lang.String getEmptyText()
          A text that is output in the body of the list element if there are no lines available (size() == 0)
 TreeNodeDataModel getFirstItemOfPage()
          Liefert das erste Item der aktuell angezeigten Seite zurück
protected  TreeNodeDataModel getFirstNode()
          Returns the first node to be displayed
 ImageModel getImage()
          Returns the image for the frames title
 InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
          Retrieves a list of inner frames that are matching the given layout hint
 LineIterator getLineIterator(boolean positioned)
          Creates a line iterator
 java.lang.String[] getMarked()
          Retrieves all marked items
 int getMinRowCount()
          Returns the minimal number of rows on the page.
protected  TreeNodeDataModel getNodeFromIndex(int rowIndex)
          Method getNodeFromIndex
 int getPageButtons()
          Returns the number of page buttons.
 LineIterator getPageLineIterator()
          Creates a line iterator for the current page
 java.lang.Object getRowFromKey(java.lang.String rowkey)
          Retrieves the row bean for the given key
protected  int getRowsOnCurrentPage()
          Liefert die Anzahl der Zeilen welche auf der aktuellen Seite dargestellt werden sollen.
 int getRowsPerPage()
          Returns the number of rows on a page
 java.lang.String getScrollHeight()
          Retrieves the height of the scroll container
 java.lang.String getSelected()
          Returns the key of the selected node
 SelectMode getSelectMode()
          Return the selection mode of the list.
 java.lang.String getSortColumn()
          Returns the name of the column which is currently used for sorting.
 SortOrder getSortOrder()
          Returns the sort order
 SortOrder getSortOrder(java.lang.String column)
          Returns the sort order for the specified column.
 StateModel getStateModel()
          Returns the state model of the control
 OrientationType getTabOrientation()
          Retrieves the tabulator orientation
 java.lang.String getTitle()
          Returns the Title
 int getTotalPages()
          Returns the total number of pages.
 int getTotalRowCount()
          Liefert die Anzahl der tatsächlich vorhandenen Zeilen zurück.
 boolean isExpanded(java.lang.String nodeKey)
          Checks if the specified group node is expanded
 boolean isExpanded(TreeNodeDataModel node)
          Checks if the given node is expanded
 boolean isFirstPage()
          Returns true if the First Page is displayed
 boolean isLastPage()
          Returns true if the Last Page is displayed
 boolean isMarked(java.lang.String uniqueKey)
          Checks if the specified row is selected.
 boolean isSelected(java.lang.String nodeKey)
          Checks if the specified node is selected.
 boolean isSelected(TreeNodeDataModel node)
          Checks if the given node is selected
 void mark(java.lang.String uniqueKey)
          Selects a specified row.
 void onCheck(ControlRequestContext ctx, java.lang.String key, SelectMode mode, boolean check)
          Default Handler for the Check Event
 void onCheckAll(ControlRequestContext ctx, SelectMode mode, boolean check)
          Default Handler for the CheckAll Event
 void onCollapse(ControlRequestContext ctx, java.lang.String key)
          Default Handler for the Collapse Event
 void onExpand(ControlRequestContext ctx, java.lang.String key)
          Default Handler for the Expand Event
 void onExpandEx(ControlRequestContext ctx, java.lang.String key)
          Default Handler for the ExpandEx Event
 void onPage(ControlRequestContext ctx, int newPage)
          Default Handler for the Page Event
 void onSort(ControlRequestContext ctx, java.lang.String column, SortOrder direction)
          Default Handler for the Sort Event
 void reset()
          Resets the actual state of a control to the initial state
protected  void resetExpandInfo(boolean keepExpanded)
          Resets all expanded Nodes
 void resetSortInfo()
          Resets any sorting Information
 void select(java.lang.String nodeKey)
          Selects the specified node.
 void select(TreeNodeDataModel node)
          Marks the given node as selected
protected  void setCheckboxValue(RequestContext ctx, ControlValuePath path, java.lang.Object rowbean, java.lang.String property, boolean checked, SelectMode selectmode)
          This method is called to set the value of a checkbox column
 void setCurrentPage(int page)
          Sets the index for the page which is currently display to another value.
 void setDataModel(TreeGroupDataModel dataModel)
          Sets the Data model
 void setDataModel(TreeGroupDataModel dataModel, boolean keepState)
          Sets the Data model
 void setDesignModel(TreelistDesignModel designModel)
          Sets the DesignModel
protected  void setRadioValue(RequestContext ctx, ControlValuePath path, java.lang.Object rowbean, java.lang.String property, java.lang.String value)
          This method is called to set the value of a radio button column
 void setSortInfo(java.lang.String column, SortOrder direction)
          Sets the sort order for the specified column
 void setStateModel(TreelistStateModel stateModel)
          Sets the StateModel
 boolean showButton(ControlButton button)
          This Method is called by the Painter before rendering a Button.
 boolean showFrame()
          Returns true if the frame should be painted
 boolean showHeader()
          Returns true if the header should be painted
 void unmark(java.lang.String uniqueKey)
          Unselects a specified row.
 void unmarkAll()
          Unselects all selected rows
 void unselectAll()
          Unselects the current selection of the tree
 
Methods inherited from class com.cc.framework.ui.control.ListControl
allowAjaxRendering, getAjaxId, getNavigationPosition, getVisibleColumns, onAdd, onCellClick, onCheckColumn, onCreate, onDelete, onDrilldown, onEdit, onExportList, onPrintList, onRefresh, onSelect, setControlValue, setValue
 
Methods inherited from class com.cc.framework.ui.control.Control
addButton, execute, execute, execute, execute, execute, execute, execute, getAction, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, show, synchronizeState, synchronizeState
 
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.StateModel
synchronizeState
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

dataModel

private TreeGroupDataModel dataModel
Data model for the control


designModel

private TreelistDesignModel designModel
Design model for the control


stateModel

private TreelistStateModel stateModel
State model

Constructor Detail

TreelistControl

public TreelistControl()
Constructor

Method Detail

doCreateStatemodel

protected TreelistStateModel doCreateStatemodel()
Creates the state model for this control instance

Returns:
State model instance

getDataModel

public DataModel getDataModel()
Description copied from class: Control
Returns the data model of the Control

Specified by:
getDataModel in class Control
Returns:
The data model
See Also:
Control.getDataModel()

setDataModel

public void setDataModel(TreeGroupDataModel dataModel)
Sets the Data model

Parameters:
dataModel - TreeGroupDataModel

setDataModel

public void setDataModel(TreeGroupDataModel dataModel,
                         boolean keepState)
Sets the Data model

Parameters:
dataModel - TreeGroupDataModel
keepState - when set to true the treelist control will keep its current state (Expanded nodes current page etc.)

getDesignModel

public ControlDesignModel getDesignModel()
Description copied from class: Control
Returns the design model of the control

Specified by:
getDesignModel in class Control
Returns:
The ControlDesignModel
See Also:
Control.getDesignModel()

setDesignModel

public void setDesignModel(TreelistDesignModel designModel)
Sets the DesignModel

Parameters:
designModel - TreelistDesignModel

getStateModel

public StateModel getStateModel()
Description copied from class: Control
Returns the state model of the control

Specified by:
getStateModel in class Control
Returns:
The state model
See Also:
Control.getStateModel()

setStateModel

public void setStateModel(TreelistStateModel stateModel)
Sets the StateModel

Parameters:
stateModel - TreeListStateModel

getPageButtons

public int getPageButtons()
Description copied from class: ListControl
Returns the number of page buttons.

Specified by:
getPageButtons in class ListControl
Returns:
The number of page buttons
See Also:
ListControl.getPageButtons()

showFrame

public boolean showFrame()
Description copied from class: ListControl
Returns true if the frame should be painted

Specified by:
showFrame in class ListControl
Returns:
true if the frame should be painted
See Also:
ListControl.showFrame()

showHeader

public boolean showHeader()
Description copied from class: ListControl
Returns true if the header should be painted

Specified by:
showHeader in class ListControl
Returns:
true if the header should be painted
See Also:
ListControl.showHeader()

getCellPadding

public int getCellPadding()
Description copied from class: ListControl
Returns the cell padding for the list cells

Specified by:
getCellPadding in class ListControl
Returns:
Padding factor
See Also:
ListControl.getCellPadding()

getCellSpacing

public int getCellSpacing()
Description copied from class: ListControl
Returns the cell spacing for the list cells

Specified by:
getCellSpacing in class ListControl
Returns:
spacing factor
See Also:
ListControl.getCellSpacing()

getTabOrientation

public OrientationType getTabOrientation()
Description copied from class: ListControl
Retrieves the tabulator orientation

Specified by:
getTabOrientation in class ListControl
Returns:
the orientation
See Also:
ListControl.getTabOrientation()

showButton

public boolean showButton(ControlButton button)
Description copied from class: Control
This Method is called by the Painter before rendering a Button. By overwriting this method a derived class can show or hide buttons.

Overrides:
showButton in class Control
Parameters:
button - ControlButton
Returns:
boolean
See Also:
Control.showButton(com.cc.framework.ui.control.ControlButton)

getColumns

public ColumnDesignModel[] getColumns()
Description copied from class: ListControl
Returns an Array with all columns.

Specified by:
getColumns in class ListControl
Returns:
ColumnDesignModel
See Also:
ListControl.getColumns()

getLineIterator

public LineIterator getLineIterator(boolean positioned)
Description copied from class: ListControl
Creates a line iterator

Specified by:
getLineIterator in class ListControl
Parameters:
positioned - if set to true the method returns a iterator which is positioned on the first line on the current page.
Returns:
LineIterator
See Also:
ListControl.getLineIterator(boolean)

getPageLineIterator

public LineIterator getPageLineIterator()
Description copied from class: ListControl
Creates a line iterator for the current page

Specified by:
getPageLineIterator in class ListControl
Returns:
LineIterator
See Also:
ListControl.getPageLineIterator()

getInnerFrames

public InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
Retrieves a list of inner frames that are matching the given layout hint

Specified by:
getInnerFrames in class ListControl
Parameters:
layoutHint - The layout hint that specifies what frames should be selected:
AlignmentType.TOP
header frames
AlignmentType.BOTTOM
footer frames
Returns:
Frame list

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
Specified by:
getCurrentPage in class ListControl
Returns:
The number of the current page
See Also:
ListControl.getCurrentPage()

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)

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()

getSortOrder

public SortOrder getSortOrder(java.lang.String column)
Description copied from class: ListControl
Returns the sort order for the specified column.

Specified by:
getSortOrder in class ListControl
Parameters:
column - The name of the column
Returns:
SortOrder
See Also:
ListControl.getSortOrder(java.lang.String)

setSortInfo

public void setSortInfo(java.lang.String column,
                        SortOrder direction)
Sets the sort order for the specified column

Specified by:
setSortInfo in interface ListStateModel
Parameters:
column - Name of the column
direction - The sort order

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
See Also:
StateModel.reset()

resetExpandInfo

protected void resetExpandInfo(boolean keepExpanded)
Resets all expanded Nodes

Parameters:
keepExpanded - true to keep the current expansion state of the control

getRowsPerPage

public int getRowsPerPage()
Returns the number of rows on a page

Specified by:
getRowsPerPage in class ListControl
Returns:
The number of rows

getMinRowCount

public int getMinRowCount()
Description copied from class: ListControl
Returns the minimal number of rows on the page. Returns -1 no empty lines should be displayed.

Specified by:
getMinRowCount in class ListControl
Returns:
The minimal number of rows on the page
See Also:
ListControl.getMinRowCount()

getFirstNode

protected TreeNodeDataModel getFirstNode()
Returns the first node to be displayed

Returns:
TreeNodeDataModel

getTotalRowCount

public int getTotalRowCount()
Liefert die Anzahl der tatsächlich vorhandenen Zeilen zurück.

Specified by:
getTotalRowCount in class ListControl
Returns:
Anzahl der tatsächlich vorhandenen Zeilen des Datenmodells

calcVisibleNodes

protected int calcVisibleNodes(TreeNodeDataModel root)
Die Methode berechnet die Anzahl der sichtbaren (=aufgeklappten) Einträge des Baumes.

Parameters:
root - TreeNodeDataModel
Returns:
number of visible nodes

calcAbsoulteRowIndex

protected int calcAbsoulteRowIndex(int relRowIndex)
Calculates the absolute row index from a page relative row index

Parameters:
relRowIndex - page relative row index
Returns:
the absolute row index

getNodeFromIndex

protected TreeNodeDataModel getNodeFromIndex(int rowIndex)
Method getNodeFromIndex

Parameters:
rowIndex - absolute row index
Returns:
TreeNodeDataModel or null

getTotalPages

public int getTotalPages()
Description copied from class: ListControl
Returns the total number of pages.

Specified by:
getTotalPages in class ListControl
Returns:
The total number of pages. Returns -1 if the number of pages is unknown
See Also:
ListControl.getTotalPages()

getRowsOnCurrentPage

protected int getRowsOnCurrentPage()
Liefert die Anzahl der Zeilen welche auf der aktuellen Seite dargestellt werden sollen.

Returns:
number of rows on the current page

getTitle

public java.lang.String getTitle()
Description copied from class: ListControl
Returns the Title

Specified by:
getTitle in class ListControl
Returns:
String
See Also:
ListControl.getTitle()

getDetailText

public java.lang.String[] getDetailText()
Description copied from class: ListControl
Returns the detail text which is displayed in the caption in the format "3 to 10 from 2000"

Specified by:
getDetailText in class ListControl
Returns:
String
See Also:
ListControl.getDetailText()

getScrollHeight

public java.lang.String getScrollHeight()
Description copied from class: ListControl
Retrieves the height of the scroll container

Specified by:
getScrollHeight in class ListControl
Returns:
height
See Also:
ListControl.getScrollHeight()

getImage

public ImageModel getImage()
Description copied from class: ListControl
Returns the image for the frames title

Specified by:
getImage in class ListControl
Returns:
ImageModel
See Also:
ListControl.getImage()

getEmptyText

public java.lang.String getEmptyText()
Description copied from class: ListControl
A text that is output in the body of the list element if there are no lines available (size() == 0)

Specified by:
getEmptyText in class ListControl
Returns:
String
See Also:
ListControl.getEmptyText()

getSelectMode

public SelectMode getSelectMode()
Description copied from class: ListControl
Return the selection mode of the list.

Specified by:
getSelectMode in class ListControl
Returns:
SelectMode
See Also:
ListControl.getSelectMode()

isFirstPage

public boolean isFirstPage()
Returns true if the First Page is displayed

Returns:
boolean

isLastPage

public boolean isLastPage()
Returns true if the Last Page is displayed

Returns:
boolean

getFirstItemOfPage

public TreeNodeDataModel getFirstItemOfPage()
Liefert das erste Item der aktuell angezeigten Seite zurück

Returns:
TreeNodeDataModel

isExpanded

public boolean isExpanded(TreeNodeDataModel node)
Checks if the given node is expanded

Parameters:
node - The node to check
Returns:
returns true if the node is expanded

isExpanded

public boolean isExpanded(java.lang.String nodeKey)
Description copied from interface: TreeStateModel
Checks if the specified group node is expanded

Specified by:
isExpanded in interface TreeStateModel
Parameters:
nodeKey - the nodes unique key
Returns:
boolean
See Also:
TreeStateModel.isExpanded(java.lang.String)

expand

public void expand(TreeNodeDataModel node)
Expands the given node

Parameters:
node - the node to expand

expand

public void expand(java.lang.String key)
Description copied from interface: TreeStateModel
The specified group node will be expanded

Specified by:
expand in interface TreeStateModel
Parameters:
key - the nodes unique key
See Also:
TreeStateModel.expand(java.lang.String)

expandAll

public void expandAll()
Expands the whole tree. Note: Only the nodes in memory will be expanded!


expandToLevel

public void expandToLevel(int level)
Expands the tree up to the given level. Note: Only the nodes in memory will be expanded!

Parameters:
level - Tree level (0 = root level)

collapseAll

public void collapseAll()
Description copied from interface: TreeStateModel
Collapses all tree nodes

Specified by:
collapseAll in interface TreeStateModel
See Also:
TreeStateModel.collapseAll()

collapse

public void collapse(TreeNodeDataModel node)
Collapses the given node

Parameters:
node - the node to collapse

collapse

public void collapse(java.lang.String nodeKey)
Description copied from interface: TreeStateModel
The specified group node will be collapsed

Specified by:
collapse in interface TreeStateModel
Parameters:
nodeKey - the nodes unique key
See Also:
TreeStateModel.collapse(java.lang.String)

select

public void select(TreeNodeDataModel node)
Marks the given node as selected

Parameters:
node - Tree node

select

public void select(java.lang.String nodeKey)
Description copied from interface: TreeStateModel
Selects the specified node. Within a tree there can only exists one selected node

Specified by:
select in interface TreeStateModel
Parameters:
nodeKey - the nodes unique key
See Also:
TreeStateModel.select(java.lang.String)

unselectAll

public void unselectAll()
Description copied from interface: TreeStateModel
Unselects the current selection of the tree

Specified by:
unselectAll in interface TreeStateModel
See Also:
TreeStateModel.unselectAll()

isSelected

public boolean isSelected(TreeNodeDataModel node)
Checks if the given node is selected

Parameters:
node - the node to check
Returns:
returns true if the node is checked

isSelected

public boolean isSelected(java.lang.String nodeKey)
Description copied from interface: TreeStateModel
Checks if the specified node is selected.

Specified by:
isSelected in interface TreeStateModel
Parameters:
nodeKey - the nodes unique key
Returns:
boolean
See Also:
TreeStateModel.isSelected(java.lang.String)

getSelected

public java.lang.String getSelected()
Description copied from interface: TreeStateModel
Returns the key of the selected node

Specified by:
getSelected in interface TreeStateModel
Returns:
Key or null
See Also:
TreeStateModel.getSelected()

getRowFromKey

public java.lang.Object getRowFromKey(java.lang.String rowkey)
Description copied from class: ListControl
Retrieves the row bean for the given key

Specified by:
getRowFromKey in class ListControl
Parameters:
rowkey - The rows unique key
Returns:
Row Bean or null
See Also:
ListControl.getRowFromKey(java.lang.String)

setCheckboxValue

protected void setCheckboxValue(RequestContext ctx,
                                ControlValuePath path,
                                java.lang.Object rowbean,
                                java.lang.String property,
                                boolean checked,
                                SelectMode selectmode)
                         throws java.lang.Exception
This method is called to set the value of a checkbox column

Overrides:
setCheckboxValue in class ListControl
Parameters:
ctx - The control action context
path - Path Name of the input element
rowbean - The row bean
property - The Column name
checked - true if the checkbox is checked
selectmode - the selection mode of the column
Throws:
java.lang.Exception - a derived class can throw an exception if the value could not be set

setRadioValue

protected void setRadioValue(RequestContext ctx,
                             ControlValuePath path,
                             java.lang.Object rowbean,
                             java.lang.String property,
                             java.lang.String value)
                      throws java.lang.Exception
This method is called to set the value of a radio button column

Overrides:
setRadioValue in class ListControl
Parameters:
ctx - The control action context
path - Path Name of the input element
rowbean - The row bean
property - The Column name
value - the radio button value
Throws:
java.lang.Exception - a derived class can throw an exception if the value could not be set

isMarked

public boolean isMarked(java.lang.String uniqueKey)
Description copied from interface: ListStateModel
Checks if the specified row is selected.

Specified by:
isMarked in interface ListStateModel
Parameters:
uniqueKey - The unique key
Returns:
boolean Returns true if the row is selected; false otherwise
See Also:
ListStateModel.isMarked(java.lang.String)

getMarked

public java.lang.String[] getMarked()
Description copied from interface: ListStateModel
Retrieves all marked items

Specified by:
getMarked in interface ListStateModel
Returns:
Array with the keys of the marked items
See Also:
ListStateModel.getMarked()

mark

public void mark(java.lang.String uniqueKey)
Description copied from interface: ListStateModel
Selects a specified row.

Specified by:
mark in interface ListStateModel
Parameters:
uniqueKey - The unique key of the row which should be selected
See Also:
ListStateModel.mark(java.lang.String)

unmark

public void unmark(java.lang.String uniqueKey)
Description copied from interface: ListStateModel
Unselects a specified row.

Specified by:
unmark in interface ListStateModel
Parameters:
uniqueKey - The unique key of the row which should be unselected
See Also:
ListStateModel.unmark(java.lang.String)

unmarkAll

public void unmarkAll()
Description copied from interface: ListStateModel
Unselects all selected rows

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

onExpandEx

public void onExpandEx(ControlRequestContext ctx,
                       java.lang.String key)
                throws java.lang.Exception
Default Handler for the ExpandEx Event

Overrides:
onExpandEx in class ListControl
Parameters:
ctx - ControlRequestContext
key - Unique Id as generated by the data model to identify the Row
Throws:
java.lang.Exception - is thrown when an error occurs

onExpand

public void onExpand(ControlRequestContext ctx,
                     java.lang.String key)
              throws java.lang.Exception
Default Handler for the Expand Event

Overrides:
onExpand in class ListControl
Parameters:
ctx - ControlRequestContext
key - Unique Id as generated by the data model to identify the Row
Throws:
java.lang.Exception - is thrown when an error occurs

onCollapse

public void onCollapse(ControlRequestContext ctx,
                       java.lang.String key)
                throws java.lang.Exception
Default Handler for the Collapse Event

Overrides:
onCollapse in class ListControl
Parameters:
ctx - ControlRequestContext
key - Unique Id as generated by the data model to identify the Row
Throws:
java.lang.Exception - is thrown when an error occurs

onCheck

public void onCheck(ControlRequestContext ctx,
                    java.lang.String key,
                    SelectMode mode,
                    boolean check)
             throws java.lang.Exception
Default Handler for the Check Event

Overrides:
onCheck in class ListControl
Parameters:
ctx - ControlRequestContext
key - Unique Id as generated by the data model to identify the Row
mode - SelectMode
check - true if checked
Throws:
java.lang.Exception - is thrown when an error occurs

onCheckAll

public void onCheckAll(ControlRequestContext ctx,
                       SelectMode mode,
                       boolean check)
                throws java.lang.Exception
Default Handler for the CheckAll Event

Overrides:
onCheckAll in class ListControl
Parameters:
ctx - ControlRequestContext
mode - SelectMode
check - true if checked
Throws:
java.lang.Exception - is thrown when an error occurs

onPage

public void onPage(ControlRequestContext ctx,
                   int newPage)
            throws java.lang.Exception
Default Handler for the Page Event

Overrides:
onPage in class ListControl
Parameters:
ctx - ControlRequestContext
newPage - Index of the Page
Throws:
java.lang.Exception - is thrown when an error occurs

onSort

public void onSort(ControlRequestContext ctx,
                   java.lang.String column,
                   SortOrder direction)
            throws java.lang.Exception
Default Handler for the Sort Event

Overrides:
onSort in class ListControl
Parameters:
ctx - ControlRequestContext
column - Column Name
direction - SortOrder
Throws:
java.lang.Exception - is thrown when an error occurs


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