You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WindowState.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.shared.ui.window;
  5. import com.vaadin.shared.ui.panel.PanelState;
  6. public class WindowState extends PanelState {
  7. private boolean modal = false;
  8. private boolean resizable = true;
  9. private boolean resizeLazy = false;
  10. private boolean draggable = true;
  11. private boolean centered = false;;
  12. private int positionX = -1;
  13. private int positionY = -1;
  14. public boolean isModal() {
  15. return modal;
  16. }
  17. public void setModal(boolean modal) {
  18. this.modal = modal;
  19. }
  20. public boolean isResizable() {
  21. return resizable;
  22. }
  23. public void setResizable(boolean resizable) {
  24. this.resizable = resizable;
  25. }
  26. public boolean isResizeLazy() {
  27. return resizeLazy;
  28. }
  29. public void setResizeLazy(boolean resizeLazy) {
  30. this.resizeLazy = resizeLazy;
  31. }
  32. public boolean isDraggable() {
  33. return draggable;
  34. }
  35. public void setDraggable(boolean draggable) {
  36. this.draggable = draggable;
  37. }
  38. public boolean isCentered() {
  39. return centered;
  40. }
  41. public void setCentered(boolean centered) {
  42. this.centered = centered;
  43. }
  44. public int getPositionX() {
  45. return positionX;
  46. }
  47. public void setPositionX(int positionX) {
  48. this.positionX = positionX;
  49. }
  50. public int getPositionY() {
  51. return positionY;
  52. }
  53. public void setPositionY(int positionY) {
  54. this.positionY = positionY;
  55. }
  56. }