List of usage examples for com.google.gwt.dom.client InputElement TAG
String TAG
To view the source code for com.google.gwt.dom.client InputElement TAG.
Click Source Link
From source file:org.bonitasoft.console.client.mvp.TemplateRepeat.java
License:Open Source License
@Override public void onBrowserEvent(Context context, Element parent, T item, NativeEvent event, ValueUpdater<T> valueUpdater) { Element element = Element.as(event.getEventTarget()); if (element.getTagName().equalsIgnoreCase(InputElement.TAG)) { final InputElement input = InputElement.as(element); notify(context, event, input, item); }//from ww w. java 2 s . c o m super.onBrowserEvent(context, parent, item, event, valueUpdater); }
From source file:org.datacleaner.monitor.shared.widgets.FileUploadFunctionHandler.java
License:Open Source License
private static InputElement getFileInput(Element element) { if (element == null) { return null; }// w w w .j a v a 2s .c o m if (InputElement.TAG.equalsIgnoreCase(element.getTagName())) { final InputElement input = InputElement.as(element); if ("file".equals(input.getType())) { return input; } } final NodeList<Node> nodes = element.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { final Node node = nodes.getItem(i); if (Element.is(node)) { InputElement input = getFileInput(Element.as(node)); if (input != null) { return input; } } } return null; }
From source file:org.opencms.ugc.client.CmsUgcWrapper.java
License:Open Source License
/** * Gets all form fields.<p>//from w w w .j ava 2s . c o m * * @return the list of form fields */ List<InputElement> getAllFields() { NodeList<Element> fields = getElement().getElementsByTagName(InputElement.TAG); List<InputElement> result = Lists.newArrayList(); for (int i = 0; i < fields.getLength(); i++) { InputElement field = InputElement.as(fields.getItem(i)); result.add(field); } return result; }