Class JosmTextArea

    • Constructor Detail

      • JosmTextArea

        public JosmTextArea()
        Constructs a new JosmTextArea. A default model is set, the initial string is null, and rows/columns are set to 0.
      • JosmTextArea

        public JosmTextArea​(String text)
        Constructs a new JosmTextArea with the specified text displayed. A default model is created and rows/columns are set to 0.
        Parameters:
        text - the text to be displayed, or null
      • JosmTextArea

        public JosmTextArea​(Document doc)
        Constructs a new JosmTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).
        Parameters:
        doc - the model to use
      • JosmTextArea

        public JosmTextArea​(int rows,
                            int columns)
        Constructs a new empty JosmTextArea with the specified number of rows and columns. A default model is created, and the initial string is null.
        Parameters:
        rows - the number of rows >= 0
        columns - the number of columns >= 0
        Throws:
        IllegalArgumentException - if the rows or columns arguments are negative.
      • JosmTextArea

        public JosmTextArea​(String text,
                            int rows,
                            int columns)
        Constructs a new JosmTextArea with the specified text and number of rows and columns. A default model is created.
        Parameters:
        text - the text to be displayed, or null
        rows - the number of rows >= 0
        columns - the number of columns >= 0
        Throws:
        IllegalArgumentException - if the rows or columns arguments are negative.
      • JosmTextArea

        public JosmTextArea​(Document doc,
                            String text,
                            int rows,
                            int columns)
        Constructs a new JosmTextArea with the specified number of rows and columns, and the given model. All of the constructors feed through this constructor.
        Parameters:
        doc - the model to use, or create a default one if null
        text - the text to be displayed, null if none
        rows - the number of rows >= 0
        columns - the number of columns >= 0
        Throws:
        IllegalArgumentException - if the rows or columns arguments are negative.