Revision 42182
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.annotation/org.gvsig.annotation.swing/org.gvsig.annotation.swing.impl/src/main/java/org/gvsig/annotation/swing/impl/DefaultJAnnotationCreationServicePanel.java | ||
---|---|---|
24 | 24 |
package org.gvsig.annotation.swing.impl; |
25 | 25 |
|
26 | 26 |
import java.awt.BorderLayout; |
27 |
import java.awt.event.ComponentEvent; |
|
28 |
import java.awt.event.ComponentListener; |
|
29 |
import java.awt.event.ContainerEvent; |
|
30 |
import java.awt.event.ContainerListener; |
|
27 | 31 |
|
28 | 32 |
import javax.swing.JOptionPane; |
33 |
import javax.swing.event.AncestorEvent; |
|
34 |
import javax.swing.event.AncestorListener; |
|
29 | 35 |
|
30 | 36 |
import org.gvsig.annotation.AnnotationCreationException; |
31 | 37 |
import org.gvsig.annotation.AnnotationCreationService; |
... | ... | |
104 | 110 |
wizardPanelWithLogo.getWizardComponents().getFinishButton().setText(Messages.getText("Comenzar")); |
105 | 111 |
|
106 | 112 |
this.setLayout(new BorderLayout()); |
107 |
this.add(wizardPanelWithLogo, BorderLayout.CENTER); |
|
113 |
this.add(wizardPanelWithLogo, BorderLayout.CENTER); |
|
114 |
|
|
115 |
this.addAncestorListener(new AncestorListener() { |
|
116 |
public void ancestorAdded(AncestorEvent ancestorEvent) { |
|
117 |
} |
|
118 |
|
|
119 |
public void ancestorMoved(AncestorEvent ancestorEvent) { |
|
120 |
} |
|
121 |
|
|
122 |
public void ancestorRemoved(AncestorEvent ancestorEvent) { |
|
123 |
TaskStatus taskStatus = DefaultJAnnotationCreationServicePanel.this.getAnnotationCreationService().getTaskStatus(); |
|
124 |
taskStatus.getManager().remove(taskStatus); |
|
125 |
} |
|
126 |
}); |
|
108 | 127 |
} |
109 | 128 |
|
110 | 129 |
private void addWizards(){ |
Also available in: Unified diff