diff options
author | John Ahlroos <john@vaadin.com> | 2012-08-31 12:27:45 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-08-31 12:27:45 +0300 |
commit | dac974af9bc73491d8818581821a2c99458f71a2 (patch) | |
tree | 235145653519a5f09a929a996485e9b0fdad3115 /server/src/com/vaadin/ui/Form.java | |
parent | 7b25b3886ea95bc6495506fbe9472e45fcbde684 (diff) | |
download | vaadin-framework-dac974af9bc73491d8818581821a2c99458f71a2.tar.gz vaadin-framework-dac974af9bc73491d8818581821a2c99458f71a2.zip |
Removed getters/setters from states and made instance variabled public
Diffstat (limited to 'server/src/com/vaadin/ui/Form.java')
-rw-r--r-- | server/src/com/vaadin/ui/Form.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/Form.java b/server/src/com/vaadin/ui/Form.java index 7e77117acb..dd804ef67a 100644 --- a/server/src/com/vaadin/ui/Form.java +++ b/server/src/com/vaadin/ui/Form.java @@ -1,4 +1,4 @@ -/* +/* * Copyright 2011 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not @@ -39,10 +39,10 @@ import com.vaadin.event.ActionManager; import com.vaadin.server.AbstractErrorMessage; import com.vaadin.server.CompositeErrorMessage; import com.vaadin.server.ErrorMessage; +import com.vaadin.server.LegacyComponent; import com.vaadin.server.PaintException; import com.vaadin.server.PaintTarget; import com.vaadin.server.UserError; -import com.vaadin.server.LegacyComponent; import com.vaadin.shared.ui.form.FormState; /** @@ -776,7 +776,7 @@ public class Form extends AbstractField<Object> implements Item.Editor, * @return the Layout of the form. */ public Layout getLayout() { - return (Layout) getState().getLayout(); + return (Layout) getState().layout; } /** @@ -819,7 +819,7 @@ public class Form extends AbstractField<Object> implements Item.Editor, // Replace the previous layout layout.setParent(this); - getState().setLayout(layout); + getState().layout = layout; } /** @@ -1214,7 +1214,7 @@ public class Form extends AbstractField<Object> implements Item.Editor, * @return layout rendered below normal form contents. */ public Layout getFooter() { - return (Layout) getState().getFooter(); + return (Layout) getState().footer; } /** @@ -1233,7 +1233,7 @@ public class Form extends AbstractField<Object> implements Item.Editor, footer = new HorizontalLayout(); } - getState().setFooter(footer); + getState().footer = footer; footer.setParent(this); } |