KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.ArrayList JavaDoc;
25 import org.netbeans.core.windows.ModeImpl;
26 import org.netbeans.core.windows.model.ModelElement;
27 import org.netbeans.core.windows.view.ui.slides.SlideOperation;
28 import org.openide.windows.TopComponent;
29
30 import java.awt.*;
31
32
33 /**
34  * Class which handles controller requests.
35  *
36  * @author Peter Zavadsky
37  */

38 public interface ControllerHandler {
39
40     public void userActivatedMode(ModeImpl mode);
41
42     public void userActivatedModeWindow(ModeImpl mode);
43
44     public void userActivatedEditorWindow();
45     
46     public void userActivatedTopComponent(ModeImpl mode, TopComponent selected);
47     
48     public void userResizedMainWindow(Rectangle bounds);
49     
50     public void userResizedEditorArea(Rectangle bounds);
51     
52     public void userResizedModeBounds(ModeImpl mode, Rectangle bounds);
53     
54     public void userChangedFrameStateMainWindow(int frameState);
55     
56     public void userChangedFrameStateEditorArea(int frameState);
57     
58     public void userChangedFrameStateMode(ModeImpl mode, int frameState);
59     
60     public void userChangedSplit( ModelElement[] snapshots, double[] splitWeights );
61     
62     public void userClosedTopComponent(ModeImpl mode, TopComponent tc);
63     
64     public void userClosedMode(ModeImpl mode);
65     
66     // Helpers>>
67
public void userResizedMainWindowBoundsSeparatedHelp(Rectangle bounds);
68     
69     public void userResizedEditorAreaBoundsHelp(Rectangle bounds);
70     
71     public void userResizedModeBoundsSeparatedHelp(ModeImpl mode, Rectangle bounds);
72     // Helpers<<
73

74     // DnD>>
75
public void userDroppedTopComponents(ModeImpl mode, TopComponent[] tcs);
76     
77     public void userDroppedTopComponents(ModeImpl mode, TopComponent[] tcs, int index);
78     
79     public void userDroppedTopComponents(ModeImpl mode, TopComponent[] tcs, String JavaDoc side);
80     
81     public void userDroppedTopComponentsIntoEmptyEditor(TopComponent[] tcs);
82     
83     public void userDroppedTopComponentsAround(TopComponent[] tcs, String JavaDoc side);
84     
85     public void userDroppedTopComponentsAroundEditor(TopComponent[] tcs, String JavaDoc side, int modeKind);
86     
87     public void userDroppedTopComponentsIntoFreeArea(TopComponent[] tcs, Rectangle bounds, int modeKind);
88     // DnD<<
89

90     // undock/dock
91
public void userUndockedTopComponent(TopComponent tc, int modeKind);
92
93     public void userDockedTopComponent(TopComponent tc, int modeKind);
94
95     // Sliding>>
96
public void userEnabledAutoHide(TopComponent tc, ModeImpl source, String JavaDoc target);
97     
98     public void userDisabledAutoHide(TopComponent tc, ModeImpl source);
99     
100     public void userResizedSlidingMode(ModeImpl mode, Rectangle rect);
101     // Sliding<<
102

103 }
104
105
Popular Tags