KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > core > windows > model > TopComponentGroupModel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.core.windows.model;
21
22
23 import org.openide.windows.TopComponent;
24
25 import java.util.Collection JavaDoc;
26 import java.util.Set JavaDoc;
27
28
29 /**
30  *
31  * @author Peter Zavadsky
32  */

33 interface TopComponentGroupModel {
34
35     public String JavaDoc getName();
36
37     public void open(
38             Collection JavaDoc<TopComponent> openedTopComponents,
39             Collection JavaDoc<TopComponent> openedBeforeTopComponents);
40     public void close();
41     public boolean isOpened();
42
43     public Set JavaDoc<TopComponent> getTopComponents();
44
45     public Set JavaDoc<TopComponent> getOpenedTopComponents();
46     public Set JavaDoc<TopComponent> getOpenedBeforeTopComponents();
47
48     public Set JavaDoc<TopComponent> getOpeningTopComponents();
49     public Set JavaDoc<TopComponent> getClosingTopComponents();
50     
51     public boolean addUnloadedTopComponent(String JavaDoc tcID);
52     public boolean removeUnloadedTopComponent(String JavaDoc tcID);
53     
54     public boolean addOpeningTopComponent(TopComponent tc);
55     public boolean removeOpeningTopComponent(TopComponent tc);
56     
57     public boolean addUnloadedOpeningTopComponent(String JavaDoc tcID);
58     public boolean removeUnloadedOpeningTopComponent(String JavaDoc tcID);
59     
60     public boolean addUnloadedClosingTopComponent(String JavaDoc tcID);
61     public boolean removeUnloadedClosingTopComponent(String JavaDoc tcID);
62     
63     // XXX
64
public boolean addUnloadedOpenedTopComponent(String JavaDoc tcID);
65     
66     // XXX>>
67
public Set JavaDoc<String JavaDoc> getTopComponentsIDs();
68     public Set JavaDoc<String JavaDoc> getOpeningSetIDs();
69     public Set JavaDoc<String JavaDoc> getClosingSetIDs();
70     public Set JavaDoc<String JavaDoc> getOpenedTopComponentsIDs();
71     // XXX<<
72
}
73
Popular Tags