Class SizeEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.SizeEvent
All Implemented Interfaces:
Serializable

public class SizeEvent extends Event
Represents an event caused by a component being re-sized.
Author:
tomyeh
See Also:
  • Field Details

    • ALT_KEY

      public static final int ALT_KEY
      Indicates whether the Alt key is pressed. It might be returned as part of getKeys().
      See Also:
    • CTRL_KEY

      public static final int CTRL_KEY
      Indicates whether the Ctrl key is pressed. It might be returned as part of getKeys().
      See Also:
    • SHIFT_KEY

      public static final int SHIFT_KEY
      Indicates whether the Shift key is pressed. It might be returned as part of getKeys().
      See Also:
  • Constructor Details

    • SizeEvent

      public SizeEvent(String name, Component target, String width, String height, int keys)
      Constructs a mouse relevant event.
  • Method Details

    • getSizeEvent

      public static final SizeEvent getSizeEvent(AuRequest request)
      Converts an AU request to a size event.
      Since:
      5.0.0
    • getWidth

      public final String getWidth()
      Returns the width of the component after re-sized.
    • getHeight

      public final String getHeight()
      Returns the height of the component after re-sized.
    • getKeys

      public final int getKeys()
      Returns what keys were pressed when the component is resized, or 0 if none of them was pressed. It is a combination of CTRL_KEY, SHIFT_KEY and ALT_KEY.