KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > core > windows > persistence > PersistenceObserver


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
21 package org.netbeans.core.windows.persistence;
22
23
24 /**
25  * Interface which defines observer of persistence changes.
26  *
27  * @author Peter Zavadsky
28  */

29 public interface PersistenceObserver {
30
31
32     /** Handles adding mode to model.
33      * @param modeConfig configuration data of added mode
34      */

35     public void modeConfigAdded(ModeConfig modeConfig);
36
37     /** Handles removing mode from model.
38      * @param modeName unique name of removed mode
39      */

40     public void modeConfigRemoved(String JavaDoc modeName);
41
42     /** Handles adding tcRef to model.
43      * @param modeName unique name of parent mode.
44      * @param tcRefConfig configuration data of added tcRef
45      * @param tcRefNames array of tcIds to pass ordering of new tcRef,
46      * if there is no ordering defined tcRef is appended to end of array
47      */

48     public void topComponentRefConfigAdded(
49     String JavaDoc modeName, TCRefConfig tcRefConfig, String JavaDoc [] tcRefNames);
50     
51     /** Handles removing tcRef from model.
52      * @param tc_id unique id of removed tcRef
53      */

54     public void topComponentRefConfigRemoved(String JavaDoc tc_id);
55     
56     /** Handles adding group to model.
57      * @param groupConfig configuration data of added group
58      */

59     public void groupConfigAdded(GroupConfig groupConfig);
60     
61     /** Handles removing group from model.
62      * @param groupName unique name of removed group
63      */

64     public void groupConfigRemoved(String JavaDoc groupName);
65     
66     /** Handles adding tcGroup to model.
67      * @param groupName unique name of parent group
68      * @param tcGroupConfig configuration data of added tcGroup
69      */

70     public void topComponentGroupConfigAdded(String JavaDoc groupName, TCGroupConfig tcGroupConfig);
71     
72     /** Handles removing tcGroup from model.
73      * @param groupName unique name of parent group.
74      * @param tc_id unique id of removed tcGroup
75      */

76     public void topComponentGroupConfigRemoved(String JavaDoc groupName, String JavaDoc tc_id);
77 }
78
79
Popular Tags