Revision 3081 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/ShowTreeDialogPanel.java

View differences:

ShowTreeDialogPanel.java
48 48

  
49 49
import javax.swing.BoxLayout;
50 50
import javax.swing.JButton;
51
import javax.swing.JDialog;
51 52
import javax.swing.JPanel;
52 53

  
53 54
import es.gva.cit.catalogClient.metadataXML.XMLNode;
......
57 58
 * @author Jorge Piera Llodra (piera_jor@gva.es)
58 59
 */
59 60
public class ShowTreeDialogPanel extends JPanel implements ActionListener {
61
    //It is needed to close the frame
62
    private JDialog parent;
63
    
60 64
    //Panels
61
    JPanel ppalPanel = null;
62
    ShowTreePanel controlsPanel = null;
63
    JPanel buttonsPanel = null;
65
    private JPanel ppalPanel = null;
66
    private ShowTreePanel controlsPanel = null;
67
    private JPanel buttonsPanel = null;
64 68

  
65 69
    //Buttons
66
    JButton close = null;
70
    protected JButton close = null;
67 71

  
68 72
    //Otros
69
    XMLNode node = null;
70
    boolean nuevo = true;
73
    private XMLNode node = null;
74
    private boolean nuevo = true;
71 75

  
72 76
    public ShowTreeDialogPanel(XMLNode node) {
73 77
        this.node = node;
......
115 119
    }
116 120
    
117 121
    public void closeButtonActionPerformed(){
118
        this.setVisible(false);
122
        parent.setVisible(false);
119 123
    }
120 124

  
121 125
    /* (non-Javadoc)
......
127 131
            closeButtonActionPerformed();
128 132
        }
129 133
    }
134

  
135
    /**
136
     * @param parent The parent to set.
137
     */
138
    public void setParent(JDialog parent) {
139
        this.parent = parent;
140
    }
130 141
}

Also available in: Unified diff