KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.awt.Rectangle JavaDoc;
25 import java.util.ArrayList JavaDoc;
26 import org.netbeans.core.windows.view.ui.slides.SlideOperation;
27 import org.openide.windows.TopComponent;
28
29
30 /**
31  * Window system controller declaration.
32  *
33  * @author Peter Zavadsky
34  */

35 public interface Controller {
36
37     public void userActivatedModeView(ModeView modeView);
38
39     public void userActivatedModeWindow(ModeView modeView);
40
41     public void userActivatedEditorWindow();
42
43     public void userSelectedTab(ModeView modeView, TopComponent selected);
44     
45     public void userClosingMode(ModeView modeView);
46     
47     public void userResizedMainWindow(Rectangle JavaDoc bounds);
48     
49     public void userMovedMainWindow(Rectangle JavaDoc bounds);
50     
51     public void userResizedEditorArea(Rectangle JavaDoc bounds);
52     
53     public void userChangedFrameStateMainWindow(int frameState);
54     
55     public void userChangedFrameStateEditorArea(int frameState);
56     
57     public void userChangedFrameStateMode(ModeView modeView, int frameState);
58     
59     public void userResizedModeBounds(ModeView modeView, Rectangle JavaDoc bounds);
60     
61     public void userMovedSplit(SplitView splitView, ViewElement[] childrenViews, double[] splitWeights);
62     
63     public void userClosedTopComponent(ModeView modeView, TopComponent tc);
64
65     // DnD
66
public void userDroppedTopComponents(ModeView modeView, TopComponent[] tcs);
67     
68     public void userDroppedTopComponents(ModeView modeView, TopComponent[] tcs, int index);
69     
70     public void userDroppedTopComponents(ModeView modeView, TopComponent[] tcs, String JavaDoc side);
71     
72     public void userDroppedTopComponentsIntoEmptyEditor(TopComponent[] tcs);
73     
74     public void userDroppedTopComponentsAround(TopComponent[] tcs, String JavaDoc side);
75     
76     public void userDroppedTopComponentsAroundEditor(TopComponent[] tcs, String JavaDoc side, int modeKind);
77     
78     public void userDroppedTopComponentsIntoFreeArea(TopComponent[] tcs, Rectangle JavaDoc bounds, int modeKind);
79
80     // Sliding
81
public void userEnabledAutoHide(ModeView modeView, TopComponent tc);
82     
83     public void userDisabledAutoHide(ModeView modeView, TopComponent tc);
84     
85     public void userTriggeredSlideIn(ModeView modeView, SlideOperation operation);
86
87     public void userTriggeredSlideOut(ModeView modeView, SlideOperation operation);
88     
89     public void userTriggeredSlideIntoEdge(ModeView modeView, SlideOperation operation);
90     
91     public void userTriggeredSlideIntoDesktop(ModeView modeView, SlideOperation operation);
92
93     public void userResizedSlidingWindow(ModeView modeView, SlideOperation operation);
94
95 }
96
97
Popular Tags