Class GOverlay

    • Constructor Detail

      • GOverlay

        public GOverlay()
        Construct.
      • GOverlay

        public GOverlay​(String id)
        Used in stateless environment as session id's are changing continuously without state.
    • Method Detail

      • getJS

        public String getJS()
        Returns:
        String representing the JavaScript add command for the corresponding JavaScript object.
      • getJSremove

        public String getJSremove()
        Returns:
        String representing the JavaScript remove command for the corresponding JavaScript object.
      • getId

        public String getId()
        Returns:
        The session unique id of this object as a String.
      • getJSconstructor

        public abstract String getJSconstructor()
        Implement the needed JavaScript constructor for the corresponding JavaScript object.
        Returns:
        String representing the JavaScript constructor.
      • getParent

        public GMap getParent()
      • getPage

        protected Page getPage()
      • setParent

        public void setParent​(GMap parent)
      • addFunctionListener

        public GOverlay addFunctionListener​(GEvent event,
                                            String jsFunction)
        Add a none Ajax Event.
      • getListeners

        public Map<GEvent,​GEventHandler> getListeners()
        Return all registered Listeners.
        Returns:
        registered listeners
      • getFunctionListeners

        public Map<GEvent,​String> getFunctionListeners()
        Return all registered Listeners.
        Returns:
        registered listeners
      • clearListeners

        public GOverlay clearListeners​(GEvent event)
        Clear listeners.
        Parameters:
        event - event to be cleared.
        Returns:
        This
      • onEvent

        public void onEvent​(AjaxRequestTarget target,
                            GEvent overlayEvent)
        Called when an Ajax call occurs.
        Parameters:
        target -
        overlayEvent -
      • updateOnAjaxCall

        protected abstract void updateOnAjaxCall​(AjaxRequestTarget target,
                                                 GEvent overlayEvent)
        Implement to handle Ajax calls to your needs.
        Parameters:
        target -
        overlayEvent -