--- a/jdk/src/share/classes/javax/swing/text/html/ImageView.java Mon Jun 23 12:48:16 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/ImageView.java Mon Jun 23 13:05:27 2014 -0700
@@ -141,9 +141,11 @@
}
/**
- * Returns the text to display if the image can't be loaded. This is
+ * Returns the text to display if the image cannot be loaded. This is
* obtained from the Elements attribute set with the attribute name
* <code>HTML.Attribute.ALT</code>.
+ *
+ * @return the test to display if the image cannot be loaded.
*/
public String getAltText() {
return (String)getElement().getAttributes().getAttribute
@@ -153,6 +155,8 @@
/**
* Return a URL for the image source,
* or null if it could not be determined.
+ *
+ * @return the URL for the image source, or null if it could not be determined.
*/
public URL getImageURL() {
String src = (String)getElement().getAttributes().
@@ -171,7 +175,9 @@
}
/**
- * Returns the icon to use if the image couldn't be found.
+ * Returns the icon to use if the image could not be found.
+ *
+ * @return the icon to use if the image could not be found.
*/
public Icon getNoImageIcon() {
return (Icon) UIManager.getLookAndFeelDefaults().get(MISSING_IMAGE);
@@ -179,6 +185,8 @@
/**
* Returns the icon to use while in the process of loading the image.
+ *
+ * @return the icon to use while in the process of loading the image.
*/
public Icon getLoadingImageIcon() {
return (Icon) UIManager.getLookAndFeelDefaults().get(PENDING_IMAGE);
@@ -186,6 +194,8 @@
/**
* Returns the image to render.
+ *
+ * @return the image to render.
*/
public Image getImage() {
sync();
@@ -205,9 +215,12 @@
/**
* Sets how the image is loaded. If <code>newValue</code> is true,
- * the image we be loaded when first asked for, otherwise it will
+ * the image will be loaded when first asked for, otherwise it will
* be loaded asynchronously. The default is to not load synchronously,
* that is to load the image asynchronously.
+ *
+ * @param newValue if {@code true} the image will be loaded when first asked for,
+ * otherwise it will be asynchronously.
*/
public void setLoadsSynchronously(boolean newValue) {
synchronized(this) {
@@ -221,14 +234,18 @@
}
/**
- * Returns true if the image should be loaded when first asked for.
+ * Returns {@code true} if the image should be loaded when first asked for.
+ *
+ * @return {@code true} if the image should be loaded when first asked for.
*/
public boolean getLoadsSynchronously() {
return ((state & SYNC_LOAD_FLAG) != 0);
}
/**
- * Convenience method to get the StyleSheet.
+ * Convenient method to get the StyleSheet.
+ *
+ * @return the StyleSheet
*/
protected StyleSheet getStyleSheet() {
HTMLDocument doc = (HTMLDocument) getDocument();
@@ -613,7 +630,7 @@
}
/**
- * Convenience method for getting an integer attribute from the elements
+ * Convenient method for getting an integer attribute from the elements
* AttributeSet.
*/
private int getIntAttr(HTML.Attribute name, int deflt) {