32 import java.util.List;
33
34 import javafx.beans.InvalidationListener;
35 import javafx.beans.property.BooleanProperty;
36 import javafx.beans.property.DoubleProperty;
37 import javafx.beans.property.IntegerProperty;
38 import javafx.beans.property.SimpleDoubleProperty;
39 import javafx.beans.value.ChangeListener;
40 import javafx.beans.value.WritableValue;
41 import javafx.collections.ListChangeListener;
42 import javafx.collections.ObservableList;
43 import javafx.css.CssMetaData;
44 import javafx.css.StyleConverter;
45 import javafx.css.StyleableBooleanProperty;
46 import javafx.css.StyleableIntegerProperty;
47 import javafx.css.StyleableProperty;
48
49 import com.sun.javafx.binding.ExpressionHelper;
50 import com.sun.javafx.collections.ListListenerHelper;
51 import com.sun.javafx.collections.NonIterableChange;
52 import com.sun.javafx.css.converters.SizeConverter;
53 import com.sun.javafx.scene.control.skin.TextAreaSkin;
54
55 import javafx.css.Styleable;
56 import javafx.scene.AccessibleRole;
57
58 /**
59 * Text input component that allows a user to enter multiple lines of
60 * plain text. Unlike in previous releases of JavaFX, support for single line
61 * input is not available as part of the TextArea control, however this is
62 * the sole-purpose of the {@link TextField} control. Additionally, if you want
63 * a form of rich-text editing, there is also the
64 * {@link javafx.scene.web.HTMLEditor HTMLEditor} control.
65 *
66 * <p>TextArea supports the notion of showing {@link #promptTextProperty() prompt text}
67 * to the user when there is no {@link #textProperty() text} already in the
68 * TextArea (either via the user, or set programmatically). This is a useful
69 * way of informing the user as to what is expected in the text area, without
70 * having to resort to {@link Tooltip tooltips} or on-screen {@link Label labels}.
71 *
72 * @see TextField
73 * @since JavaFX 2.0
|
32 import java.util.List;
33
34 import javafx.beans.InvalidationListener;
35 import javafx.beans.property.BooleanProperty;
36 import javafx.beans.property.DoubleProperty;
37 import javafx.beans.property.IntegerProperty;
38 import javafx.beans.property.SimpleDoubleProperty;
39 import javafx.beans.value.ChangeListener;
40 import javafx.beans.value.WritableValue;
41 import javafx.collections.ListChangeListener;
42 import javafx.collections.ObservableList;
43 import javafx.css.CssMetaData;
44 import javafx.css.StyleConverter;
45 import javafx.css.StyleableBooleanProperty;
46 import javafx.css.StyleableIntegerProperty;
47 import javafx.css.StyleableProperty;
48
49 import com.sun.javafx.binding.ExpressionHelper;
50 import com.sun.javafx.collections.ListListenerHelper;
51 import com.sun.javafx.collections.NonIterableChange;
52 import javafx.css.converter.SizeConverter;
53 import javafx.scene.control.skin.TextAreaSkin;
54
55 import javafx.css.Styleable;
56 import javafx.scene.AccessibleRole;
57
58 /**
59 * Text input component that allows a user to enter multiple lines of
60 * plain text. Unlike in previous releases of JavaFX, support for single line
61 * input is not available as part of the TextArea control, however this is
62 * the sole-purpose of the {@link TextField} control. Additionally, if you want
63 * a form of rich-text editing, there is also the
64 * {@link javafx.scene.web.HTMLEditor HTMLEditor} control.
65 *
66 * <p>TextArea supports the notion of showing {@link #promptTextProperty() prompt text}
67 * to the user when there is no {@link #textProperty() text} already in the
68 * TextArea (either via the user, or set programmatically). This is a useful
69 * way of informing the user as to what is expected in the text area, without
70 * having to resort to {@link Tooltip tooltips} or on-screen {@link Label labels}.
71 *
72 * @see TextField
73 * @since JavaFX 2.0
|