Revision: 105
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=105&view=rev
Author: sem62
Date: 2008-05-08 12:14:26 -0700 (Thu, 08 May 2008)
Log Message:
-----------
Lock property dialog while editing in WYSIWYG editor.
Modified Paths:
--------------
WebEditor/src/edu/lnu/FireFly/WebEditor/AppletWithWYSIWYGEditor.java
Modified: WebEditor/src/edu/lnu/FireFly/WebEditor/AppletWithWYSIWYGEditor.java
===================================================================
--- WebEditor/src/edu/lnu/FireFly/WebEditor/AppletWithWYSIWYGEditor.java 2008-05-08 19:02:32 UTC (rev 104)
+++ WebEditor/src/edu/lnu/FireFly/WebEditor/AppletWithWYSIWYGEditor.java 2008-05-08 19:14:26 UTC (rev 105)
@@ -8,6 +8,7 @@
public class AppletWithWYSIWYGEditor extends AppletWithApiHandle{
private boolean htmlEditing = false;
private JTextField textField = null;
+ private PropertyDlg editingDlg = null;
public void htmlEdit(JTextField captionTextField2, PropertyDlg dlg) {
JSObject win = JSObject.getWindow(this);
@@ -18,7 +19,9 @@
htmlEditing = true;
textField = captionTextField2;
+ editingDlg = dlg;
+ editingDlg.setEnabled(false);
win.call("showEditor", params);
}
@@ -33,6 +36,7 @@
textField.setText(newHTML);
htmlEditing = false;
+ editingDlg.setEnabled(true);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|