jan@866: /** jan@866: * Back 2 Browser Bytecode Translator jan@866: * Copyright (C) 2012 Jaroslav Tulach jan@866: * jan@866: * This program is free software: you can redistribute it and/or modify jan@866: * it under the terms of the GNU General Public License as published by jan@866: * the Free Software Foundation, version 2 of the License. jan@866: * jan@866: * This program is distributed in the hope that it will be useful, jan@866: * but WITHOUT ANY WARRANTY; without even the implied warranty of jan@866: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jan@866: * GNU General Public License for more details. jan@866: * jan@866: * You should have received a copy of the GNU General Public License jan@866: * along with this program. Look for COPYING file in the top folder. jan@866: * If not, see http://opensource.org/licenses/GPL-2.0. jan@866: */ jan@866: package org.apidesign.bck2brwsr.htmlpage; jan@866: jan@866: import java.util.HashMap; jan@866: import java.util.Map; jan@866: jan@866: /** jan@866: * Temporary storing the type of attributes here. This should be implemented in HTML 5 model jan@866: * jan@866: * @author Jan Horvath jan@866: */ jan@866: public class Attributes { jan@866: jan@866: static final Map TYPES = new HashMap() { jan@866: { jan@866: // HTML Global Attributes jan@866: // id attribute is already defined in Element, don't add it again jan@866: put("accesskey", "String"); jan@866: put("class", "String"); jan@866: put("contenteditable", "Boolean"); jan@866: put("contextmenu", "String"); jan@866: put("dir", "String"); jan@866: put("draggable", "Boolean"); jan@866: put("dropzone", "String"); jan@866: put("hidden", "Boolean"); jan@866: put("lang", "String"); jan@866: put("spellcheck", "Boolean"); jan@866: put("style", "String"); jan@866: put("tabindex", "String"); jan@866: put("title", "String"); jan@866: put("translate", "Boolean"); jan@866: put("width", "Integer"); jan@866: put("height", "Integer"); jan@866: jan@866: put("value", "String"); jan@866: put("disabled", "Boolean"); jan@866: jan@866: // put("text", "String"); 'text' field is used to set innerHTML of element jan@866: } jan@866: }; jan@866: }