Revision 639 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.api/src/main/java/org/gvsig/scripting/swing/api/JEditor.java
JEditor.java | ||
---|---|---|
1 | 1 |
package org.gvsig.scripting.swing.api; |
2 | 2 |
|
3 |
import java.awt.event.ActionListener; |
|
4 | 3 |
import java.beans.PropertyChangeListener; |
5 | 4 |
|
6 |
import javax.swing.JEditorPane; |
|
7 |
import javax.swing.JPanel; |
|
8 |
import javax.swing.text.JTextComponent; |
|
5 |
import org.gvsig.scripting.ScriptingBaseScript; |
|
9 | 6 |
|
10 | 7 |
import org.gvsig.scripting.ScriptingScript; |
8 |
import org.gvsig.tools.swing.api.Component; |
|
11 | 9 |
|
12 | 10 |
/** |
13 | 11 |
* <code>AbstractJEditor</code> is a component that provides services to edit the content of |
... | ... | |
17 | 15 |
* @see JDialogEditor |
18 | 16 |
* |
19 | 17 |
*/ |
20 |
public abstract class JEditor extends JPanel {
|
|
18 |
public interface JEditor extends Component {
|
|
21 | 19 |
|
22 |
/** |
|
23 |
* |
|
24 |
*/ |
|
25 |
private static final long serialVersionUID = -4439129120046361791L; |
|
26 |
|
|
27 |
/** |
|
28 |
* Gets the {@link ScriptingScript} associated with this AbstractJEditor |
|
29 |
* |
|
30 |
* @return {@link ScriptingScript} |
|
31 |
*/ |
|
32 |
public abstract ScriptingScript getScript(); |
|
20 |
public ScriptingScript getScript(); |
|
33 | 21 |
|
22 |
public void addChangeListener(PropertyChangeListener listener); |
|
34 | 23 |
|
35 |
public abstract void addDefaultActionListener(ActionListener actionlistener);
|
|
24 |
public void save();
|
|
36 | 25 |
|
37 |
public abstract void addChangeListener(PropertyChangeListener listener); |
|
38 |
|
|
39 |
/** |
|
40 |
* Saves the {@link ScriptingScript} associated with this AbstractJEditor |
|
41 |
* |
|
42 |
*/ |
|
43 |
public abstract void save(); |
|
44 |
|
|
45 |
/** |
|
46 |
* Returns the JEditorPane included in the AbstractJEditor |
|
47 |
* |
|
48 |
* @return JEditorPane |
|
49 |
*/ |
|
50 |
public abstract JTextComponent getJTextComponent(); |
|
51 |
|
|
52 |
public abstract boolean isModified(); |
|
26 |
public boolean isModified(); |
|
53 | 27 |
} |
Also available in: Unified diff