com.sun.webkit.dom.HTMLFormElementImpl Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.webkit.dom;
import org.w3c.dom.html.HTMLCollection;
import org.w3c.dom.html.HTMLFormElement;
public class HTMLFormElementImpl extends HTMLElementImpl implements HTMLFormElement {
HTMLFormElementImpl(long peer) {
super(peer);
}
static HTMLFormElement getImpl(long peer) {
return (HTMLFormElement)create(peer);
}
// Attributes
@Override
public String getAcceptCharset() {
return getAcceptCharsetImpl(getPeer());
}
native static String getAcceptCharsetImpl(long peer);
@Override
public void setAcceptCharset(String value) {
setAcceptCharsetImpl(getPeer(), value);
}
native static void setAcceptCharsetImpl(long peer, String value);
@Override
public String getAction() {
return getActionImpl(getPeer());
}
native static String getActionImpl(long peer);
@Override
public void setAction(String value) {
setActionImpl(getPeer(), value);
}
native static void setActionImpl(long peer, String value);
public String getAutocomplete() {
return getAutocompleteImpl(getPeer());
}
native static String getAutocompleteImpl(long peer);
public void setAutocomplete(String value) {
setAutocompleteImpl(getPeer(), value);
}
native static void setAutocompleteImpl(long peer, String value);
@Override
public String getEnctype() {
return getEnctypeImpl(getPeer());
}
native static String getEnctypeImpl(long peer);
@Override
public void setEnctype(String value) {
setEnctypeImpl(getPeer(), value);
}
native static void setEnctypeImpl(long peer, String value);
public String getEncoding() {
return getEncodingImpl(getPeer());
}
native static String getEncodingImpl(long peer);
public void setEncoding(String value) {
setEncodingImpl(getPeer(), value);
}
native static void setEncodingImpl(long peer, String value);
@Override
public String getMethod() {
return getMethodImpl(getPeer());
}
native static String getMethodImpl(long peer);
@Override
public void setMethod(String value) {
setMethodImpl(getPeer(), value);
}
native static void setMethodImpl(long peer, String value);
@Override
public String getName() {
return getNameImpl(getPeer());
}
native static String getNameImpl(long peer);
@Override
public void setName(String value) {
setNameImpl(getPeer(), value);
}
native static void setNameImpl(long peer, String value);
public boolean getNoValidate() {
return getNoValidateImpl(getPeer());
}
native static boolean getNoValidateImpl(long peer);
public void setNoValidate(boolean value) {
setNoValidateImpl(getPeer(), value);
}
native static void setNoValidateImpl(long peer, boolean value);
@Override
public String getTarget() {
return getTargetImpl(getPeer());
}
native static String getTargetImpl(long peer);
@Override
public void setTarget(String value) {
setTargetImpl(getPeer(), value);
}
native static void setTargetImpl(long peer, String value);
@Override
public HTMLCollection getElements() {
return HTMLCollectionImpl.getImpl(getElementsImpl(getPeer()));
}
native static long getElementsImpl(long peer);
@Override
public int getLength() {
return getLengthImpl(getPeer());
}
native static int getLengthImpl(long peer);
// Functions
@Override
public void submit()
{
submitImpl(getPeer());
}
native static void submitImpl(long peer);
@Override
public void reset()
{
resetImpl(getPeer());
}
native static void resetImpl(long peer);
public boolean checkValidity()
{
return checkValidityImpl(getPeer());
}
native static boolean checkValidityImpl(long peer);
}