/** * Returns whether this element is a form element. * * @return true if the element is a form element, false otherwise. */ public boolean isFormElement() { return FormElement.getFormElementTypes().contains(type); }
json.getAsJsonObject().get(PROPERTIES_TAG), GsonFactory.STRING_MAP_TYPE); if (FormElement.getFormElementTypes().contains(type)) { result = new FormElement(type, properties); } else if (type == ElementType.GADGET) {
ElementType type = entry.getValue().getType(); Element result = null; if (FormElement.getFormElementTypes().contains(type)) { result = new FormElement(type, entry.getValue().getProperties()); } else if (type == ElementType.GADGET) {