I notice that when you start a wave, the first blip is in edit mode (i.e. you have to click on the "done" button ). Even if you add a robot which adds things to the rootblip, this blip remains in edit mode. One problem with this is that if a robot adds a form element (e.g. a button) to the rootblip (which would seem the obvious place), the participant can't use the form until they click the "done" button.
Here's an example. This code:
public void onWaveletSelfAdded(WaveletSelfAddedEvent event) {
Wavelet wavelet = event.getWavelet();
wavelet.setTitle("Test Robot 2");
Blip rootblip = wavelet.getRootBlip();
rootblip.append(new FormElement(ElementType.RADIO_BUTTON_GROUP,
"rb_group"));
rootblip.append(new FormElement(ElementType.LABEL, "Item1", "Item
1"));
rootblip.append(new FormElement(ElementType.RADIO_BUTTON, "Item1",
"rb_group"));
rootblip.append(new FormElement(ElementType.LABEL, "Item2", "Item
2"));
rootblip.append(new FormElement(ElementType.RADIO_BUTTON, "Item2",
"rb_group"));
rootblip.append(new FormElement(ElementType.BUTTON, "select_button",
"Boy would I like to be able to click this button right now"));
}
Produces the attachment.
Is there a way for a robot to toggle edit mode for a blip?
The only possible work around I can think of is to remove the participant
from the wave and then add them in again (although I haven't tested this).
Jd
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.
<<attachment: Screen shot 2010-04-05 at 20.44.43.png>>
