Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
/*
* Copyright (c) 2002-2011 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host.html;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.List;
import net.sourceforge.htmlunit.corejs.javascript.Context;
import net.sourceforge.htmlunit.corejs.javascript.Function;
import net.sourceforge.htmlunit.corejs.javascript.Scriptable;
import net.sourceforge.htmlunit.corejs.javascript.ScriptableObject;
import org.apache.commons.lang.StringUtils;
import com.gargoylesoftware.htmlunit.BrowserVersionFeatures;
import com.gargoylesoftware.htmlunit.HttpMethod;
import com.gargoylesoftware.htmlunit.WebAssert;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.WebRequest;
import com.gargoylesoftware.htmlunit.html.DomNode;
import com.gargoylesoftware.htmlunit.html.FormFieldWithNameHistory;
import com.gargoylesoftware.htmlunit.html.HtmlAttributeChangeEvent;
import com.gargoylesoftware.htmlunit.html.HtmlButton;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlImage;
import com.gargoylesoftware.htmlunit.html.HtmlImageInput;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlSelect;
import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
import com.gargoylesoftware.htmlunit.protocol.javascript.JavaScriptURLConnection;
/**
* A JavaScript object for a Form.
*
* @version $Revision: 6358 $
* @author Mike Bowler
* @author Daniel Gredler
* @author Kent Tong
* @author Chris Erskine
* @author Marc Guillemot
* @author Ahmed Ashour
* @author Sudhan Moghe
* @author Ronald Brill
*
* @see MSDN documentation
*/
public class HTMLFormElement extends HTMLElement implements Function {
private HTMLCollection elements_; // has to be a member to have equality (==) working
/**
* Creates an instance. A default constructor is required for all JavaScript objects.
*/
public HTMLFormElement() {
// Empty.
}
/**
* {@inheritDoc}
*/
@Override
public void setHtmlElement(final HtmlElement htmlElement) {
super.setHtmlElement(htmlElement);
final HtmlForm htmlForm = getHtmlForm();
htmlForm.setScriptObject(this);
}
/**
* Returns the value of the JavaScript attribute "name".
* @return the value of this attribute
*/
public String jsxGet_name() {
return getHtmlForm().getNameAttribute();
}
/**
* Sets the value of the JavaScript attribute "name".
* @param name the new value
*/
public void jsxSet_name(final String name) {
WebAssert.notNull("name", name);
getHtmlForm().setNameAttribute(name);
}
/**
* Returns the value of the JavaScript attribute "elements".
* @return the value of this attribute
*/
public HTMLCollection jsxGet_elements() {
if (elements_ == null) {
final HtmlForm htmlForm = getHtmlForm();
elements_ = new HTMLCollection(htmlForm, false, "HTMLFormElement.elements") {
@Override
protected List