public class NuevoPacienteFragment extends android.app.Fragment implements ViewFunctions.NuevoPacienteFunctions
Esta clase forma parte de la aplicacion TFG-Goniometer, desarrollada para el Trabajo de Fin de Grado - Grado en Ingenieria Informatica (Universidad de Valladolid)
NuevoPacientePresenter| Modifier and Type | Field and Description |
|---|---|
(package private) NuevoPacientePresenter |
presenter |
| Constructor and Description |
|---|
NuevoPacienteFragment() |
| Modifier and Type | Method and Description |
|---|---|
void |
displayErrorDatabase()
Metodo que muestra un mensaje de error cuando se ha intentado introducir un nuevo paciente
en la Base de Datos.
|
void |
displayErrorExistingPatient()
Metodo que muestra un mensaje de error cuando el usuario ha intentado introducir un paciente
con el mismo nombre e ID que uno ya existente en la Base de Datos.
|
void |
displayErrorUser()
Metodo que muestra un mensaje de error cuando el usuario ha introducido algun dato erroneo, o
no ha rellenado alguno de los campos obligatorios al almacenar un nuevo paciente.
|
void |
displaySuccess()
Metodo que muestra un mensaje de exito cuando se ha logrado almacenar correctamente un
paciente en la Base de Datos.
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Metodo llamado para instanciar el Fragment con su layout asociada
(R.layout.nuevo_paciente_fragment, en este caso).
|
void |
onDestroy()
Perform any final cleanup before an activity is destroyed.
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, toString, unregisterForContextMenu@Inject NuevoPacientePresenter presenter
@Nullable
public android.view.View onCreateView(android.view.LayoutInflater inflater,
@Nullable
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Se encarga, simplemente, de recoger la informacion introducida por el usuario y enviarla a NuevoPacientePresenter cuando este pulse sobre el boton "GUARDAR".
onCreateView in class android.app.Fragmentinflater - The LayoutInflater object that can be used to inflate any view in the
fragment.container - If non-null, this is the parent view that the fragment's UI should be
attached to. The fragment should not add the view itself, but this can be
used to generate the LayoutParams of the view.savedInstanceState - If non-null, this fragment is being re-constructed from a previous
saved state as given here. Return the View for the fragment's UI,
or null.public void displaySuccess()
displaySuccess in interface ViewFunctions.NuevoPacienteFunctionspublic void displayErrorDatabase()
displayErrorDatabase in interface ViewFunctions.NuevoPacienteFunctionspublic void displayErrorUser()
displayErrorUser in interface ViewFunctions.NuevoPacienteFunctionspublic void displayErrorExistingPatient()
displayErrorExistingPatient in interface ViewFunctions.NuevoPacienteFunctionspublic void onDestroy()
onDestroy in class android.app.Fragment