Package totalcross.ui.event
Class ListContainerEvent
- java.lang.Object
-
- totalcross.ui.event.Event<ListContainerListener>
-
- totalcross.ui.event.ListContainerEvent
-
public class ListContainerEvent extends Event<ListContainerListener>
An event generated when the user clicks on ListContainer.Item.- Since:
- SuperWaba 5.54
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.event.Event
Event.Type<H>
-
-
Field Summary
Fields Modifier and Type Field Description booleanisImage2True if the new image is the second one.static intITEM_SELECTED_EVENTEvent generated when a new item was selected.static intLEFT_IMAGE_CLICKED_EVENTEvent generated when the left image was clicked.static intRIGHT_IMAGE_CLICKED_EVENTEvent generated when the right image was clicked.ControlsourceThe control that originated the event.
-
Constructor Summary
Constructors Constructor Description ListContainerEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(ListContainerListener listener)java.lang.StringtoString()-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, touch
-
-
-
-
Field Detail
-
ITEM_SELECTED_EVENT
public static final int ITEM_SELECTED_EVENT
Event generated when a new item was selected.- See Also:
- Constant Field Values
-
LEFT_IMAGE_CLICKED_EVENT
public static final int LEFT_IMAGE_CLICKED_EVENT
Event generated when the left image was clicked. Verify the isImage2 member to determine the current image that's displayed.- See Also:
- Constant Field Values
-
RIGHT_IMAGE_CLICKED_EVENT
public static final int RIGHT_IMAGE_CLICKED_EVENT
Event generated when the right image was clicked. Verify the isImage2 member to determine the current image that's displayed.- See Also:
- Constant Field Values
-
isImage2
public boolean isImage2
True if the new image is the second one. If there are two images, one as an unselected image and a second one as the selected, using this field you can find which one is being displayed.
-
source
public Control source
The control that originated the event. When the user clicks on an Image, thetargetis the Image, and the source is the control where the image is.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classEvent<ListContainerListener>
-
dispatch
public void dispatch(ListContainerListener listener)
- Specified by:
dispatchin classEvent<ListContainerListener>
-
-