Revision 29750 trunk/frameworks/_fwAndami/src/com/iver/andami/ui/mdiManager/WindowInfo.java
WindowInfo.java | ||
---|---|---|
80 | 80 |
public static final int MODELESSDIALOG = 16; |
81 | 81 |
/** Specifies that the window may be docked inside another window */ |
82 | 82 |
public static final int PALETTE = 32; |
83 |
/** Specifies that the window may be closed */ |
|
84 |
public static final int NOTCLOSABLE = 64; |
|
83 | 85 |
|
84 | 86 |
|
85 | 87 |
/** Specifies that this window has an editor profile */ |
... | ... | |
107 | 109 |
/** DOCUMENT ME! */ |
108 | 110 |
private boolean modal = false; |
109 | 111 |
private boolean modeless = false; |
112 |
private boolean notclosable = false; |
|
110 | 113 |
|
111 | 114 |
/** |
112 | 115 |
* Do we want to persist the geometry of this window in the project file? |
... | ... | |
218 | 221 |
modeless = (code % 2) > 0; |
219 | 222 |
code = code / 2; |
220 | 223 |
palette = (code % 2) > 0; |
224 |
code = code / 2; |
|
225 |
notclosable = (code % 2) > 0; |
|
221 | 226 |
|
222 | 227 |
if (modal && modeless) { |
223 | 228 |
throw new IllegalStateException("modal && modeless"); |
... | ... | |
316 | 321 |
} |
317 | 322 |
|
318 | 323 |
/** |
324 |
* Determines whether the associated window is closable or not |
|
325 |
* |
|
326 |
* @return |
|
327 |
*/ |
|
328 |
public boolean isNotClosable() { |
|
329 |
return notclosable; |
|
330 |
} |
|
331 |
|
|
332 |
/** |
|
319 | 333 |
* Determines whether the associated window is iconifiable or not |
320 | 334 |
* |
321 | 335 |
* @return |
... | ... | |
520 | 534 |
this.additionalInfo = vi.additionalInfo; |
521 | 535 |
this.modal = vi.modal; |
522 | 536 |
this.modeless = vi.modeless; |
537 |
this.notclosable = vi.notclosable; |
|
523 | 538 |
if (vi.width!=-1) |
524 | 539 |
this.width = vi.width; |
525 | 540 |
if (vi.height!=-1) |
... | ... | |
1024 | 1039 |
xml.putProperty("isModal", this.isModal(), false); |
1025 | 1040 |
xml.putProperty("isModeless", this.isModeless(), false); |
1026 | 1041 |
xml.putProperty("isClosed", this.isClosed(), false); |
1042 |
xml.putProperty("isNotClosable", this.isNotClosable(), false); |
|
1027 | 1043 |
xml.putProperty("AdditionalInfo", this.getAdditionalInfo(), false); |
1028 | 1044 |
if (this.isMaximized()==true) { |
1029 | 1045 |
xml.putProperty("isMaximized", this.isMaximized(), false); |
... | ... | |
1053 | 1069 |
result.setHeight(xml.getIntProperty("Height")); |
1054 | 1070 |
result.setWidth(xml.getIntProperty("Width")); |
1055 | 1071 |
result.setClosed(xml.getBooleanProperty("isClosed")); |
1072 |
result.setNotClosable(xml.getBooleanProperty("isNotClosable")); |
|
1056 | 1073 |
result.setAdditionalInfo(xml.getStringProperty("AdditionalInfo")); |
1057 | 1074 |
if (xml.contains("isMaximized")) { |
1058 | 1075 |
boolean maximized = xml.getBooleanProperty("isMaximized"); |
... | ... | |
1072 | 1089 |
return result; |
1073 | 1090 |
} |
1074 | 1091 |
|
1092 |
public void setNotClosable(boolean b) { |
|
1093 |
notclosable=b; |
|
1094 |
} |
|
1095 |
|
|
1075 | 1096 |
/** |
1076 | 1097 |
* Updates this WindowInfo object according to the properties |
1077 | 1098 |
* provided by the XMLEntity parameter. |
... | ... | |
1085 | 1106 |
this.height = xml.getIntProperty("Height"); |
1086 | 1107 |
this.width = xml.getIntProperty("Width"); |
1087 | 1108 |
this.isClosed = xml.getBooleanProperty("isClosed"); |
1109 |
this.notclosable = xml.getBooleanProperty("isNotClosable"); |
|
1088 | 1110 |
this.additionalInfo = xml.getStringProperty("AdditionalInfo"); |
1089 | 1111 |
if (xml.contains("isMaximized")) { |
1090 | 1112 |
boolean maximized = xml.getBooleanProperty("isMaximized"); |
Also available in: Unified diff