# 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, getPointerEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerEvent, setPointerPressedDuringDrag`

  ### Methods inherited from class Object

  `clone, equals, 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.

    ###### 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.

    ###### See also

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