Class TextBox

    • Constructor Detail

      • TextBox

        public TextBox()
        Default constructor with a default text model.
      • TextBox

        public TextBox​(java.lang.String text)
        Text constructor with a default Text.PLAIN_CONTENT_TYPE content type.
        Parameters:
        text - The text, which may include a resource reference, or null if there is no text.
      • TextBox

        public TextBox​(java.lang.String text,
                       com.globalmentor.net.ContentType textContentType)
        Text and content type constructor
        Parameters:
        text - The text, which may include a resource reference, or null if there is no text.
        textContentType - The content type of the text.
        Throws:
        java.lang.NullPointerException - if the given content type is null.
        java.lang.IllegalArgumentException - if the given content type is not a text content type.
      • TextBox

        public TextBox​(TextModel textModel)
        Text model constructor.
        Parameters:
        textModel - The component text model.
        Throws:
        java.lang.NullPointerException - if the given text model is null.