Class SimpleSelectionDelegate

  • All Implemented Interfaces:
    java.io.Serializable, SelectionDelegate

    public class SimpleSelectionDelegate
    extends java.lang.Object
    implements SelectionDelegate
    Contains selection-related functionality without an associated node.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSelectionEnd()
      Returns the end position of the selected text in the owner element.
      int getSelectionStart()
      Returns the start position of the selected text in the owner element.
      void setSelectionEnd​(int selectionEnd)
      Sets the end position of the selected text in the owner element.
      void setSelectionStart​(int selectionStart)
      Sets the start position of the selected text in the owner element.
      • Methods inherited from class java.lang.Object

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

      • selectionStart_

        private int selectionStart_
      • selectionEnd_

        private int selectionEnd_
    • Constructor Detail

      • SimpleSelectionDelegate

        public SimpleSelectionDelegate()
    • Method Detail

      • getSelectionStart

        public int getSelectionStart()
        Returns the start position of the selected text in the owner element.
        Specified by:
        getSelectionStart in interface SelectionDelegate
        Returns:
        the start position of the selected text in the owner element
      • setSelectionStart

        public void setSelectionStart​(int selectionStart)
        Sets the start position of the selected text in the owner element.
        Specified by:
        setSelectionStart in interface SelectionDelegate
        Parameters:
        selectionStart - the start position of the selected text in the owner element
      • getSelectionEnd

        public int getSelectionEnd()
        Returns the end position of the selected text in the owner element.
        Specified by:
        getSelectionEnd in interface SelectionDelegate
        Returns:
        the end position of the selected text in the owner element
      • setSelectionEnd

        public void setSelectionEnd​(int selectionEnd)
        Sets the end position of the selected text in the owner element.
        Specified by:
        setSelectionEnd in interface SelectionDelegate
        Parameters:
        selectionEnd - the end position of the selected text in the owner element