Package com.example.skeddly.ui.utility
Class GalleryImage
java.lang.Object
com.example.skeddly.ui.utility.GalleryImage
This class represents a single image in the gallery.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()Get the event associated with this image.booleanCheck if this image is selected.voidsetSelected(boolean selected) Set the selection status of this image.
-
Constructor Details
-
GalleryImage
Constructor for GalleryImage.- Parameters:
event- The event associated with this image.
-
-
Method Details
-
getEvent
Get the event associated with this image.- Returns:
- The event associated with this image.
-
isSelected
public boolean isSelected()Check if this image is selected.- Returns:
- True if selected, false otherwise.
-
setSelected
public void setSelected(boolean selected) Set the selection status of this image.- Parameters:
selected- True to select, false to deselect.
-