summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/shared/ui/window/WindowState.java
blob: 428bd75167ded116562d435503f44c9d57f8f253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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;
    }

}