KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > core > windows > view > View


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.view;
22
23
24 import org.netbeans.core.windows.WindowSystemSnapshot;
25 import java.awt.*;
26 import org.openide.windows.TopComponent;
27
28
29 /**
30  * Represents view part of window system, define types of changes which are relevant
31  * for GUI, and method {@link #changeGUI} which implemenation does all the
32  * view's task.
33  *
34  * @author Peter Zavadsky
35  */

36 public interface View {
37
38     // Global (the highest) level changes.
39
public int CHANGE_VISIBILITY_CHANGED = 0;
40     public int CHANGE_MAIN_WINDOW_BOUNDS_JOINED_CHANGED = 1;
41     public int CHANGE_MAIN_WINDOW_BOUNDS_SEPARATED_CHANGED = 2;
42     public int CHANGE_MAIN_WINDOW_FRAME_STATE_JOINED_CHANGED = 3;
43     public int CHANGE_MAIN_WINDOW_FRAME_STATE_SEPARATED_CHANGED = 4;
44     public int CHANGE_EDITOR_AREA_STATE_CHANGED = 5;
45     public int CHANGE_EDITOR_AREA_FRAME_STATE_CHANGED = 6;
46     public int CHANGE_EDITOR_AREA_BOUNDS_CHANGED = 7;
47     public int CHANGE_EDITOR_AREA_CONSTRAINTS_CHANGED = 8;
48     public int CHANGE_ACTIVE_MODE_CHANGED = 9;
49     public int CHANGE_TOOLBAR_CONFIGURATION_CHANGED = 10;
50     public int CHANGE_MAXIMIZED_MODE_CHANGED = 11;
51     public int CHANGE_MODE_ADDED = 12;
52     public int CHANGE_MODE_REMOVED = 13;
53     public int CHANGE_MODE_CONSTRAINTS_CHANGED = 14;
54
55     
56     // Mode level changes
57
public int CHANGE_MODE_BOUNDS_CHANGED = 20;
58     public int CHANGE_MODE_FRAME_STATE_CHANGED = 21;
59     public int CHANGE_MODE_SELECTED_TOPCOMPONENT_CHANGED = 22;
60     public int CHANGE_MODE_TOPCOMPONENT_ADDED = 23;
61     public int CHANGE_MODE_TOPCOMPONENT_REMOVED = 24;
62     
63     // TopComponent level changes
64
public int CHANGE_TOPCOMPONENT_DISPLAY_NAME_CHANGED = 31;
65     public int CHANGE_TOPCOMPONENT_DISPLAY_NAME_ANNOTATION_CHANGED = 32;
66     public int CHANGE_TOPCOMPONENT_TOOLTIP_CHANGED = 33;
67     public int CHANGE_TOPCOMPONENT_ICON_CHANGED = 34;
68
69     // Compound changes
70
public int CHANGE_TOPCOMPONENT_ATTACHED = 41;
71     public int CHANGE_TOPCOMPONENT_ARRAY_ADDED = 42;
72     public int CHANGE_TOPCOMPONENT_ARRAY_REMOVED = 43;
73     public int CHANGE_TOPCOMPONENT_ACTIVATED = 44;
74     public int CHANGE_MODE_CLOSED = 45;
75     public int CHANGE_DND_PERFORMED = 46;
76     public int CHANGE_TOPCOMPONENT_AUTO_HIDE_ENABLED = 47;
77     public int CHANGE_TOPCOMPONENT_AUTO_HIDE_DISABLED = 48;
78     
79     // Others
80
public int CHANGE_UI_UPDATE = 61;
81     
82     public int TOPCOMPONENT_REQUEST_ATTENTION = 63;
83     public int TOPCOMPONENT_CANCEL_REQUEST_ATTENTION = 64;
84     public int CHANGE_MAXIMIZE_TOPCOMPONENT_SLIDE_IN = 65;
85     
86     /** Provides GUI changes to manifest model changes to user. */
87     public void changeGUI(ViewEvent[] viewEvents, WindowSystemSnapshot snapshot);
88     
89     // XXX
90
public boolean isDragInProgress();
91     // XXX
92
public Frame getMainWindow();
93     
94     public Component getEditorAreaComponent();
95     
96     public String JavaDoc guessSlideSide(TopComponent tc);
97    
98     
99 }
100
101
Popular Tags