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:
09: package com.gwtext.client.widgets.tree;
10:
11: import com.google.gwt.core.client.JavaScriptObject;
12:
13: public interface TreeSelectionModel {
14:
15: JavaScriptObject getJsObj();
16:
17: /**
18: * Clear all selections.
19: */
20: void clearSelections();
21:
22: /**
23: * Returns true if the node is selected.
24: *
25: * @param treeNode the node to test
26: * @return true if selected
27: */
28: boolean isSelected(TreeNode treeNode);
29:
30: /**
31: * Select a node.
32: *
33: * @param treeNode the tree node to select
34: */
35: void select(TreeNode treeNode);
36:
37: /**
38: * Selects the node above the selected node in the tree, intelligently walking the nodes.
39: */
40: void selectNext();
41:
42: /**
43: * Selects the node above the selected node in the tree, intelligently walking the nodes.
44: */
45: void selectPrevious();
46:
47: /**
48: * Deselect a node.
49: *
50: * @param treeNode the node to deselect
51: */
52: void unselect(TreeNode treeNode);
53: }
|