Class GeoJsonAreaSelectionDialog

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.safehtml.client.HasSafeHtml, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>, EventListener, org.gcube.portlets.widgets.openlayerbasicwidgets.client.event.SelectAreaDialogEvent.HasSelectAreaDialogEventHandler

    public class GeoJsonAreaSelectionDialog
    extends org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.AreaSelectionDialog
    The Class GeoJsonAreaSelectionDialog.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Feb 20, 2019
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DialogBox

        com.google.gwt.user.client.ui.DialogBox.Caption, com.google.gwt.user.client.ui.DialogBox.CaptionImpl
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel

        com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonAreaSelectionDialog​(org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.GeometryType geometry)
      Instantiates a new geo json area selection dialog.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fireCommandOnResponse​(com.google.gwt.user.client.Command command)
      Fire command on response.
      static com.github.gwtbootstrap.client.ui.ListBox getGeometries()
      Gets the geometries.
      String getWktArea()
      Gets the wkt area.
      String getWKTToGeoJSON()
      Gets the WKT to geo json.
      static String print​(String txt)
      Prints the.
      static org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.GeometryType toGeometry​(String name)
      To geometry.
      String wktToGeoJSON​(String wktTxt)
      Wkt to geo json.
      • Methods inherited from class org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.AreaSelectionDialog

        addSelectAreaDialogEventHandler, getZIndex, hide, onPreviewNativeEvent, setWktGeometry, setZIndex, show
      • Methods inherited from class com.google.gwt.user.client.ui.DialogBox

        beginDragging, continueDragging, doAttachChildren, doDetachChildren, endDragging, getCaption, getHTML, getText, hide, onBrowserEvent, onEnsureDebugId, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, setHTML, setHTML, setText
      • Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel

        clear, getCellElement, getWidget, iterator, remove, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.PopupPanel

        addAutoHidePartner, addCloseHandler, addPopupListener, center, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, showRelativeTo
      • Methods inherited from class com.google.gwt.user.client.ui.SimplePanel

        add, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Constructor Detail

      • GeoJsonAreaSelectionDialog

        public GeoJsonAreaSelectionDialog​(org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.GeometryType geometry)
        Instantiates a new geo json area selection dialog.
        Parameters:
        geometry - the geometry
    • Method Detail

      • fireCommandOnResponse

        public void fireCommandOnResponse​(com.google.gwt.user.client.Command command)
        Fire command on response.
        Parameters:
        command - the command
      • print

        public static String print​(String txt)
        Prints the.
        Parameters:
        txt - the txt
        Returns:
        the string
      • wktToGeoJSON

        public String wktToGeoJSON​(String wktTxt)
                            throws Exception
        Wkt to geo json.
        Parameters:
        wktTxt - the wkt txt
        Returns:
        the string
        Throws:
        Exception - the exception
      • getWKTToGeoJSON

        public String getWKTToGeoJSON()
                               throws Exception
        Gets the WKT to geo json.
        Returns:
        the WKT to geo json
        Throws:
        Exception - the exception
      • getWktArea

        public String getWktArea()
        Gets the wkt area.
        Returns:
        the wktArea
      • getGeometries

        public static com.github.gwtbootstrap.client.ui.ListBox getGeometries()
        Gets the geometries.
        Returns:
        the geometries
      • toGeometry

        public static org.gcube.portlets.widgets.openlayerbasicwidgets.client.widgets.GeometryType toGeometry​(String name)
        To geometry.
        Parameters:
        name - the name
        Returns:
        the geometry type