@UiHandler("buildingPostButton") public void onBuildingPostButtonClick(ClickEvent e) { String custname = this.custname.getValue(); String custtel = this.custtel.getValue(); String custemail = this.custemail.getValue(); String size = sizeSmall.isChecked() ? sizeSmall.getValue() : sizeMedium.isChecked() ? sizeMedium.getValue() : sizeLarge.isChecked() ? sizeLarge.getValue() : ""; ArrayList<String> toppings = new ArrayList<String>(); if (topBacon.isChecked()) toppings.add(topBacon.getValue()); if (topCheese.isChecked()) toppings.add(topCheese.getValue()); if (topOnion.isChecked()) toppings.add(topOnion.getValue()); if (topMushroom.isChecked()) toppings.add(topMushroom.getValue()); String time = this.time.getValue(); String comments = this.comments.getValue(); handler.onBuildingPostButtonClick(custname, custtel, custemail, size, toppings, time, comments); }
@Override protected void copyAttributes(Element src, Element dest) { TextAreaElement source = src.cast(); TextAreaElement destination = dest.cast(); destination.setAccessKey(source.getAccessKey()); destination.setCols(source.getCols()); destination.setDefaultValue(source.getDefaultValue()); destination.setDisabled(source.isDisabled()); destination.setName(source.getName()); destination.setReadOnly(source.isReadOnly()); destination.setRows(source.getRows()); destination.setValue(source.getValue()); }
return new String[] {ie.getValue()}; } else if (e.getNodeName().equalsIgnoreCase("textarea")) { return new String[] {TextAreaElement.as(e).getValue()}; } else if (e.getNodeName().equalsIgnoreCase("button")) { return new String[] {ButtonElement.as(e).getValue()};