1 19 20 21 package org.netbeans.core.windows.view; 22 23 24 import java.util.ArrayList ; 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 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 public void userResizedMainWindowBoundsSeparatedHelp(Rectangle bounds); 68 69 public void userResizedEditorAreaBoundsHelp(Rectangle bounds); 70 71 public void userResizedModeBoundsSeparatedHelp(ModeImpl mode, Rectangle bounds); 72 74 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 side); 80 81 public void userDroppedTopComponentsIntoEmptyEditor(TopComponent[] tcs); 82 83 public void userDroppedTopComponentsAround(TopComponent[] tcs, String side); 84 85 public void userDroppedTopComponentsAroundEditor(TopComponent[] tcs, String side, int modeKind); 86 87 public void userDroppedTopComponentsIntoFreeArea(TopComponent[] tcs, Rectangle bounds, int modeKind); 88 90 public void userUndockedTopComponent(TopComponent tc, int modeKind); 92 93 public void userDockedTopComponent(TopComponent tc, int modeKind); 94 95 public void userEnabledAutoHide(TopComponent tc, ModeImpl source, String target); 97 98 public void userDisabledAutoHide(TopComponent tc, ModeImpl source); 99 100 public void userResizedSlidingMode(ModeImpl mode, Rectangle rect); 101 103 } 104 105 | Popular Tags |