summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-05-26 10:39:27 +0000
committerArtur Signell <artur.signell@itmill.com>2011-05-26 10:39:27 +0000
commit6515ece693f3f1003e349c8e4428af99797529bd (patch)
tree5f8d3aae3e7a6ebf7b773d68de3e4c9947e2ce84
parent89fb7f3f99edfe6d7de3c4373054790fffff4548 (diff)
downloadvaadin-framework-6515ece693f3f1003e349c8e4428af99797529bd.tar.gz
vaadin-framework-6515ece693f3f1003e349c8e4428af99797529bd.zip
Reformatted source
svn changeset:19088/svn branch:6.6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VWindow.java44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java b/src/com/vaadin/terminal/gwt/client/ui/VWindow.java
index 98ebf73b77..3d5288b0bf 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VWindow.java
@@ -14,13 +14,13 @@ import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
+import com.google.gwt.event.dom.client.DomEvent.Type;
import com.google.gwt.event.dom.client.FocusEvent;
import com.google.gwt.event.dom.client.FocusHandler;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.dom.client.ScrollEvent;
import com.google.gwt.event.dom.client.ScrollHandler;
-import com.google.gwt.event.dom.client.DomEvent.Type;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Command;
@@ -258,9 +258,7 @@ public class VWindow extends VOverlay implements Container,
footer = DOM.createDiv();
DOM.setElementProperty(footer, "className", CLASSNAME + "-footer");
resizeBox = DOM.createDiv();
- DOM
- .setElementProperty(resizeBox, "className", CLASSNAME
- + "-resizebox");
+ DOM.setElementProperty(resizeBox, "className", CLASSNAME + "-resizebox");
closeBox = DOM.createDiv();
DOM.setElementProperty(closeBox, "className", CLASSNAME + "-closebox");
DOM.appendChild(footer, resizeBox);
@@ -316,8 +314,8 @@ public class VWindow extends VOverlay implements Container,
}
if (uidl.hasAttribute("caption")) {
- setCaption(uidl.getStringAttribute("caption"), uidl
- .getStringAttribute("icon"));
+ setCaption(uidl.getStringAttribute("caption"),
+ uidl.getStringAttribute("icon"));
}
visibilityChangesDisabled = true;
@@ -458,8 +456,7 @@ public class VWindow extends VOverlay implements Container,
}
final String style = notification.hasAttribute("style") ? notification
- .getStringAttribute("style")
- : null;
+ .getStringAttribute("style") : null;
final int position = notification
.getIntAttribute("position");
final int delay = notification.getIntAttribute("delay");
@@ -679,7 +676,8 @@ public class VWindow extends VOverlay implements Container,
* Sets the closable state of the window. Additionally hides/shows the close
* button according to the new state.
*
- * @param closable true if the window can be closed by the user
+ * @param closable
+ * true if the window can be closed by the user
*/
protected void setClosable(boolean closable) {
if (this.closable == closable) {
@@ -777,14 +775,15 @@ public class VWindow extends VOverlay implements Container,
private void showModalityCurtain() {
if (BrowserInfo.get().isFF2()) {
- DOM.setStyleAttribute(getModalityCurtain(), "height", DOM
- .getElementPropertyInt(RootPanel.getBodyElement(),
- "offsetHeight")
- + "px");
+ DOM.setStyleAttribute(
+ getModalityCurtain(),
+ "height",
+ DOM.getElementPropertyInt(RootPanel.getBodyElement(),
+ "offsetHeight") + "px");
DOM.setStyleAttribute(getModalityCurtain(), "position", "absolute");
}
- DOM.setStyleAttribute(getModalityCurtain(), "zIndex", ""
- + (windowOrder.indexOf(this) + Z_INDEX));
+ DOM.setStyleAttribute(getModalityCurtain(), "zIndex",
+ "" + (windowOrder.indexOf(this) + Z_INDEX));
if (isShowing()) {
RootPanel.getBodyElement().insertBefore(getModalityCurtain(),
getElement());
@@ -987,7 +986,8 @@ public class VWindow extends VOverlay implements Container,
* Checks if the cursor was inside the browser content area when the event
* happened.
*
- * @param event The event to be checked
+ * @param event
+ * The event to be checked
* @return true, if the cursor is inside the browser content area
*
* false, otherwise
@@ -1075,8 +1075,8 @@ public class VWindow extends VOverlay implements Container,
rootPixelWidth = getElement().getOffsetWidth();
width = rootPixelWidth + "px";
} else {
- rootPixelWidth = Integer.parseInt(width.substring(0, width
- .indexOf("px")));
+ rootPixelWidth = Integer.parseInt(width.substring(0,
+ width.indexOf("px")));
}
// "width" now contains the new width in pixels
@@ -1305,15 +1305,15 @@ public class VWindow extends VOverlay implements Container,
public void onScroll(ScrollEvent event) {
client.updateVariable(id, "scrollTop",
contentPanel.getScrollPosition(), false);
- client.updateVariable(id, "scrollLeft", contentPanel
- .getHorizontalScrollPosition(), false);
+ client.updateVariable(id, "scrollLeft",
+ contentPanel.getHorizontalScrollPosition(), false);
}
public void onKeyDown(KeyDownEvent event) {
if (shortcutHandler != null) {
- shortcutHandler.handleKeyboardEvent(Event
- .as(event.getNativeEvent()));
+ shortcutHandler
+ .handleKeyboardEvent(Event.as(event.getNativeEvent()));
return;
}
}