Statistics
| Revision:

gvsig-scripting / branches / org.gvsig.scripting / org.gvsig.scripting.swing / org.gvsig.scripting.swing.api / src / main / java / org / gvsig / scripting / swing / api / JEditor.java @ 199

History | View | Annotate | Download (871 Bytes)

1
package org.gvsig.scripting.swing.api;
2

    
3
import javax.swing.JEditorPane;
4
import javax.swing.JPanel;
5

    
6
import org.gvsig.scripting.ScriptingBaseScript;
7
import org.gvsig.scripting.ScriptingScript;
8

    
9
/**
10
 * <code>AbstractJEditor</code> is a component that provides services to edit the content of
11
 * a {@link ScriptingBaseScript}.
12
 * 
13
 * @see JCodeEditor
14
 * @see JDialogEditor
15
 * 
16
 */
17
public abstract class JEditor  extends JPanel {
18

    
19
        /**
20
         * Gets the {@link ScriptingScript} associated with this AbstractJEditor
21
         * 
22
         * @return {@link ScriptingScript}
23
         */
24
        public abstract ScriptingScript getScript();
25
        
26
        /**
27
         * Saves the {@link ScriptingScript} associated with this AbstractJEditor
28
         * 
29
         */
30
        public abstract void save();
31
        
32
        /**
33
         * Returns the JEditorPane included in the AbstractJEditor
34
         * 
35
         * @return JEditorPane
36
         */
37
        public abstract JEditorPane getJEditorPanel();
38
}