@@ -62,6 +62,8 @@ private DataTransferItem(final String kind, final String type, final Object data
6262 }
6363
6464 /**
65+ * Creates a string data transfer item.
66+ *
6567 * @param data the data
6668 * @param type the type
6769 * @return a new {@link DataTransferItem}
@@ -71,6 +73,8 @@ public static DataTransferItem buildStringItem(final CharSequence data, final St
7173 }
7274
7375 /**
76+ * Creates a file data transfer item.
77+ *
7478 * @param file the file
7579 * @return a new {@link DataTransferItem}
7680 */
@@ -87,6 +91,8 @@ public void jsConstructor() {
8791 }
8892
8993 /**
94+ * Returns the {@code type} property.
95+ *
9096 * @return the {@code type} property
9197 */
9298 @ JsxGetter
@@ -95,6 +101,8 @@ public String getKind() {
95101 }
96102
97103 /**
104+ * Returns the {@code type} property.
105+ *
98106 * @return the {@code type} property
99107 */
100108 @ JsxGetter
@@ -103,8 +111,8 @@ public String getType() {
103111 }
104112
105113 /**
106- * Invokes the given callback with the drag data item's string data as the argument
107- * if the item's kind is a Plain unicode string (i.e. kind is string).
114+ * Invokes the given callback with the drag data item's string data if the item contains a plain Unicode string.
115+ *
108116 * @param callback Function to execute
109117 */
110118 @ JsxFunction
@@ -133,7 +141,9 @@ public void execute() {
133141 }
134142
135143 /**
136- * @return the drag data item's File object. If the item is not a file, this method returns null.
144+ * Returns the file represented by this drag data item.
145+ *
146+ * @return the drag data item's {@link File}, or {@code null} if this item is not a file
137147 */
138148 @ JsxFunction
139149 public File getAsFile () {
@@ -145,7 +155,9 @@ public File getAsFile() {
145155 }
146156
147157 /**
148- * @return true if this is a file
158+ * Returns whether this item represents a file.
159+ *
160+ * @return {@code true} if this item represents a file
149161 */
150162 public boolean isFile () {
151163 return kind_ == KIND_FILE ;
0 commit comments