Class PageResizeEvent

java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.PageResizeEvent

public class PageResizeEvent extends BaseEvent
This class contains the data about the browser page resize event These are the following:
  • The client on which the event occurred
  • The ID of the component on which the event occurred
  • The event type
  • The instance of the component, on which the event occurred
  • The event's unique ID
  • The new page width
  • The new page height
Page resize event
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • PageResizeEvent

      public PageResizeEvent()
  • Method Details

    • getWidth

      public Long getWidth()
      Gets the page's new width, in pixels.
      Returns:
      The page's new width, in pixels.
    • getHeight

      public Long getHeight()
      Gets the page's new height, in pixels.
      Returns:
      The page's new height, in pixels.
    • fireEvent

      public void fireEvent()
      Specified by:
      fireEvent in class BaseEvent