Revision: 9571
Author: [email protected]
Date: Wed Jan 19 12:01:06 2011
Log: Edited wiki page Editors through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=9571
Modified:
/wiki/Editors.wiki
=======================================
--- /wiki/Editors.wiki Thu Oct 14 11:10:19 2010
+++ /wiki/Editors.wiki Wed Jan 19 12:01:06 2011
@@ -122,6 +122,7 @@
Label managerName;
}
}}}
+ * The zero-length string (i.e. `@Path("")`) may be used to map
the "current value" into a sub-editor.
* The `@Ignored` annotation may be used on a field or accessor method to
make the Editor framework ignore something that otherwise appears to be a
sub-Editor.
* Sub-Editors may be null. In this case, the Editor framework will
ignore these sub-editors.
@@ -236,11 +237,12 @@
}}}
Whether or not these editors are displayed all at the same time or
sequentially is a user experience issue. The Editor framework allows
multiple Editors to edit the same object:
{{{
-class HasBagOfStateEditor implements Editor<HasBagOfState> {
- @Editor.Path("state")
+class BagOfStateEditor implements Editor<BagOfState> {
+ // Use the zero-length string to map the peer object into the sub-editor
+ @Editor.Path("")
BagOfStateBiographicalEditor bio;
- @Editor.Path("state")
+ @Editor.Path("")
BagOfStateUserPreferencesEditor prefs;
}
}}}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors