diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-07-27 14:36:23 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-07-27 14:38:15 +0300 |
commit | 7f75d0f4cfd93d30bd5209a7fe02c819ee6ac614 (patch) | |
tree | 32dca6d9bfdef899aee0e64f78b4ef8802595f8f /src/com/vaadin/shared/ui/window/WindowState.java | |
parent | 01c312a4a7b457bfb89c19e804d403537974026f (diff) | |
download | vaadin-framework-7f75d0f4cfd93d30bd5209a7fe02c819ee6ac614.tar.gz vaadin-framework-7f75d0f4cfd93d30bd5209a7fe02c819ee6ac614.zip |
Move classes common to client and server to com.vaadin.shared.* (#8934)
Diffstat (limited to 'src/com/vaadin/shared/ui/window/WindowState.java')
-rw-r--r-- | src/com/vaadin/shared/ui/window/WindowState.java | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/com/vaadin/shared/ui/window/WindowState.java b/src/com/vaadin/shared/ui/window/WindowState.java new file mode 100644 index 0000000000..428bd75167 --- /dev/null +++ b/src/com/vaadin/shared/ui/window/WindowState.java @@ -0,0 +1,73 @@ +/* +@VaadinApache2LicenseForJavaFiles@ + */ +package com.vaadin.shared.ui.window; + +import com.vaadin.shared.ui.panel.PanelState; + +public class WindowState extends PanelState { + private boolean modal = false; + private boolean resizable = true; + private boolean resizeLazy = false; + private boolean draggable = true; + private boolean centered = false;; + private int positionX = -1; + private int positionY = -1; + + public boolean isModal() { + return modal; + } + + public void setModal(boolean modal) { + this.modal = modal; + } + + public boolean isResizable() { + return resizable; + } + + public void setResizable(boolean resizable) { + this.resizable = resizable; + } + + public boolean isResizeLazy() { + return resizeLazy; + } + + public void setResizeLazy(boolean resizeLazy) { + this.resizeLazy = resizeLazy; + } + + public boolean isDraggable() { + return draggable; + } + + public void setDraggable(boolean draggable) { + this.draggable = draggable; + } + + public boolean isCentered() { + return centered; + } + + public void setCentered(boolean centered) { + this.centered = centered; + } + + public int getPositionX() { + return positionX; + } + + public void setPositionX(int positionX) { + this.positionX = positionX; + } + + public int getPositionY() { + return positionY; + } + + public void setPositionY(int positionY) { + this.positionY = positionY; + } + +}
\ No newline at end of file |