Revision 12443 trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/DialogStackSupport.java
DialogStackSupport.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
/** Pila de di?logos modales mostrados */ |
62 | 62 |
private ArrayList dialogStack = new ArrayList(0); |
63 |
|
|
63 |
|
|
64 | 64 |
private ArrayList dialogCursors = new ArrayList(0); |
65 | 65 |
|
66 | 66 |
public DialogStackSupport(MDIFrame frame){ |
67 | 67 |
} |
68 |
|
|
68 |
|
|
69 | 69 |
public void pushDialog(JDialog dlg){ |
70 | 70 |
dialogStack.add(dlg); |
71 | 71 |
} |
72 |
|
|
72 |
|
|
73 | 73 |
public JDialog popDialog(){ |
74 |
return (JDialog) dialogStack.remove(dialogStack.size() - 1); |
|
74 |
int dialogStackSize=dialogStack.size(); |
|
75 |
if (dialogStackSize<1) |
|
76 |
return null; |
|
77 |
return (JDialog) dialogStack.remove(dialogStackSize - 1); |
|
75 | 78 |
} |
76 | 79 |
|
77 | 80 |
/** |
... | ... | |
88 | 91 |
} |
89 | 92 |
|
90 | 93 |
/** |
91 |
*
|
|
94 |
* |
|
92 | 95 |
*/ |
93 | 96 |
public void restoreCursor() { |
94 | 97 |
for (Iterator iter = dialogStack.iterator(); iter.hasNext();) { |
95 | 98 |
JDialog dlg = (JDialog) iter.next(); |
96 |
|
|
99 |
|
|
97 | 100 |
// TODO: RECUPERAR EL CURSOR |
98 | 101 |
dlg.setCursor(null); |
99 | 102 |
dlg.getGlassPane().setVisible(false); |
Also available in: Unified diff