Class BaseTextFieldWithCopyPasteButtons

    • Field Detail

      • m_ButtonCopy

        protected BaseButton m_ButtonCopy
        the copy button.
      • m_ButtonPaste

        protected BaseButton m_ButtonPaste
        the paste button.
    • Constructor Detail

      • BaseTextFieldWithCopyPasteButtons

        public BaseTextFieldWithCopyPasteButtons()
        The default constructor.
      • BaseTextFieldWithCopyPasteButtons

        public BaseTextFieldWithCopyPasteButtons​(String text)
        Initializes the list with the given text.
        Parameters:
        text - the text to use
      • BaseTextFieldWithCopyPasteButtons

        public BaseTextFieldWithCopyPasteButtons​(int columns)
        Constructs a new empty TextField with the specified number of columns. A default model is created and the initial string is set to null.
        Parameters:
        columns - the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
      • BaseTextFieldWithCopyPasteButtons

        public BaseTextFieldWithCopyPasteButtons​(String text,
                                                 int columns)
        Constructs a new TextField initialized with the specified text and columns. A default model is created.
        Parameters:
        text - the text to be displayed, or null
        columns - the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
    • Method Detail

      • copy

        public void copy()
        Copies the text to the clipboard
      • paste

        public void paste()
        Pastes text from the clipboard.
      • setCopyButtonVisible

        public void setCopyButtonVisible​(boolean value)
        Sets whether the copy button is visible.
        Parameters:
        value - true if visible
      • isCopyButtonVisible

        public boolean isCopyButtonVisible()
        Returns whether the copy button is visible.
        Returns:
        true if visible
      • setPasteButtonVisible

        public void setPasteButtonVisible​(boolean value)
        Sets whether the paste button is visible.
        Parameters:
        value - true if visible
      • isPasteButtonVisible

        public boolean isPasteButtonVisible()
        Returns whether the paste button is visible.
        Returns:
        true if visible