Class LayerClickEvent

java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.jbmap.events.LayerClickEvent

public class LayerClickEvent extends com.jbstrap.core.event.BaseEvent
The LayerClickEvent class contains the details of the click event. These are the following:
  • The name of the layer clicked on
  • The name of the layer group clicked on
  • The name of the layer clicked on
Since:
4.0
  • Field Summary

    Fields inherited from class com.jbstrap.core.event.BaseEvent

    client, eventType, senderId
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Gets the unique name of the layer group clicked on.
    Gets the layer component clicked on.
    Gets the unique name of the layer clicked on.

    Methods inherited from class com.jbstrap.core.event.BaseEvent

    b, b, getClient, getComponent, getEventId, getEventType, getSenderId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LayerClickEvent

      public LayerClickEvent()
  • Method Details

    • getName

      public String getName()
      Gets the unique name of the layer clicked on.
      Returns:
      The unique name of the layer clicked on
    • getGroupName

      public String getGroupName()
      Gets the unique name of the layer group clicked on.
      Returns:
      The unique name of the layer clicked on
    • getLayer

      public BaseLayer<?> getLayer()
      Gets the layer component clicked on.
      Returns:
      The layer component clicked on
    • fireEvent

      public void fireEvent()
      Specified by:
      fireEvent in class com.jbstrap.core.event.BaseEvent