Class RetroclaimFragment<V extends RetroclaimView,​P extends RetroclaimPresenter<V>>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class androidx.fragment.app.Fragment

        androidx.fragment.app.Fragment.InstantiationException, androidx.fragment.app.Fragment.SavedState
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected P createPresenter()
      Instantiate MvpFragmentView.mPresenter to be used for this MvpActivityView
      protected int getContentLayoutId()
      Provide the Content Layout ID which is of a Layout Resource Reference of Android
      android.view.View onCreateView​(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)  
      protected void onSubmitClicked()
      Method called when the submit button is clicked
      protected void onSuccessAction()
      Method called when the OK button is clicked on the success dialog
      void showChargedAmountValidationError​(java.lang.Integer error)
      Handler for validation of charge amount field
      void showClaimError​(int errorCode, java.lang.String errorMessage)
      Handler for failed retroclaim
      void showClaimStub​(Retroclaim claimStub)
      Handler for successful Retroclaim request
      void showDateValidationError​(java.lang.Integer error)
      Handler for validation of the business date field
      void showIdValidationError​(java.lang.Integer error)
      Handler for validation of transaction id
      void showLastDigitValidateError​(java.lang.Integer error)
      Handler for validation of cc last digit field
      void showLoading​(boolean show)
      UI handler for showing the progress / loading dialog
      void showPlaceValidationError​(java.lang.Integer error)
      Handler for validation of place / store field
      void showRegisterValidationError​(java.lang.Integer error)
      Handler for validation of register field
      void showSubtotalValidationError​(java.lang.Integer error)
      Handler for validation of the subtotal field
      void showTotalValidationError​(java.lang.Integer error)
      Handler for validation of total amount field
      • Methods inherited from class androidx.fragment.app.Fragment

        dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, 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, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, 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, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RetroclaimFragment

        public RetroclaimFragment()
    • Method Detail

      • showIdValidationError

        public void showIdValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of transaction id
        Specified by:
        showIdValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showPlaceValidationError

        public void showPlaceValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of place / store field
        Specified by:
        showPlaceValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showDateValidationError

        public void showDateValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of the business date field
        Specified by:
        showDateValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showSubtotalValidationError

        public void showSubtotalValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of the subtotal field
        Specified by:
        showSubtotalValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showRegisterValidationError

        public void showRegisterValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of register field
        Specified by:
        showRegisterValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showLastDigitValidateError

        public void showLastDigitValidateError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of cc last digit field
        Specified by:
        showLastDigitValidateError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showTotalValidationError

        public void showTotalValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of total amount field
        Specified by:
        showTotalValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showChargedAmountValidationError

        public void showChargedAmountValidationError​(java.lang.Integer error)
        Description copied from interface: RetroclaimView
        Handler for validation of charge amount field
        Specified by:
        showChargedAmountValidationError in interface RetroclaimView
        Parameters:
        error - resource id for the error string
      • showClaimError

        public void showClaimError​(int errorCode,
                                   java.lang.String errorMessage)
        Description copied from interface: RetroclaimView
        Handler for failed retroclaim
        Specified by:
        showClaimError in interface RetroclaimView
        Parameters:
        errorCode - error code
        errorMessage - error message
      • onSubmitClicked

        protected void onSubmitClicked()
        Method called when the submit button is clicked
      • onSuccessAction

        protected void onSuccessAction()
        Method called when the OK button is clicked on the success dialog
      • showLoading

        public void showLoading​(boolean show)
        Description copied from interface: RetroclaimView
        UI handler for showing the progress / loading dialog
        Specified by:
        showLoading in interface RetroclaimView
        Parameters:
        show - true to show the dialog, otherwise false