Class IsGalleryTypeSupportedEvent
java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.plugin.event.PluginEvent<Boolean>
com.codename1.plugin.event.IsGalleryTypeSupportedEvent
Plugin event fired when
Display#isGalleryTypeSupported(int) method is called to give
plugins an opportunity to answer this question.-
Nested Class Summary
Nested classes/interfaces inherited from class ActionEvent
ActionEvent.TypeModifier and TypeClassDescriptionstatic enumThe event type, as declared when the event is created. -
Constructor Summary
ConstructorsConstructorDescriptionIsGalleryTypeSupportedEvent(int type) Creates a new event with the given type. -
Method Summary
Methods inherited from class PluginEvent
getPluginEventResponse, setPluginEventResponseModifier and TypeMethodDescriptionGets the response to the event.voidsetPluginEventResponse(Boolean response) Sets the return value of processing the event.Methods inherited from class ActionEvent
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDragModifier and TypeMethodDescriptionvoidconsume()Consume the event indicating that it was handled thus preventing other action listeners from handling/receiving the eventIdentical toActionEvent#getComponent()except for the fact that a lead component will be returned if such a lead component is available.If this event was sent as a result of a command action this method returns that commandReturns the component that generated the event.Set in the case of a drop listener, returns the component being draggedSet in the case of a drop listener, returns the component on which the drop occursReturns the type of the given event allowing us to have more generic event handling code and useful for debuggingintIf this event was triggered by a key press this method will return the appropriate keycodeintReturns the numeric progress of native browser loading on AndroidThe element that triggered the action event, useful for decoupling event handling codeintgetX()The X position if this is a pointer event otherwise undefinedintgetY()The Y position if this is a pointer event otherwise undefinedbooleanReturns true if the event was consumed thus indicating that it was handled.booleanReturns true for long click or long pointer eventbooleanOnly used for pointer dragged events.voidsetPointerPressedDuringDrag(boolean pressed) Only used for pointer dragged events.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
IsGalleryTypeSupportedEvent
public IsGalleryTypeSupportedEvent(int type) Creates a new event with the given type.
Parameters
type: The type of the gallery. This is one of the constants defined inDisplay.
-
-
Method Details
-
getType
public int getType()Gets the type of gallery to open.
Returns
The type of gallery to open. This is one of the constants defined in
Display.Since
8.0
See also
- Display#openGallery(com.codename1.ui.events.ActionListener, int)
-