Revision 2568
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/project/TableProperties.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
47 | 47 |
import com.iver.andami.PluginServices; |
48 |
import com.iver.andami.Utilities; |
|
49 |
import com.iver.andami.ui.mdiManager.View; |
|
48 |
import com.iver.andami.ui.mdiManager.SingletonView; |
|
50 | 49 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
51 | 50 |
import com.iver.cit.gvsig.project.ProjectTable; |
52 | 51 |
|
... | ... | |
56 | 55 |
* |
57 | 56 |
* @author Fernando Gonz?lez Cort?s |
58 | 57 |
*/ |
59 |
public class TableProperties extends JPanel implements View { |
|
58 |
public class TableProperties extends JPanel implements SingletonView {
|
|
60 | 59 |
private javax.swing.JPanel jContentPane = null; |
61 | 60 |
private javax.swing.JLabel jLabel = null; |
62 | 61 |
private javax.swing.JTextField txtName = null; |
... | ... | |
384 | 383 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
385 | 384 |
*/ |
386 | 385 |
public ViewInfo getViewInfo() { |
387 |
ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
|
|
386 |
ViewInfo m_viewinfo=new ViewInfo(); |
|
388 | 387 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_tabla")); |
389 | 388 |
m_viewinfo.setWidth(349); |
390 | 389 |
m_viewinfo.setHeight(400); |
... | ... | |
397 | 396 |
*/ |
398 | 397 |
public void viewActivated() { |
399 | 398 |
} |
399 |
|
|
400 |
/** |
|
401 |
* @see com.iver.andami.ui.mdiManager.SingletonView#getViewModel() |
|
402 |
*/ |
|
403 |
public Object getViewModel() { |
|
404 |
return table; |
|
405 |
} |
|
400 | 406 |
} |
401 | 407 |
|
402 | 408 |
|
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/project/ViewProperties.java | ||
---|---|---|
47 | 47 |
import javax.swing.JPanel; |
48 | 48 |
|
49 | 49 |
import com.iver.andami.PluginServices; |
50 |
import com.iver.andami.ui.mdiManager.View; |
|
50 |
import com.iver.andami.ui.mdiManager.SingletonView;
|
|
51 | 51 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
52 | 52 |
import com.iver.cit.gvsig.gui.Panels.ProjChooserPanel; |
53 | 53 |
import com.iver.cit.gvsig.gui.layout.Attributes; |
... | ... | |
57 | 57 |
* |
58 | 58 |
* @author Fernando Gonz?lez Cort?s |
59 | 59 |
*/ |
60 |
public class ViewProperties extends JPanel implements View{ |
|
60 |
public class ViewProperties extends JPanel implements SingletonView{
|
|
61 | 61 |
/*private String[] units = new String[] { |
62 | 62 |
PluginServices.getText(this, "metros"), |
63 | 63 |
PluginServices.getText(this, "kilometros"), |
... | ... | |
568 | 568 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
569 | 569 |
*/ |
570 | 570 |
public ViewInfo getViewInfo() { |
571 |
ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
|
|
571 |
ViewInfo m_viewinfo=new ViewInfo(); |
|
572 | 572 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_vista")); |
573 | 573 |
return m_viewinfo; |
574 | 574 |
} |
... | ... | |
627 | 627 |
} |
628 | 628 |
return jPanelProj; |
629 | 629 |
} |
630 |
|
|
631 |
/** |
|
632 |
* @see com.iver.andami.ui.mdiManager.SingletonView#getViewModel() |
|
633 |
*/ |
|
634 |
public Object getViewModel() { |
|
635 |
return view; |
|
636 |
} |
|
630 | 637 |
} // @jve:visual-info decl-index=0 visual-constraint="10,10" |
631 | 638 |
|
632 | 639 |
|
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/project/MapProperties.java | ||
---|---|---|
45 | 45 |
import javax.swing.JPanel; |
46 | 46 |
|
47 | 47 |
import com.iver.andami.PluginServices; |
48 |
import com.iver.andami.Utilities; |
|
49 | 48 |
import com.iver.andami.messages.NotificationManager; |
50 |
import com.iver.andami.ui.mdiManager.View; |
|
49 |
import com.iver.andami.ui.mdiManager.SingletonView;
|
|
51 | 50 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
52 | 51 |
import com.iver.cit.gvsig.project.ProjectMap; |
53 | 52 |
/** |
... | ... | |
55 | 54 |
* |
56 | 55 |
* @author Fernando Gonz?lez Cort?s |
57 | 56 |
*/ |
58 |
public class MapProperties extends JPanel implements View { |
|
57 |
public class MapProperties extends JPanel implements SingletonView {
|
|
59 | 58 |
private javax.swing.JPanel jContentPane = null; |
60 | 59 |
private javax.swing.JLabel jLabel = null; |
61 | 60 |
private javax.swing.JTextField txtName = null; |
... | ... | |
535 | 534 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
536 | 535 |
*/ |
537 | 536 |
public ViewInfo getViewInfo() { |
538 |
ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
|
|
537 |
ViewInfo m_viewinfo=new ViewInfo(); |
|
539 | 538 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_mapa")); |
540 | 539 |
return m_viewinfo; |
541 | 540 |
} |
... | ... | |
646 | 645 |
} |
647 | 646 |
return jCheckBox1; |
648 | 647 |
} |
648 |
/** |
|
649 |
* @see com.iver.andami.ui.mdiManager.SingletonView#getViewModel() |
|
650 |
*/ |
|
651 |
public Object getViewModel() { |
|
652 |
return map; |
|
653 |
} |
|
649 | 654 |
} // @jve:visual-info decl-index=0 visual-constraint="10,10" |
650 | 655 |
|
651 | 656 |
|
Also available in: Unified diff