Interface LocationListener

    • Method Detail

      • changing

        void changing​(LocationEvent event)
        This method is called when the current location is about to be changed.

        The following fields in the LocationEvent apply:

        • (in) location the location to be loaded
        • (in) widget the Browser whose location is changing
        • (in/out) doit can be set to false to prevent the location from being loaded
        Parameters:
        event - the LocationEvent that specifies the location to be loaded by a Browser
        Since:
        3.0
      • changed

        void changed​(LocationEvent event)
        This method is called when the current location is changed.

        The following fields in the LocationEvent apply:

        • (in) location the current location
        • (in) top true if the location opens in the top frame or false otherwise
        • (in) widget the Browser whose location has changed
        Parameters:
        event - the LocationEvent that specifies the new location of a Browser
        Since:
        3.0
      • changingAdapter

        static LocationListener changingAdapter​(Consumer<LocationEvent> c)
        Static helper method to create a LocationListener for the changing(LocationEvent e)) method, given a lambda expression or a method reference.
        Parameters:
        c - the consumer of the event
        Returns:
        LocationListener
        Since:
        3.107
      • changedAdapter

        static LocationListener changedAdapter​(Consumer<LocationEvent> c)
        Static helper method to create a LocationListener for the changed(LocationEvent e)) method, given a lambda expression or a method reference.
        Parameters:
        c - the consumer of the event
        Returns:
        LocationListener
        Since:
        3.107