01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.widgets.tree;
09:
10: /**
11: * The sort function interface when calling {@link TreeSorterConfig#setSortType(TreeSortFunction)}.
12: */
13: public interface TreeSortFunction {
14:
15: /**
16: * A custom "casting" function used to convert node values before sorting.
17: *
18: * @param node the tree node
19: * @return thre tree node sort value
20: */
21: String sortValue(TreeNode node);
22: }
|