Class NotesFactory.TextPane<T extends AbstractContainer>

    • Constructor Detail

      • TextPane

        public TextPane()
        Initializes the text pane with no notes.
      • TextPane

        public TextPane​(T data)
        Initializes the text pane with the notes in the given container.
        Parameters:
        data - the data to initialize with
    • Method Detail

      • createDocument

        protected Document createDocument()
        Creates a new document for the dialog, with syntax highlighting support.
        Returns:
        the new document
      • setData

        public void setData​(T data)
        Sets the data and notes.
        Parameters:
        data - the container containing the notes
      • getData

        public T getData()
        Returns the underlying data.
        Returns:
        the container
      • setSize

        public void setSize​(Dimension d)
        Sets the size of the text pane. Gets adapted.
        Overrides:
        setSize in class Component
        Parameters:
        d - the dimension