Class TextRendererHelper

    • Field Detail

      • IJC_BUFFER_SIZE_DEFAULT

        protected static final int IJC_BUFFER_SIZE_DEFAULT
        The default size of the initial content buffer for IJC. This is smaller than default in Swing because most of our values are short.
        See Also:
        Constant Field Values
    • Method Detail

      • getDocument

        public javax.swing.text.Document getDocument()
      • getEditorKit

        public javax.swing.text.EditorKit getEditorKit()
      • addAttribute

        protected void addAttribute​(javax.swing.text.Style style,
                                    java.lang.Object attr,
                                    java.lang.Object value)
      • checkTextLength

        public static boolean checkTextLength​(java.lang.Object value)
        Helper to control maximum editable / displayable length of a textual value.
        Parameters:
        value - value to check
        Returns:
        true if given value is null or is lower than or equal to IJCWidgetTextRenderer.MAX_TEXT_LENGTH
        Since:
        20.14.0