Interface Editor


  • public interface Editor
    Base interface for content editors.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancelEdit()
      Cancels an edit that is in progress by reverting any edits the user has made.
      boolean isEditing()  
      boolean saveChanges()
      Saves an edit that is in progress by updating the appropriate data object.
    • Method Detail

      • isEditing

        boolean isEditing()
        Returns:
        Flag saying whether or not an edit is currently in progress.
      • saveChanges

        boolean saveChanges()
        Saves an edit that is in progress by updating the appropriate data object. It is up to implementations to define the behavior when isEditing() == false.
        Returns:
        true if the changes were successfully saved; false otherwise.
      • cancelEdit

        void cancelEdit()
        Cancels an edit that is in progress by reverting any edits the user has made. It is up to implementations to define the behavior when isEditing() == false.