Class EditTaskFragment

    • Constructor Detail

      • EditTaskFragment

        public EditTaskFragment()
    • Method Detail

      • onCreate

        public void onCreate​(@Nullable
                             Bundle savedInstanceState)
        requests group by id for user to add a task
        Overrides:
        onCreate in class DialogFragment
        Parameters:
        savedInstanceState - extends parcelable, allows instance to be written to
      • onCreateDialog

        @NonNull
        public Dialog onCreateDialog​(@Nullable
                                     Bundle savedInstanceState)
        Creates the pop up dialog for task input
        Overrides:
        onCreateDialog in class com.google.android.material.bottomsheet.BottomSheetDialogFragment
        Parameters:
        savedInstanceState - extends parcelable, allows instance to be written to
        Returns:
        the dialog
      • onViewCreated

        public void onViewCreated​(@NonNull
                                  View view,
                                  @Nullable
                                  Bundle savedInstanceState)
        Called immediately after onViewCreate.
        Overrides:
        onViewCreated in class Fragment
        Parameters:
        view - expands the layout and widgets
        savedInstanceState - extends teh base bundle
      • beforeTextChanged

        public void beforeTextChanged​(CharSequence s,
                                      int start,
                                      int count,
                                      int after)
        This method is called to notify you that, within s, the count characters beginning at start are about to be replaced by new text with length after.
        Specified by:
        beforeTextChanged in interface TextWatcher
        Parameters:
        s - for char sequence of data
        start - the count characters beginning at start
        count - the count of characters
        after - characters replaced by new text with length after
      • onTextChanged

        public void onTextChanged​(CharSequence s,
                                  int start,
                                  int before,
                                  int count)
        This method is called to notify you that, within s, the count characters beginning at start have just replaced old text that had length before.
        Specified by:
        onTextChanged in interface TextWatcher
        Parameters:
        s - for char sequence of data
        start - the count characters beginning at start
        before - characters replaced old text that had length before
        count - of characters
      • afterTextChanged

        public void afterTextChanged​(Editable s)
        This method is called to notify you that, somewhere within s, the text has been changed.
        Specified by:
        afterTextChanged in interface TextWatcher
        Parameters:
        s - for char sequence of data