Package org.geoforge.guillc.dialog

Examples of org.geoforge.guillc.dialog.GfrDlgOkNewAbs


      double dblLon = lln.getLongitude().getDegrees();

      String[] strsChildrenExisting = GfrWrpBasTopSynEclPnts.getInstance().getSortedNamesTlo();

      // show dialog
      GfrDlgOkNewAbs dlg = new GfrDlgNewSettingsTloUrlPointFilled(
            frmOwner, (String[]) strsChildrenExisting, dblLat, dblLon,
            "New point",
            "point");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjConstructOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strValue = null;
      Point2D.Double dblGeometry = null;
      String strDescShort = null;
      String strUrl = null;


      if (!blnCancelled)
      {
         strValue = dlg.getValue();
         dblGeometry = ((GfrDlgNewSettingsTloUrlPointFilled) dlg).getGeometry(); // !!!!!!!! same as input !!!!!!!!!!
         strDescShort = ((GfrDlgNewSettingsTlo) dlg).getValueDescShort();
         strUrl = ((GfrDlgNewSettingsTloUrlAbs) dlg).getValueUrl();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;
View Full Code Here


      double dblLon = lln.getLongitude().getDegrees();

      String[] strsChildrenExisting = GfrWrpBasTopSynEclPlcs.getInstance().getSortedNamesTlo();

      // show dialog
      GfrDlgOkNewAbs dlg = new GfrDlgNewSettingsTloUrlPointFilled(
            frmOwner, (String[]) strsChildrenExisting, dblLat, dblLon,
            "New placemark",
            "placemark");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjConstructOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strValue = null;
      Point2D.Double dblGeometry = null;
      String strDescShort = null;
      String strUrl = null;


      if (!blnCancelled)
      {
         strValue = dlg.getValue();
         dblGeometry = ((GfrDlgNewSettingsTloUrlPointFilled) dlg).getGeometry(); // !!!!!!!! same as i,put !!!!!!!!!!
         strDescShort = ((GfrDlgNewSettingsTlo) dlg).getValueDescShort();
         strUrl = ((GfrDlgNewSettingsTloUrlAbs) dlg).getValueUrl();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;
View Full Code Here

   private void _newEditTloEclPnt_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPnts.getInstance().getSortedNamesTlo();

      // show dialog
      GfrDlgOkNewAbs dlg = new GfrDlgNewSettingsTloUrlPointEdit(
            frmOwner, (String[]) strsChildrenExisting,
            "New point",
            "point");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjConstructOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strValue = null;
      Point2D.Double dblGeometry = null;
      String strDescShort = null;
      String strUrl = null;


      if (!blnCancelled)
      {
         strValue = dlg.getValue();
         dblGeometry = ((GfrDlgNewSettingsTloUrlPointEdit) dlg).getGeometry();
         strDescShort = ((GfrDlgNewSettingsTlo) dlg).getValueDescShort();
         strUrl = ((GfrDlgNewSettingsTloUrlAbs) dlg).getValueUrl();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;
View Full Code Here

   private void _newEditTloEclPlc_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPlcs.getInstance().getSortedNamesTlo();

      // show dialog
      GfrDlgOkNewAbs dlg = new GfrDlgNewSettingsTloUrlPointEdit(
            frmOwner,
            (String[]) strsChildrenExisting,
            GfrResBundleLang.s_getInstance().getValue("sentence.newPlacemark"),
            GfrResBundleLang.s_getInstance().getValue("word.placemark"));

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjConstructOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strValue = null;
      Point2D.Double dblGeometry = null;
      String strDescShort = null;
      String strUrl = null;


      if (!blnCancelled)
      {
         strValue = dlg.getValue();
         dblGeometry = ((GfrDlgNewSettingsTloUrlPointEdit) dlg).getGeometry();
         strDescShort = ((GfrDlgNewSettingsTlo) dlg).getValueDescShort();
         strUrl = ((GfrDlgNewSettingsTloUrlAbs) dlg).getValueUrl();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;
View Full Code Here

   private void _newEditTloEclSct_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclScts.getInstance().getSortedNamesTlo();

      // show dialog
      GfrDlgOkNewAbs dlg = new GfrDlgNewSettingsTloUrlPnts2SctEdit(
            frmOwner, (String[]) strsChildrenExisting);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjConstructOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strValue = null;
      ArrayList<Point2D.Double> dblsGeometry = null;
      String strDescShort = null;
      String strUrl = null;


      if (!blnCancelled)
      {
         strValue = dlg.getValue();
         dblsGeometry = ((GfrDlgNewSettingsTloUrlPnts2SctAbs) dlg).getGeometry();
         strDescShort = ((GfrDlgNewSettingsTlo) dlg).getValueDescShort();
         strUrl = ((GfrDlgNewSettingsTloUrlAbs) dlg).getValueUrl();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;
View Full Code Here

TOP

Related Classes of org.geoforge.guillc.dialog.GfrDlgOkNewAbs

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.