FileDocCategorySizeDatePackage
SmilLayoutElementImpl.javaAPI DocAndroid 1.5 API2270Wed May 06 22:42:46 BST 2009com.android.mms.dom.smil

SmilLayoutElementImpl

public class SmilLayoutElementImpl extends SmilElementImpl implements org.w3c.dom.smil.SMILLayoutElement

Fields Summary
Constructors Summary
SmilLayoutElementImpl(SmilDocumentImpl owner, String tagName)

        super(owner, tagName);
    
Methods Summary
public org.w3c.dom.NodeListgetRegions()

        return this.getElementsByTagName("region");
    
public booleangetResolved()

        // TODO Auto-generated method stub
        return false;
    
public org.w3c.dom.smil.SMILRootLayoutElementgetRootLayout()

        NodeList childNodes = this.getChildNodes();
        SMILRootLayoutElement rootLayoutNode = null;
        int childrenCount = childNodes.getLength();
        for (int i = 0; i < childrenCount; i++) {
            if (childNodes.item(i).getNodeName().equals("root-layout")) {
                rootLayoutNode = (SMILRootLayoutElement)childNodes.item(i);
            }
        }
        if (null == rootLayoutNode) {
            // root-layout node is not set. Create a default one.
            rootLayoutNode = (SMILRootLayoutElement) getOwnerDocument().createElement("root-layout");
            rootLayoutNode.setWidth(LayoutManager.getInstance().getLayoutParameters().getWidth());
            rootLayoutNode.setHeight(LayoutManager.getInstance().getLayoutParameters().getHeight());
            appendChild(rootLayoutNode);
        }
        return rootLayoutNode;
    
public java.lang.StringgetType()

        return this.getAttribute("type");