Class LocationEvent

All Implemented Interfaces:
Serializable

public class LocationEvent extends TypedEvent
A LocationEvent is sent by a Browser to LocationListener's when the Browser navigates to a different URL. This notification typically occurs when the application navigates to a new location with Browser.setUrl(String) or when the user activates a hyperlink.
Since:
3.0
See Also:
  • Field Details

    • location

      public String location
      The URL of this event, escaped and encoded for consumption by URI(String).
    • top

      public boolean top
      A flag indicating whether the location opens in the top frame or not.
    • doit

      public boolean doit
      A flag indicating whether the location loading should be allowed. Setting this field to false will cancel the operation.
  • Constructor Details

    • LocationEvent

      public LocationEvent(Widget widget)
      Constructs a new instance of this class.
      Parameters:
      widget - the widget that fired the event
      Since:
      3.5
  • Method Details

    • toString

      public String toString()
      Returns a string containing a concise, human-readable description of the receiver.
      Overrides:
      toString in class TypedEvent
      Returns:
      a string representation of the event