I am pushing a button to a blip:
Code:
blip.append(new Element(ElementType.BUTTON,...);
The button is shown in the blip and works fine.
There is an event that as a response to it I would like to remove the
button from the blip.
Code:
BlipContentRefs firstButton = blip.first(ElementType.BUTTON);
if(firstButton != null)
{
log.info("found the first button. deleting it");
firstButton.delete();
}
But the button is not deleted.
Below is the outgoing operations:
com.google.wave.api.AbstractRobot serializeOperations: Outgoing
operations:
[{"method":"robot.notifyCapabilitiesHash","id":"op31","params":
{"capabilitiesHash":"e16c63dbf7a7","protocolVersion":"0.21"}},
{"method":"wavelet.modifyParticipantRole","id":"op32","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":
"googlewave.com!conv
+root","participantId":"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id":"op33","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id":
"op34","params":{"waveId":"googlewave.com!w
+4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"wavelet.modifyParticipantRole","id"
:"op35","params":{"waveId":"googlewave.com!w
+4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
"[email protected]","participantRole":"READ_ONLY"}},
{"method":"document.modify","id":"op36","params":
{"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
conv+root","blipId":"b+RfIXyavlT",
"modifyAction":
{"modifyHow":"DELETE","values":null,"annotationKey":null,"elements":null,"bundledAnnotations":null,
"useMarkup":false},"modifyQuery":{"elementMatch":"BUTTON","maxRes":
1,"textMatch":null,"restrictions":{}}}}]
Please advice.
Avishay
--
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.