Revision 4402
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/ILayerPanel.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.gui; |
|
2 |
|
|
3 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author fjp |
|
7 |
* |
|
8 |
* Interfaz que se usa por las nuevas capas que necesiten definir |
|
9 |
* una capa que todav?a no existe en gvSIG. |
|
10 |
* Para usarlo, en una extensi?n aparter, se define un JPanel |
|
11 |
* que implemente este interfaz, y luego se a?ade al Wizard |
|
12 |
* correspondiente. |
|
13 |
* Por ejemplo, cuando se crea una nueva capa, existe un Wizard |
|
14 |
* del tipo JWizardComponents en la clase NewTheme de extCAD |
|
15 |
* (o extEdition, como quiera que se llame al final) |
|
16 |
*/ |
|
17 |
public interface ILayerPanel { |
|
18 |
|
|
19 |
public FLayer getLayer(); |
|
20 |
|
|
21 |
} |
|
0 | 22 |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/WizardPanel.java | ||
---|---|---|
47 | 47 |
import com.iver.cit.gvsig.gui.wizards.WizardListener; |
48 | 48 |
import com.iver.cit.gvsig.gui.wizards.WizardListenerSupport; |
49 | 49 |
|
50 |
public abstract class WizardPanel extends JPanel{ |
|
50 |
public abstract class WizardPanel extends JPanel implements ILayerPanel{
|
|
51 | 51 |
private String tabName = "TabName"; |
52 | 52 |
private MapControl mapCtrl = null; |
53 | 53 |
private WizardListenerSupport listenerSupport = new WizardListenerSupport(); |
... | ... | |
68 | 68 |
public String getTabName() { return tabName; } |
69 | 69 |
abstract public void initWizard(); |
70 | 70 |
abstract public void execute(); |
71 |
/* (non-Javadoc) |
|
72 |
* @see com.iver.cit.gvsig.gui.ILayerPanel#getLayer() |
|
73 |
*/ |
|
71 | 74 |
abstract public FLayer getLayer(); |
72 | 75 |
/** |
73 | 76 |
* You can use it to extract information from |
Also available in: Unified diff