gvsig-scripting / 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 @ 368
History | View | Annotate | Download (1.05 KB)
1 |
package org.gvsig.scripting.swing.api; |
---|---|
2 |
|
3 |
import java.awt.event.ActionListener; |
4 |
|
5 |
import javax.swing.JEditorPane; |
6 |
import javax.swing.JPanel; |
7 |
import javax.swing.text.JTextComponent; |
8 |
|
9 |
import org.gvsig.scripting.ScriptingScript; |
10 |
|
11 |
/**
|
12 |
* <code>AbstractJEditor</code> is a component that provides services to edit the content of
|
13 |
* a {@link ScriptingBaseScript}.
|
14 |
*
|
15 |
* @see JCodeEditor
|
16 |
* @see JDialogEditor
|
17 |
*
|
18 |
*/
|
19 |
public abstract class JEditor extends JPanel { |
20 |
|
21 |
/**
|
22 |
*
|
23 |
*/
|
24 |
private static final long serialVersionUID = -4439129120046361791L; |
25 |
|
26 |
/**
|
27 |
* Gets the {@link ScriptingScript} associated with this AbstractJEditor
|
28 |
*
|
29 |
* @return {@link ScriptingScript}
|
30 |
*/
|
31 |
public abstract ScriptingScript getScript(); |
32 |
|
33 |
|
34 |
public abstract void addDefaultActionListener(ActionListener actionlistener); |
35 |
|
36 |
/**
|
37 |
* Saves the {@link ScriptingScript} associated with this AbstractJEditor
|
38 |
*
|
39 |
*/
|
40 |
public abstract void save(); |
41 |
|
42 |
/**
|
43 |
* Returns the JEditorPane included in the AbstractJEditor
|
44 |
*
|
45 |
* @return JEditorPane
|
46 |
*/
|
47 |
public abstract JTextComponent getJTextComponent(); |
48 |
} |