1 19 20 package org.netbeans.core.windows.model; 21 22 23 import org.openide.windows.TopComponent; 24 25 import java.awt.*; 26 import java.util.List ; 27 import java.util.Map ; 28 29 import org.netbeans.core.windows.ModeImpl; 30 import org.netbeans.core.windows.SplitConstraint; 31 import org.openide.windows.TopComponent; 32 33 34 38 interface ModeModel { 39 40 42 public void setState(int state); 43 44 public void setBounds(Rectangle bounds); 45 46 public void setBoundsSeparatedHelp(Rectangle bounds); 47 48 public void setFrameState(int frameState); 49 50 public void setSelectedTopComponent(TopComponent selected); 51 52 public void setPreviousSelectedTopComponent(TopComponent prevSelected); 53 54 public void addOpenedTopComponent(TopComponent tc); 55 56 public void insertOpenedTopComponent(TopComponent tc, int index); 57 58 public void addClosedTopComponent(TopComponent tc); 59 public void addUnloadedTopComponent(String tcID); 61 public void setUnloadedSelectedTopComponent(String tcID); 63 64 public void setUnloadedPreviousSelectedTopComponent(String tcID); 65 66 public void removeTopComponent(TopComponent tc); 67 public void removeClosedTopComponentID(String tcID); 69 70 72 73 public void setTopComponentPreviousMode(String tcID, ModeImpl mode, int prevIndex); 74 75 public void setTopComponentPreviousConstraints(String tcID, SplitConstraint[] constraints); 76 77 79 public String getName(); 80 81 public Rectangle getBounds(); 82 83 public Rectangle getBoundsSeparatedHelp(); 84 85 public int getState(); 86 87 public int getKind(); 88 89 public int getFrameState(); 90 91 public boolean isPermanent(); 92 93 public boolean isEmpty(); 94 95 public boolean containsTopComponent(TopComponent tc); 96 97 public TopComponent getSelectedTopComponent(); 98 99 public TopComponent getPreviousSelectedTopComponent(); 100 101 public List <TopComponent> getTopComponents(); 102 103 public List <TopComponent> getOpenedTopComponents(); 104 public List <String > getOpenedTopComponentsIDs(); 106 public List <String > getClosedTopComponentsIDs(); 107 public List <String > getTopComponentsIDs(); 108 109 111 public ModeImpl getTopComponentPreviousMode(String tcID); 112 113 public int getTopComponentPreviousIndex(String tcID); 114 115 public SplitConstraint[] getTopComponentPreviousConstraints(String tcID); 116 117 } 118 119 | Popular Tags |