Package com.example.skeddly.ui.filtering
Class EventFilterPopup
java.lang.Object
android.widget.PopupWindow
com.example.skeddly.ui.filtering.EventFilterPopup
public class EventFilterPopup
extends android.widget.PopupWindow
The popup for event filters.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.widget.PopupWindow
android.widget.PopupWindow.OnDismissListener -
Field Summary
Fields inherited from class android.widget.PopupWindow
INPUT_METHOD_FROM_FOCUSABLE, INPUT_METHOD_NEEDED, INPUT_METHOD_NOT_NEEDED -
Constructor Summary
ConstructorsConstructorDescriptionEventFilterPopup(android.content.Context context, androidx.fragment.app.FragmentManager fragmentManager, android.view.View popupView, User user, android.widget.SearchView searchBar, android.widget.ImageButton dropdownButton) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf the filter is ready to be used.Get the filter object for the event - basically a data class of booleans / time values.voidSet a listener for when the user clicks "Save Filter" in the UI.Methods inherited from class android.widget.PopupWindow
dismiss, getAnimationStyle, getBackground, getContentView, getElevation, getEnterTransition, getEpicenterBounds, getExitTransition, getHeight, getInputMethodMode, getMaxAvailableHeight, getMaxAvailableHeight, getMaxAvailableHeight, getOverlapAnchor, getSoftInputMode, getWidth, getWindowLayoutType, isAboveAnchor, isAttachedInDecor, isClippedToScreen, isClippingEnabled, isFocusable, isLaidOutInScreen, isOutsideTouchable, isShowing, isSplitTouchEnabled, isTouchable, isTouchModal, setAnimationStyle, setAttachedInDecor, setBackgroundDrawable, setClippingEnabled, setContentView, setElevation, setEnterTransition, setEpicenterBounds, setExitTransition, setFocusable, setHeight, setIgnoreCheekPress, setInputMethodMode, setIsClippedToScreen, setIsLaidOutInScreen, setOnDismissListener, setOutsideTouchable, setOverlapAnchor, setSoftInputMode, setSplitTouchEnabled, setTouchable, setTouchInterceptor, setTouchModal, setWidth, setWindowLayoutMode, setWindowLayoutType, showAsDropDown, showAsDropDown, showAsDropDown, showAtLocation, update, update, update, update, update, update
-
Constructor Details
-
EventFilterPopup
public EventFilterPopup(android.content.Context context, androidx.fragment.app.FragmentManager fragmentManager, android.view.View popupView, User user, android.widget.SearchView searchBar, android.widget.ImageButton dropdownButton)
-
-
Method Details
-
setOnFilterUpdatedListener
Set a listener for when the user clicks "Save Filter" in the UI.- Parameters:
listener- FilterUpdatedListener
-
getEventFilter
Get the filter object for the event - basically a data class of booleans / time values.- Returns:
- EventFilter
-
filterReady
public boolean filterReady()If the filter is ready to be used.- Returns:
- boolean
-