Autoformat.
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1282 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/AbsolutePanel.java b/user/src/com/google/gwt/user/client/ui/AbsolutePanel.java
index b6bed98..e092b9d 100644
--- a/user/src/com/google/gwt/user/client/ui/AbsolutePanel.java
+++ b/user/src/com/google/gwt/user/client/ui/AbsolutePanel.java
@@ -27,19 +27,19 @@
* room for its absolutely-positioned children. It must be explicitly sized in
* order to make room for them.
* </p>
- *
+ *
* <p>
* Once a widget has been added to an absolute panel, the panel effectively
- * "owns" the positioning of the widget. Any existing positioning attributes
- * on the widget may be modified by the panel.
+ * "owns" the positioning of the widget. Any existing positioning attributes on
+ * the widget may be modified by the panel.
* </p>
*/
public class AbsolutePanel extends ComplexPanel {
/**
* Changes a DOM element's positioning to static.
- *
- * @param elem the DOM element
+ *
+ * @param elem the DOM element
*/
private static void changeToStaticPositioning(Element elem) {
DOM.setStyleAttribute(elem, "left", "");
@@ -69,8 +69,8 @@
}
/**
- * Adds a widget to the panel at the specified position. Setting a position
- * of <code>(-1, -1)</code> will cause the child widget to be positioned
+ * Adds a widget to the panel at the specified position. Setting a position of
+ * <code>(-1, -1)</code> will cause the child widget to be positioned
* statically.
*
* @param w the widget to be added
@@ -96,7 +96,8 @@
*/
public int getWidgetLeft(Widget w) {
checkWidgetParent(w);
- return DOM.getAbsoluteLeft(w.getElement()) - DOM.getAbsoluteLeft(getElement());
+ return DOM.getAbsoluteLeft(w.getElement())
+ - DOM.getAbsoluteLeft(getElement());
}
/**
@@ -108,7 +109,8 @@
*/
public int getWidgetTop(Widget w) {
checkWidgetParent(w);
- return DOM.getAbsoluteTop(w.getElement()) - DOM.getAbsoluteTop(getElement());
+ return DOM.getAbsoluteTop(w.getElement())
+ - DOM.getAbsoluteTop(getElement());
}
/**
@@ -130,7 +132,7 @@
* the positioning of the widget to static. This is done so that any
* positioning changes to the widget that were done by the panel are undone
* when the widget is disowned from the panel.
- *
+ *
* @param w the widget to be disowned
*/
protected void disown(Widget w) {
diff --git a/user/src/com/google/gwt/user/client/ui/DeckPanel.java b/user/src/com/google/gwt/user/client/ui/DeckPanel.java
index 9949489..02bb2ff 100644
--- a/user/src/com/google/gwt/user/client/ui/DeckPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DeckPanel.java
@@ -22,12 +22,12 @@
* A panel that displays all of its child widgets in a 'deck', where only one
* can be visible at a time. It is used by
* {@link com.google.gwt.user.client.ui.TabPanel}.
- *
+ *
* <p>
* Once a widget has been added to a DeckPanel, its visibility, width, and
- * height attributes will be manipulated. When the widget is removed from
- * the DeckPanel, it will be visible, and its width and height attributes
- * will be cleared.
+ * height attributes will be manipulated. When the widget is removed from the
+ * DeckPanel, it will be visible, and its width and height attributes will be
+ * cleared.
* </p>
*/
public class DeckPanel extends ComplexPanel {
@@ -105,12 +105,12 @@
}
/**
- * Calls the superclass' <code>disown(Widget)</code> method, makes the widget
- * visible, and clears the widget's width and height attributes. This is done
- * so that any changes to the visibility, height, or width of the widget
- * that were done by the panel are undone when the widget is disowned from
- * the panel.
- *
+ * Calls the superclass' <code>disown(Widget)</code> method, makes the
+ * widget visible, and clears the widget's width and height attributes. This
+ * is done so that any changes to the visibility, height, or width of the
+ * widget that were done by the panel are undone when the widget is disowned
+ * from the panel.
+ *
* @param w the widget to be disowned
*/
protected void disown(Widget w) {
diff --git a/user/src/com/google/gwt/user/client/ui/Widget.java b/user/src/com/google/gwt/user/client/ui/Widget.java
index caa6855..a25ad9e 100644
--- a/user/src/com/google/gwt/user/client/ui/Widget.java
+++ b/user/src/com/google/gwt/user/client/ui/Widget.java
@@ -72,8 +72,8 @@
}
/**
- * If a widget implements HasWidgets, it must override this method and
- * call onAttach() for each of its child widgets.
+ * If a widget implements HasWidgets, it must override this method and call
+ * onAttach() for each of its child widgets.
*
* @see Panel#onAttach()
*/
@@ -81,8 +81,8 @@
}
/**
- * If a widget implements HasWidgets, it must override this method and
- * call onDetach() for each of its child widgets.
+ * If a widget implements HasWidgets, it must override this method and call
+ * onDetach() for each of its child widgets.
*
* @see Panel#onDetach()
*/
@@ -91,13 +91,13 @@
/**
* This method is called when a widget is attached to the browser's document.
- * To receive notification after a Widget has been added to the
- * document, override the {@link #onLoad} method.
+ * To receive notification after a Widget has been added to the document,
+ * override the {@link #onLoad} method.
*
* <p>
* Subclasses that override this method must call
- * <code>super.onAttach()</code> to ensure that the Widget has been
- * attached to its underlying Element.
+ * <code>super.onAttach()</code> to ensure that the Widget has been attached
+ * to its underlying Element.
* </p>
*
* @throws IllegalStateException if this widget is already attached
@@ -125,10 +125,10 @@
*
* <p>
* Subclasses that override this method must call
- * <code>super.onDetach()</code> to ensure that the Widget has been
- * detached from the underlying Element. Failure to do so will result
- * in application memory leaks due to circular references between DOM
- * Elements and JavaScript objects.
+ * <code>super.onDetach()</code> to ensure that the Widget has been detached
+ * from the underlying Element. Failure to do so will result in application
+ * memory leaks due to circular references between DOM Elements and JavaScript
+ * objects.
* </p>
*
* @throws IllegalStateException if this widget is already detached
@@ -178,7 +178,8 @@
protected void setElement(Element elem) {
if (isAttached()) {
// Remove old event listener to avoid leaking. onDetach will not do this
- // for us, because it is only called when the widget itself is detached from
+ // for us, because it is only called when the widget itself is detached
+ // from
// the document.
DOM.setEventListener(getElement(), null);
}
@@ -226,13 +227,13 @@
if (parent == null) {
if (oldParent != null && oldParent.isAttached()) {
onDetach();
- assert !isAttached() :
- "Failure of " + GWT.getTypeName(this) + " to call super.onDetach()";
+ assert !isAttached() : "Failure of " + GWT.getTypeName(this)
+ + " to call super.onDetach()";
}
} else if (parent.isAttached()) {
onAttach();
- assert isAttached() :
- "Failure of " + GWT.getTypeName(this) + " to call super.onAttach()";
+ assert isAttached() : "Failure of " + GWT.getTypeName(this)
+ + " to call super.onAttach()";
}
}
}