Interface ContentEditingManager.OnContentEditingContentChangeListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onContentSelectionChange(UUID contentId, int selStart, int selEnd, StyleInfo styleInfo, boolean styleWasChanged) Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position.
      void onStartEditingContentBlock(UUID contentId) Called when the provided block goes into editing mode (need to change the frame style and display the editing widget now)
      void onFinishEditingContentBlock(UUID contentId) Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished)
      void onContentChange(UUID contentId) Called when the content has successfully been changed.
      void onTextBlockStyleChange(UUID contentId, TextBlockStyleInfo textBlockStyleInfo) Called when a style that affects the whole textblock has successfully been changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onContentSelectionChange

         void onContentSelectionChange(UUID contentId, int selStart, int selEnd, StyleInfo styleInfo, boolean styleWasChanged)

        Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position.

        Parameters:
        contentId - id of the content block
        selStart - start position of the selection
        selEnd - end position of the selection, also the cursor position
        styleInfo - style info of the content block
      • onStartEditingContentBlock

         void onStartEditingContentBlock(UUID contentId)

        Called when the provided block goes into editing mode (need to change the frame style and display the editing widget now)

        Parameters:
        contentId - id of the content block
      • onFinishEditingContentBlock

         void onFinishEditingContentBlock(UUID contentId)

        Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished)

        Parameters:
        contentId - id of the content block
      • onContentChange

         void onContentChange(UUID contentId)

        Called when the content has successfully been changed.

        Parameters:
        contentId - id of the changed content block
      • onTextBlockStyleChange

         void onTextBlockStyleChange(UUID contentId, TextBlockStyleInfo textBlockStyleInfo)

        Called when a style that affects the whole textblock has successfully been changed.

        Parameters:
        contentId - id of the changed content block
        textBlockStyleInfo - style info of the changed content block