gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.swing / org.gvsig.scripting.swing.impl / src / main / java / org / gvsig / scripting / swing / impl / composer / JDefaultDialog.java @ 369
History | View | Annotate | Download (1.12 KB)
1 |
package org.gvsig.scripting.swing.impl.composer; |
---|---|
2 |
|
3 |
import java.awt.BorderLayout; |
4 |
import java.awt.event.ActionEvent; |
5 |
import java.awt.event.ActionListener; |
6 |
|
7 |
import javax.swing.JComponent; |
8 |
import javax.swing.JPanel; |
9 |
|
10 |
import org.gvsig.scripting.swing.api.ScriptingUIManager; |
11 |
import org.gvsig.scripting.swing.impl.DialogPanel; |
12 |
|
13 |
|
14 |
public class JDefaultDialog extends JPanel implements DialogPanel, ActionListener{ |
15 |
|
16 |
/**
|
17 |
*
|
18 |
*/
|
19 |
private static final long serialVersionUID = -5690150555730322101L; |
20 |
//private ScriptingUIManager uimanager;
|
21 |
|
22 |
public JDefaultDialog(ScriptingUIManager uimanager, DefaultJScriptingComposer composer, JPanel panel){ |
23 |
//this.uimanager = uimanager;
|
24 |
setLayout(new BorderLayout()); |
25 |
add(panel,BorderLayout.CENTER);
|
26 |
|
27 |
} |
28 |
|
29 |
public void actionAccept() { |
30 |
setVisible(false);
|
31 |
} |
32 |
|
33 |
public void actionApply() { |
34 |
} |
35 |
|
36 |
public void actionCancel() { |
37 |
} |
38 |
|
39 |
public boolean isVisibleAccept() { |
40 |
return true; |
41 |
} |
42 |
|
43 |
public boolean isVisibleApply() { |
44 |
return false; |
45 |
} |
46 |
|
47 |
public boolean isVisibleCancel() { |
48 |
return false; |
49 |
} |
50 |
|
51 |
public void actionPerformed(ActionEvent arg0) { |
52 |
|
53 |
} |
54 |
|
55 |
public JComponent getJComponent() { |
56 |
return this; |
57 |
} |
58 |
} |
59 |
|