# Class OpenGalleryEvent

java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.plugin.event.PluginEvent<Void>
com.codename1.plugin.event.OpenGalleryEvent

public class OpenGalleryEvent extends PluginEvent<Void>
Event triggered when `int)` is called.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class ActionEvent

  `ActionEvent.Type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenGalleryEvent(ActionListener response, int type)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ActionListener`
  `getResponse()`
  Gets the response listener that will be called when the gallery is closed.
  `int`
  `getType()`
  Gets the type of gallery to open.

  ### Methods inherited from class PluginEvent

  `getPluginEventResponse, setPluginEventResponse`

  ### Methods inherited from class ActionEvent

  `consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OpenGalleryEvent

    public OpenGalleryEvent(ActionListener response, int type)

- ## Method Details

  - ### getResponse

    public ActionListener getResponse()

    Gets the response listener that will be called when the gallery is closed.

    ###### Returns

    The response listener.

    ###### Since

    8.0

    ###### See also

    - Display#openGallery(com.codename1.ui.events.ActionListener, int)

  - ### getType

    public int getType()

    Gets the type of gallery to open.

    ###### Returns

    The type of gallery to open.

    ###### Since

    8.0

    ###### See also

    - Display#openGallery(com.codename1.ui.events.ActionListener, int)