use of com.servoy.j2db.ui.IWindowVisibleChangeListener in project servoy-client by Servoy.
the class FormDialog method setVisible.
@Override
public void setVisible(boolean b) {
for (IWindowVisibleChangeListener l : visibleChangeListeners.toArray(new IWindowVisibleChangeListener[visibleChangeListeners.size()])) l.beforeVisibleChange(this, b);
if (!b) {
// For future implementation of case 286968 change
// if (persistBounds)
// {
// super.setVisible(false);
// }
// else
// {
String name = getName();
// the parent will not save the bounds this way in Servoy.properties
setName(null);
super.setVisible(false);
setName(name);
// }
} else {
Context context = null;
Debugger debugger = null;
Object debuggerContextData = null;
if (isModal() && Utils.isAppleMacOS()) {
context = Context.enter();
debugger = context.getDebugger();
debuggerContextData = context.getDebuggerContextData();
context.setDebugger(null, null);
}
try {
super.setVisible(true);
} finally {
if (isModal() && Utils.isAppleMacOS()) {
context.setDebugger(debugger, debuggerContextData);
Context.exit();
}
}
}
}
Aggregations