diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/PageState.java | 35 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/UIState.java | 5 |
2 files changed, 40 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/PageState.java b/shared/src/com/vaadin/shared/ui/ui/PageState.java new file mode 100644 index 0000000000..d7c4268530 --- /dev/null +++ b/shared/src/com/vaadin/shared/ui/ui/PageState.java @@ -0,0 +1,35 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.shared.ui.ui; + +import java.io.Serializable; + +import com.vaadin.server.Page; + +/** + * The shared state of a {@link Page}. + * + * Note that at the moment this is not a stand-alone state class but embedded in + * {@link UIState}. This might change in the future. + * + * @since 7.1 + */ +public class PageState implements Serializable { + /** + * True if the page has browser window resize listeners. + */ + public boolean hasResizeListeners = false; +}
\ No newline at end of file diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java index e8be9d674c..2565de59df 100644 --- a/shared/src/com/vaadin/shared/ui/ui/UIState.java +++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java @@ -42,6 +42,11 @@ public class UIState extends TabIndexState { public int maxWidth = 500; } + /** + * State related to the {@link Page} class. + */ + public PageState pageState = new PageState(); + { primaryStyleName = "v-ui"; // Default is 1 for legacy reasons |