1 21 24 package org.lobobrowser.html.domimpl; 25 26 import org.lobobrowser.html.style.*; 27 import org.w3c.dom.html2.HTMLUListElement; 28 29 public class HTMLUListElementImpl extends HTMLAbstractUIElement implements 30 HTMLUListElement { 31 public HTMLUListElementImpl(String name) { 32 super(name); 33 } 34 35 public boolean getCompact() { 36 String compactText = this.getAttribute("compact"); 37 return "compact".equalsIgnoreCase(compactText); 38 } 39 40 public void setCompact(boolean compact) { 41 this.setAttribute("compact", compact ? "compact" : null); 42 } 43 44 public String getType() { 45 return this.getAttribute("type"); 46 } 47 48 public void setType(String type) { 49 this.setAttribute("type", type); 50 } 51 52 protected RenderState createRenderState(RenderState prevRenderState) { 53 return new DisplayRenderState(prevRenderState, this, RenderState.DISPLAY_LIST_ITEM); 54 } 55 } 56 | Popular Tags |