001/*
002 * Copyright 2015 Cristian Rinaldi.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package gwt.material.design.jscore.client.api.html;
017
018import gwt.material.design.jscore.client.api.core.Element;
019import gwt.material.design.jscore.client.api.core.EventListener;
020import gwt.material.design.jscore.client.api.JsObject;
021import jsinterop.annotations.JsMethod;
022import jsinterop.annotations.JsProperty;
023import jsinterop.annotations.JsType;
024
025/**
026 * Native HTMLElement 
027 * 
028 * @author Cristian Rinaldi
029 */
030@JsType(isNative = true)
031public class HTMLElement extends Element {
032
033    @JsMethod
034    public native void setAttribute(String align, String center);
035
036    @JsMethod
037    public native void appendChild(HTMLElement element);
038
039    @JsMethod
040    public native void addEventListener(String event, EventListener<? extends JsObject> handler);
041
042    @JsProperty
043    public native void setInnerText(String text);
044 
045    @JsProperty
046    public native String getInnerText();
047
048}