diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java index dbd7539a9a..5d1ce852c9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java @@ -1360,7 +1360,12 @@ public String getText () { * The text for a text widget is the characters in the widget, or * a zero-length array if this has never been set. * </p> - * + * <p> + * Note: Use the API to protect the text, for example, when widget is used as + * a password field. However, the text can't be protected if Segment listener + * is added to the widget. + * </p> + * * @return a character array that contains the widget's text * * @exception SWTException <ul> @@ -2264,6 +2269,11 @@ public void setText (String string) { * Sets the contents of the receiver to the characters in the array. If the receiver * has style <code>SWT.SINGLE</code> and the argument contains multiple lines of text * then the result of this operation is undefined and may vary between platforms. + * <p> + * Note: Use the API to protect the text, for example, when the widget is used as + * a password field. However, the text can't be protected if Verify or + * Segment listener is added to the widget. + * </p> * * @param text a character array that contains the new text * |