Revision 596 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/Tag.java
Tag.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.gui.layout; |
2 | 2 |
|
3 |
import javax.swing.JButton; |
|
4 |
import javax.swing.JLabel; |
|
3 | 5 |
import javax.swing.JPanel; |
6 |
import javax.swing.JTextField; |
|
4 | 7 |
|
8 |
import com.iver.andami.PluginServices; |
|
9 |
import com.iver.andami.Utilities; |
|
10 |
import com.iver.andami.ui.mdiManager.View; |
|
11 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
|
5 | 12 |
import com.iver.cit.gvsig.gui.layout.fframes.IFFrame; |
6 |
import com.iver.mdiApp.App; |
|
7 |
import com.iver.mdiApp.Utilities; |
|
8 |
import com.iver.mdiApp.ui.MDIManager.View; |
|
9 |
import com.iver.mdiApp.ui.MDIManager.ViewInfo; |
|
10 |
|
|
11 |
|
|
12 |
import javax.swing.JTextField; |
|
13 |
import javax.swing.JLabel; |
|
14 |
import javax.swing.JButton; |
|
15 | 13 |
public class Tag extends JPanel implements View{ |
16 | 14 |
|
17 | 15 |
private JTextField jTextField = null; |
18 | 16 |
private JLabel jLabel = null; |
19 | 17 |
private JButton jButton = null; |
20 | 18 |
private JButton jButton1 = null; |
21 |
private ViewInfo m_viewinfo=null; |
|
22 | 19 |
private IFFrame fframe=null; |
23 | 20 |
/** |
24 | 21 |
* This method initializes jTextField |
... | ... | |
51 | 48 |
}else{ |
52 | 49 |
fframe.setTag(getJTextField().getText()); |
53 | 50 |
} |
54 |
App.instance.getMDIContext().closeView(Tag.this);
|
|
51 |
PluginServices.getMDIManager().closeView(Tag.this);
|
|
55 | 52 |
} |
56 | 53 |
}); |
57 | 54 |
} |
... | ... | |
68 | 65 |
jButton1.setText("Cancelar"); |
69 | 66 |
jButton1.addActionListener(new java.awt.event.ActionListener() { |
70 | 67 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
71 |
App.instance.getMDIContext().closeView(Tag.this);
|
|
68 |
PluginServices.getMDIManager().closeView(Tag.this);
|
|
72 | 69 |
} |
73 | 70 |
}); |
74 | 71 |
} |
... | ... | |
101 | 98 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
102 | 99 |
*/ |
103 | 100 |
public ViewInfo getViewInfo() { |
104 |
if (m_viewinfo==null){ |
|
105 |
m_viewinfo=new ViewInfo(); |
|
106 |
|
|
107 |
} |
|
108 |
m_viewinfo.setTitle(Utilities.getMessage(this, "tag")); |
|
109 |
return m_viewinfo; |
|
101 |
ViewInfo m_viewinfo=new ViewInfo(); |
|
102 |
m_viewinfo.setTitle(PluginServices.getText(this, "tag")); |
|
103 |
return m_viewinfo; |
|
110 | 104 |
} |
111 | 105 |
/** |
112 | 106 |
* @see com.iver.mdiApp.ui.MDIManager.View#viewActivated() |
Also available in: Unified diff