Statistics
| Revision:

root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.swing / org.gvsig.proj.swing.impl / src / main / java / org / gvsig / proj / swing / impl / tree / GroupLoader.java @ 866

History | View | Annotate | Download (749 Bytes)

1
package org.gvsig.proj.swing.impl.tree;
2

    
3
import java.util.ArrayList;
4

    
5
import javax.swing.tree.TreeNode;
6

    
7
/**
8
 * Loads the children of a loaded group
9
 *  
10
 * @author Cesar Martinez Izquierdo
11
 */
12
public interface GroupLoader {
13
        
14
        /**
15
         * Start loading the children, which can happen immediately or
16
         * be done asynchronously
17
         */
18
        void execute();
19
        
20
        /**
21
         * Attempts to cancel the loading process
22
         * @return
23
         */
24
        void cancel();
25
        
26
        /**
27
         * Whether the loading process has been cancelled
28
         * 
29
         * @return
30
         */
31
        boolean isCancelled();
32
        
33
        /**
34
         * Creates an instance of a node to be displayed as temporary child
35
         * while data is loading 
36
         * 
37
         * @return A TreeNode instance or null if no loading node is needed
38
         */
39
        TreeNode createLoadingNode();
40
        
41
}