Package se.kth.speech.skatta.util

Examples of se.kth.speech.skatta.util.ExtendedElement


        add(linesLabel);
        add(m_linesField);
    }

    public ExtendedElement save(ExtendedElement parent) {
        ExtendedElement e = super.save(parent);
        if (((Integer) m_linesField.getValue()).intValue() != 1)
            e.setAttribute("rows", m_linesField.getValue().toString());
        if (m_requiredButton.isSelected())
            e.setAttribute("required", "true");
        return e;
    }
View Full Code Here


        add(m_bottomField);
    }

    @Override
    public ExtendedElement save(ExtendedElement parent) {
        ExtendedElement e = super.save(parent);
        if (m_requiredButton.isSelected())
            e.setAttribute("required", "true");
        e.setAttribute("background", m_backgroundField.getText());
        if (m_leftField.getText().length() != 0)
            e.setAttribute("left", m_leftField.getText());
        if (m_rightField.getText().length() != 0)
            e.setAttribute("right", m_rightField.getText());
        if (m_topField.getText().length() != 0)
            e.setAttribute("top", m_topField.getText());
        if (m_bottomField.getText().length() != 0)
            e.setAttribute("bottom", m_bottomField.getText());
        return e;
    }
View Full Code Here

TOP

Related Classes of se.kth.speech.skatta.util.ExtendedElement

Copyright © 2018 www.massapicom. 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.