Examples of HTMLTextAreaElement


Examples of org.olat.core.gui.formelements.HTMLTextAreaElement

    String title = el_assess.attributeValue("title");
    if (title != null) addFormElement("qti.title", new StaticTextElement("qti.title", title));
    else addFormElement("qti.title", new StaticTextElement("qti.title", "-"));
   
    // extract objectives
    HTMLTextAreaElement htmlTA = new HTMLTextAreaElement("qti.objectives", 10, 60);
    htmlTA.setReadOnly(true);
    Element el_objectives = (Element)doc.selectSingleNode("//questestinterop/assessment/objectives");
    if (el_objectives != null) {
      Element el_mat = (Element)el_objectives.selectSingleNode("material/mattext");
      if (el_mat != null)
        htmlTA.setValue(el_mat.getTextTrim());
    } else htmlTA.setValue("-");
    addFormElement("qti.objectives", htmlTA);
   
    // extract num of questions
    List items = doc.selectNodes("//item");
    if (items.size() > 0)
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        Element parent = getFeatureBoxElement();
        NodeList textAreas = parent.getElementsByTagName("textarea");
        for(int i = 0; i < textAreas.getLength(); i++)
        {
            HTMLTextAreaElement textAreaElem = (HTMLTextAreaElement)textAreas.item(i);
            String classAttr = textAreaElem.getAttribute("class");
            textAreaElem.setAttribute("class",classAttr + ":collapse:nogutter");
            if (classAttr.startsWith("html") || classAttr.startsWith("xml"))
                SyntaxHighlighter.highlightMarkup(textAreaElem,itsNatDoc);
            else // java
                SyntaxHighlighter.highlightJava(textAreaElem,itsNatDoc);
        }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        return getItsNatHTMLTextArea().getHTMLTextAreaElement();
    }

    public String getDOMValueProperty()
    {
        HTMLTextAreaElement elem = getHTMLTextAreaElement();
        return elem.getValue();
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

    public void setDOMValueProperty(String str)
    {
        // No es necesario considerar la desactivaci�n de los mutation
        // events porque este m�todo es llamado por c�digo de la clase
        // base que ya controla eso.
        HTMLTextAreaElement elem = getHTMLTextAreaElement();
        elem.setValue(str);
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        elem.setValue(str);
    }

    public boolean isEditable()
    {
        HTMLTextAreaElement element = getHTMLTextAreaElement();
        return element.getReadOnly();
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

    public void setEditable(boolean b)
    {
        if (b == isEditable()) return; // No hacer nada

        HTMLTextAreaElement element = getHTMLTextAreaElement();
        element.setReadOnly( ! b );
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        element.setReadOnly( ! b );
    }

    public int getColumns()
    {
        HTMLTextAreaElement element = getHTMLTextAreaElement();
        return element.getCols();
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        return element.getCols();
    }

    public void setColumns(int cols)
    {
        HTMLTextAreaElement element = getHTMLTextAreaElement();
        element.setCols(cols);
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        return changeBasedDelegate.getText(offs,len);
    }

    public Node createDefaultNode()
    {
        HTMLTextAreaElement elem = (HTMLTextAreaElement)getItsNatDocument().getDocument().createElementNS(NamespaceUtil.XHTML_NAMESPACE,"textarea");
        elem.setCols(10); // atributo obligatorio
        elem.setRows(5); // atributo obligatorio
        return elem;
    }
View Full Code Here

Examples of org.w3c.dom.html.HTMLTextAreaElement

        this.markupDrivenUtil = ItsNatHTMLFormTextCompMarkupDrivenUtil.setMarkupDriven(this, markupDrivenUtil, value);
    }

    public boolean isEnabled()
    {
        HTMLTextAreaElement element = getHTMLTextAreaElement();
        return !element.getDisabled();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.