1 19 20 21 package org.netbeans.core.windows.view; 22 23 24 import java.awt.*; 25 26 27 34 final class WindowSystemAccessorImpl implements WindowSystemAccessor { 35 36 private Rectangle mainWindowBoundsJoined; 37 private Rectangle mainWindowBoundsSeparated; 38 private int mainWindowFrameStateJoined; 39 private int mainWindowFrameStateSeparated; 40 private String toolbarConfigurationName; 41 private int editorAreaState; 42 private int editorAreaFrameState; 43 private Rectangle editorAreaBounds; 44 private ModeAccessor activeMode; 45 private ModeAccessor maximizedMode; 46 private ModeStructureAccessor modeStructureAccessor; 47 48 public WindowSystemAccessorImpl() { 49 } 50 51 52 public void setMainWindowBoundsJoined(Rectangle mainWindowBoundsJoined) { 53 this.mainWindowBoundsJoined = mainWindowBoundsJoined; 54 } 55 56 public Rectangle getMainWindowBoundsJoined() { 57 return mainWindowBoundsJoined; 58 } 59 60 public void setMainWindowBoundsSeparated(Rectangle mainWindowBoundsSeparated) { 61 this.mainWindowBoundsSeparated = mainWindowBoundsSeparated; 62 } 63 64 public Rectangle getMainWindowBoundsSeparated() { 65 return mainWindowBoundsSeparated; 66 } 67 68 public void setMainWindowFrameStateJoined(int mainWindowFrameStateJoined) { 69 this.mainWindowFrameStateJoined = mainWindowFrameStateJoined; 70 } 71 72 public int getMainWindowFrameStateJoined() { 73 return this.mainWindowFrameStateJoined; 74 } 75 76 public void setMainWindowFrameStateSeparated(int mainWindowFrameStateSeparated) { 77 this.mainWindowFrameStateSeparated = mainWindowFrameStateSeparated; 78 } 79 80 public int getMainWindowFrameStateSeparated() { 81 return this.mainWindowFrameStateSeparated; 82 } 83 84 public void setEditorAreaBounds(Rectangle editorAreaBounds) { 85 this.editorAreaBounds = editorAreaBounds; 86 } 87 88 89 public Rectangle getEditorAreaBounds() { 90 return editorAreaBounds; 91 } 92 93 public void setEditorAreaState(int editorAreaState) { 94 this.editorAreaState = editorAreaState; 95 } 96 97 98 public int getEditorAreaState() { 99 return editorAreaState; 100 } 101 102 public void setEditorAreaFrameState(int editorAreaFrameState) { 103 this.editorAreaFrameState = editorAreaFrameState; 104 } 105 106 public int getEditorAreaFrameState() { 107 return this.editorAreaFrameState; 108 } 109 110 111 public void setActiveModeAccessor(ModeAccessor activeMode) { 112 this.activeMode = activeMode; 113 } 114 115 116 public ModeAccessor getActiveModeAccessor() { 117 return activeMode; 118 } 119 120 121 public void setMaximizedModeAccessor(ModeAccessor maximizedMode) { 122 this.maximizedMode = maximizedMode; 123 } 124 125 126 public ModeAccessor getMaximizedModeAccessor() { 127 return maximizedMode; 128 } 129 130 public void setToolbarConfigurationName(String toolbarConfigurationName) { 131 this.toolbarConfigurationName = toolbarConfigurationName; 132 } 133 134 public String getToolbarConfigurationName() { 135 return toolbarConfigurationName; 136 } 137 138 public void setModeStructureAccessor(ModeStructureAccessor modeStructureAccessor) { 139 this.modeStructureAccessor = modeStructureAccessor; 140 } 141 142 public ModeStructureAccessor getModeStructureAccessor() { 143 return modeStructureAccessor; 144 } 145 146 public ModeAccessor findModeAccessor(String modeName) { 147 if(modeName == null) { 148 return null; 149 } 150 151 if(modeStructureAccessor != null) { 152 return ((ModeStructureAccessorImpl)modeStructureAccessor).findModeAccessor(modeName); 153 } 154 155 return null; 156 } 157 158 public String toString() { 159 return super.toString() + "[modeStructure=" + modeStructureAccessor + ",\nactiveMode=" + activeMode + ",\nmaximizedMode=" + maximizedMode + "]"; } 162 } 163 164 | Popular Tags |