/** * Checks whether a button in a blip was clicked or not. This method will * reset the state of the button to be "unclicked" at the end of the method * call. * * @param events A list of events received from Google Wave that needs to be * checked whether it contains form button clicked event or not. * @return true If the user just clicked on the button. */ public boolean isButtonClicked(List<Event> events) { for (Event event : events) { if (event.getType() == EventType.FORM_BUTTON_CLICKED && LOGIN_BUTTON_ID.equals(FormButtonClickedEvent.as(event).getButtonName())) { return true; } } return false; } }
if (elementInserted.getTagName().equals("click")) { FormButtonClickedEvent buttonClickedEvent = new FormButtonClickedEvent(null, null, elementInserted.getAttribute("clicker"), Long.decode(elementInserted .getAttribute("time")), blip.getId(), elementInserted
break; case FORM_BUTTON_CLICKED: onFormButtonClicked(FormButtonClickedEvent.as(event)); break; case GADGET_STATE_CHANGED: