Interface TextComponentBuilder<T,​C extends JTextComponent,​B extends TextComponentBuilder<T,​C,​B>>

    • Method Detail

      • editable

        B editable​(boolean editable)
        Parameters:
        editable - false if the component should not be editable
        Returns:
        this builder instance
        See Also:
        JTextComponent.setEditable(boolean)
      • updateOn

        B updateOn​(UpdateOn updateOn)
        Parameters:
        updateOn - specifies when the underlying value should be updated
        Returns:
        this builder instance
      • upperCase

        B upperCase​(boolean upperCase)
        Parameters:
        upperCase - if true the text component convert all lower case input to upper case
        Returns:
        this builder instance
      • lowerCase

        B lowerCase​(boolean lowerCase)
        Parameters:
        lowerCase - if true the text component convert all upper case input to lower case
        Returns:
        this builder instance
      • maximumLength

        B maximumLength​(int maximumLength)
        Parameters:
        maximumLength - the maximum text length
        Returns:
        this builder instance
      • controlDeleteWord

        B controlDeleteWord​(boolean controlDeleteWord)
        Parameters:
        controlDeleteWord - true if CTRL-DEL and CTRL-BACKSPACE should delete the next/previous word
        Returns:
        this builder instance
      • moveCaretToEndOnFocusGained

        B moveCaretToEndOnFocusGained​(boolean moveCaretToEndOnFocusGained)
        Parameters:
        moveCaretToEndOnFocusGained - true if the caret should be moved to the end on focus gained
        Returns:
        this builder instance
      • moveCaretToStartOnFocusGained

        B moveCaretToStartOnFocusGained​(boolean moveCaretToStartOnFocusGained)
        Parameters:
        moveCaretToStartOnFocusGained - true if the caret should be moved to the start on focus gained
        Returns:
        this builder instance
      • onTextChanged

        B onTextChanged​(Consumer<String> onTextChanged)
        Parameters:
        onTextChanged - called when the text changes
        Returns:
        this builder instance
      • dragEnabled

        B dragEnabled​(boolean dragEnabled)
        Parameters:
        dragEnabled - true if automatic drag handling should be enabled
        Returns:
        this builder instance
        See Also:
        JTextComponent.setDragEnabled(boolean)
      • focusAccelerator

        B focusAccelerator​(char focusAcceleratorKey)
        Parameters:
        focusAcceleratorKey - the focus accelerator key
        Returns:
        this builder instance
        See Also:
        JTextComponent.setFocusAccelerator(char)