Package com.xffffff.wellfed.recipe
Class RecipeBookSelectFragment
- java.lang.Object
-
- androidx.fragment.app.Fragment
-
- com.xffffff.wellfed.recipe.RecipeBookFragment
-
- com.xffffff.wellfed.recipe.RecipeBookSelectFragment
-
- All Implemented Interfaces:
android.content.ComponentCallbacks
,android.view.View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
,Launcher<Recipe>
,SortingFragment.OnSortClick
,RecipeAdapter.RecipeLauncher
public class RecipeBookSelectFragment extends RecipeBookFragment
RecipeBookSelectFragment is a version of RecipeBookFragment that allows the user to select a recipe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RecipeBookSelectFragment.OnSelectedListener
Interface for recipe selected listener
-
Field Summary
-
Fields inherited from class com.xffffff.wellfed.recipe.RecipeBookFragment
recipeEditLauncher, recipeLauncher, recipes
-
-
Constructor Summary
Constructors Constructor Description RecipeBookSelectFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
launch(Recipe recipe)
Calls the recipe selected listenervoid
setListener(RecipeBookSelectFragment.OnSelectedListener listener)
Sets the recipe selected listener-
Methods inherited from class com.xffffff.wellfed.recipe.RecipeBookFragment
onClick, onCreateView, onViewCreated
-
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
-
-
-
Method Detail
-
setListener
public void setListener(RecipeBookSelectFragment.OnSelectedListener listener)
Sets the recipe selected listener- Parameters:
listener
- recipe selected listener
-
launch
public void launch(Recipe recipe)
Calls the recipe selected listener- Specified by:
launch
in interfaceLauncher<Recipe>
- Specified by:
launch
in interfaceRecipeAdapter.RecipeLauncher
- Overrides:
launch
in classRecipeBookFragment
- Parameters:
recipe
- the item
-
-