summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/MenuBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/MenuBar.java')
-rw-r--r--server/src/com/vaadin/ui/MenuBar.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/MenuBar.java b/server/src/com/vaadin/ui/MenuBar.java
index 17a2f8e391..6b6555c0a2 100644
--- a/server/src/com/vaadin/ui/MenuBar.java
+++ b/server/src/com/vaadin/ui/MenuBar.java
@@ -57,6 +57,11 @@ public class MenuBar extends AbstractComponent implements LegacyComponent,
return (MenuBarState) super.getState();
}
+ @Override
+ protected MenuBarState getState(boolean markAsDirty) {
+ return (MenuBarState) super.getState(markAsDirty);
+ }
+
/** Paint (serialise) the component for the client. */
@Override
public void paintContent(PaintTarget target) throws PaintException {
@@ -396,7 +401,7 @@ public class MenuBar extends AbstractComponent implements LegacyComponent,
@Override
public int getTabIndex() {
- return getState().tabIndex;
+ return getState(false).tabIndex;
}
/*