01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.uilib.tree;
16:
17: import java.io.Serializable;
18:
19: /**
20: * Tree context. General interface that can be used to access current tree
21: * configuration.
22: *
23: * @author Alar Kvell (alar@araneaframework.org)
24: * @since 1.0.7
25: */
26: public interface TreeContext extends Serializable {
27:
28: /**
29: * Returns tree data provider.
30: */
31: TreeDataProvider getDataProvider();
32:
33: /**
34: * Returns tree renderer.
35: */
36: TreeRenderer getRenderer();
37:
38: /**
39: * Returns if actions are used instead of events in submit links (e.g. toggle
40: * button). Default is <code>false</code>.
41: */
42: boolean useActions();
43:
44: /**
45: * Returns if action calls (by AJAX requests) to tree widget are synchronized.
46: * Default is <code>true</code>. If set to <code>false</code> (in
47: * TreeWidget constructor), then
48: * {@link org.araneaframework.http.router.StandardHttpSessionRouterService}
49: * does not synchronize requests to this <code>TreeWidget</code> and its
50: * children.
51: *
52: * @since 1.1
53: */
54: boolean useSynchronizedActions();
55:
56: /**
57: * Returns if child nodes are removed and discarded when a node is closed.
58: */
59: boolean isRemoveChildrenOnCollapse();
60:
61: }
|