Revision 12443 trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/NewSkin.java
NewSkin.java | ||
---|---|---|
248 | 248 |
return p; |
249 | 249 |
} |
250 | 250 |
} |
251 |
|
|
251 |
|
|
252 | 252 |
/* (non-javadoc) |
253 | 253 |
* @see com.iver.andami.ui.mdiManager.MDIManager#addWindow(com.iver.andami.ui.mdiManager.IWindow) |
254 | 254 |
*/ |
... | ... | |
257 | 257 |
centreFrame(window); |
258 | 258 |
return window; |
259 | 259 |
} |
260 |
|
|
261 |
|
|
260 |
|
|
261 |
|
|
262 | 262 |
/** |
263 | 263 |
* Centres the Frame in the contentPane of the MainFrame. |
264 | 264 |
* If the frame can't be showed completely, it tries to show its top-left |
... | ... | |
271 | 271 |
public synchronized void centreFrame(IWindow panel) { |
272 | 272 |
Component window = fws.getFrame(panel); |
273 | 273 |
if (window==null) return; |
274 |
|
|
274 |
|
|
275 | 275 |
// The top-left square of frame reference |
276 | 276 |
Point newReferencePoint = new Point(); |
277 | 277 |
|
... | ... | |
324 | 324 |
private void addJInternalFrame(JInternalFrame wnd, WindowInfo wi) { |
325 | 325 |
wnd.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE); |
326 | 326 |
wnd.addInternalFrameListener(new FrameListener()); |
327 |
|
|
327 |
|
|
328 | 328 |
updateFrameProperties(wnd, wi); |
329 |
|
|
329 |
|
|
330 | 330 |
if (wi.isModeless() || wi.isPalette()) { |
331 | 331 |
panel.add(wnd, JDesktopPane.PALETTE_LAYER); |
332 | 332 |
if (wi.isPalette()) |
... | ... | |
537 | 537 |
*/ |
538 | 538 |
private void closeJDialog() { |
539 | 539 |
JDialog dlg = dss.popDialog(); |
540 |
|
|
540 |
if (dlg==null) |
|
541 |
return; |
|
541 | 542 |
dlg.setVisible(false); |
542 | 543 |
|
543 |
IWindow s = (IWindow) fws.getWindow(dlg);
|
|
544 |
IWindow s = fws.getWindow(dlg); |
|
544 | 545 |
|
545 | 546 |
callWindowClosed(s); |
546 | 547 |
|
... | ... | |
672 | 673 |
callWindowActivated(window); |
673 | 674 |
|
674 | 675 |
} |
675 |
|
|
676 |
|
|
676 |
|
|
677 |
|
|
677 | 678 |
/** |
678 | 679 |
* Captura el evento de cerrado de los di?logos con el fin de realizar |
679 | 680 |
* tareas de mantenimiento |
... | ... | |
877 | 878 |
frame = fws.getFrame(win); |
878 | 879 |
zPosition = panel.getPosition(frame); |
879 | 880 |
int layer = panel.getLayer(frame); |
880 |
|
|
881 |
|
|
881 | 882 |
if (! (frame instanceof JDialog)) { //JDialogs are not in inside the LayeredPane |
882 | 883 |
// flatten all the layers |
883 | 884 |
if (layer == JLayeredPane.DEFAULT_LAYER.intValue()) { |
... | ... | |
957 | 958 |
if (frame!=null) |
958 | 959 |
frame.setVisible(true); |
959 | 960 |
} |
960 |
|
|
961 |
|
|
961 | 962 |
public void setBackgroundImage(ImageIcon image, String typeDesktop) { |
962 | 963 |
this.image=image; |
963 | 964 |
this.typeDesktop=typeDesktop; |
Also available in: Unified diff