Source for gnu.xml.dom.html2.DomHTMLObjectElement

   1: /* DomHTMLObjectElement.java -- 
   2:    Copyright (C) 2005 Free Software Foundation, Inc.
   3: 
   4: This file is part of GNU Classpath.
   5: 
   6: GNU Classpath is free software; you can redistribute it and/or modify
   7: it under the terms of the GNU General Public License as published by
   8: the Free Software Foundation; either version 2, or (at your option)
   9: any later version.
  10: 
  11: GNU Classpath is distributed in the hope that it will be useful, but
  12: WITHOUT ANY WARRANTY; without even the implied warranty of
  13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14: General Public License for more details.
  15: 
  16: You should have received a copy of the GNU General Public License
  17: along with GNU Classpath; see the file COPYING.  If not, write to the
  18: Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19: 02110-1301 USA.
  20: 
  21: Linking this library statically or dynamically with other modules is
  22: making a combined work based on this library.  Thus, the terms and
  23: conditions of the GNU General Public License cover the whole
  24: combination.
  25: 
  26: As a special exception, the copyright holders of this library give you
  27: permission to link this library with independent modules to produce an
  28: executable, regardless of the license terms of these independent
  29: modules, and to copy and distribute the resulting executable under
  30: terms of your choice, provided that you also meet, for each linked
  31: independent module, the terms and conditions of the license of that
  32: module.  An independent module is a module which is not derived from
  33: or based on this library.  If you modify this library, you may extend
  34: this exception to your version of the library, but you are not
  35: obligated to do so.  If you do not wish to do so, delete this
  36: exception statement from your version. */
  37: 
  38: package gnu.xml.dom.html2;
  39: 
  40: import org.w3c.dom.Document;
  41: import org.w3c.dom.html2.HTMLFormElement;
  42: import org.w3c.dom.html2.HTMLObjectElement;
  43: 
  44: /**
  45:  * An HTML 'OBJECT' element node.
  46:  *
  47:  * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  48:  */
  49: public class DomHTMLObjectElement
  50:   extends DomHTMLElement
  51:   implements HTMLObjectElement
  52: {
  53: 
  54:   protected DomHTMLObjectElement(DomHTMLDocument owner, String namespaceURI,
  55:                                  String name)
  56:   {
  57:     super(owner, namespaceURI, name);
  58:   }
  59: 
  60:   public HTMLFormElement getForm()
  61:   {
  62:     return (HTMLFormElement) getParentElement("form");
  63:   }
  64: 
  65:   public String getCode()
  66:   {
  67:     return getHTMLAttribute("code");
  68:   }
  69: 
  70:   public void setCode(String code)
  71:   {
  72:     setHTMLAttribute("code", code);
  73:   }
  74:   
  75:   public String getAlign()
  76:   {
  77:     return getHTMLAttribute("align");
  78:   }
  79: 
  80:   public void setAlign(String align)
  81:   {
  82:     setHTMLAttribute("align", align);
  83:   }
  84:   
  85:   public String getArchive()
  86:   {
  87:     return getHTMLAttribute("archive");
  88:   }
  89: 
  90:   public void setArchive(String archive)
  91:   {
  92:     setHTMLAttribute("archive", archive);
  93:   }
  94:   
  95:   public String getBorder()
  96:   {
  97:     return getHTMLAttribute("border");
  98:   }
  99: 
 100:   public void setBorder(String border)
 101:   {
 102:     setHTMLAttribute("border", border);
 103:   }
 104:   
 105:   public String getCodeBase()
 106:   {
 107:     return getHTMLAttribute("codebase");
 108:   }
 109: 
 110:   public void setCodeBase(String codeBase)
 111:   {
 112:     setHTMLAttribute("codebase", codeBase);
 113:   }
 114:   
 115:   public String getCodeType()
 116:   {
 117:     return getHTMLAttribute("codetype");
 118:   }
 119: 
 120:   public void setCodeType(String codeType)
 121:   {
 122:     setHTMLAttribute("codetype", codeType);
 123:   }
 124:   
 125:   public String getData()
 126:   {
 127:     return getHTMLAttribute("data");
 128:   }
 129: 
 130:   public void setData(String data)
 131:   {
 132:     setHTMLAttribute("data", data);
 133:   }
 134:   
 135:   public boolean getDeclare()
 136:   {
 137:     return getBooleanHTMLAttribute("declare");
 138:   }
 139: 
 140:   public void setDeclare(boolean declare)
 141:   {
 142:     setBooleanHTMLAttribute("declare", declare);
 143:   }
 144:   
 145:   public String getHeight()
 146:   {
 147:     return getHTMLAttribute("height");
 148:   }
 149: 
 150:   public void setHeight(String height)
 151:   {
 152:     setHTMLAttribute("height", height);
 153:   }
 154:   
 155:   public int getHspace()
 156:   {
 157:     return getIntHTMLAttribute("hspace");
 158:   }
 159: 
 160:   public void setHspace(int hspace)
 161:   {
 162:     setIntHTMLAttribute("hspace", hspace);
 163:   }
 164:   
 165:   public String getName()
 166:   {
 167:     return getHTMLAttribute("name");
 168:   }
 169: 
 170:   public void setName(String name)
 171:   {
 172:     setHTMLAttribute("name", name);
 173:   }
 174:   
 175:   public String getStandby()
 176:   {
 177:     return getHTMLAttribute("standby");
 178:   }
 179: 
 180:   public void setStandby(String standby)
 181:   {
 182:     setHTMLAttribute("standby", standby);
 183:   }
 184:   
 185:   public int getTabIndex()
 186:   {
 187:     return getIntHTMLAttribute("tabindex");
 188:   }
 189: 
 190:   public void setTabIndex(int tabIndex)
 191:   {
 192:     setIntHTMLAttribute("tabindex", tabIndex);
 193:   }
 194:   
 195:   public String getType()
 196:   {
 197:     return getHTMLAttribute("type");
 198:   }
 199: 
 200:   public void setType(String type)
 201:   {
 202:     setHTMLAttribute("type", type);
 203:   }
 204:   
 205:   public String getUseMap()
 206:   {
 207:     return getHTMLAttribute("usemap");
 208:   }
 209: 
 210:   public void setUseMap(String useMap)
 211:   {
 212:     setHTMLAttribute("usemap", useMap);
 213:   }
 214:   
 215:   public int getVspace()
 216:   {
 217:     return getIntHTMLAttribute("vspace");
 218:   }
 219: 
 220:   public void setVspace(int vspace)
 221:   {
 222:     setIntHTMLAttribute("vspace", vspace);
 223:   }
 224:   
 225:   public String getWidth()
 226:   {
 227:     return getHTMLAttribute("width");
 228:   }
 229: 
 230:   public void setWidth(String width)
 231:   {
 232:     setHTMLAttribute("width", width);
 233:   }
 234: 
 235:   public Document getContentDocument()
 236:   {
 237:     // TODO getContentDocument
 238:     return null;
 239:   }
 240:   
 241: }