Examples of XmlPopups


Examples of org.jsynthlib.driver.XmlPopups

            String editorName, List<PopupContainer> popups) {
        driver.setEditable(editable);
        Xmleditor editor = driver.addNewXmleditor();
        editor.setName(editorName);
        if (!popups.isEmpty()) {
            XmlPopups editorPopups = editor.addNewXmlPopups();
            for (PopupContainer popup : popups) {
                XmlPopup editorPopup = editorPopups.addNewXmlPopup();
                editorPopup.setTitle(popup.getTitle());
                editorPopup.setContent(popup.getContents());
            }
        }
        return editor;
View Full Code Here

Examples of org.jsynthlib.driver.XmlPopups

        xmlstore.setBank(bank);
        xmlstore.setPatch(patchNum);
        xmlstore.setSysex(sysex);

        if (!popupList.isEmpty()) {
            XmlPopups xmlPopups = xmlstore.addNewXmlPopups();
            for (PopupContainer popupContainer : popupList) {
                XmlPopup xmlPopup = xmlPopups.addNewXmlPopup();
                xmlPopup.setTitle(popupContainer.getTitle());
                xmlPopup.setContent(popupContainer.getContents());
            }
        }
    }
View Full Code Here

Examples of org.jsynthlib.driver.XmlPopups

    protected void handlePatch(Xmlpatches xmlpatches, String name,
            String sysex, List<PopupContainer> popups, String[][] contents) {
        Xmlpatch patch = xmlpatches.addNewXmlpatch();
        patch.setName(name);
        boolean first = true;
        XmlPopups xmlPopups = null;
        for (PopupContainer popup : popups) {
            if (first) {
                first = false;
                xmlPopups = patch.addNewXmlPopups();
            }
            XmlPopup xmlPopup = xmlPopups.addNewXmlPopup();
            xmlPopup.setTitle(popup.getTitle());
            xmlPopup.setContent(popup.getContents());
        }

        patch.setSendSysex(sysex);
View Full Code Here

Examples of org.jsynthlib.driver.XmlPopups

                driver.getEditable(), editable);
        if (driver.getEditable()) {
            Xmleditor editor = driver.getXmleditor();
            assertEquals("Check " + driverName + " editor " + editorName,
                    editor.getName(), editorName.trim());
            XmlPopups editorPopups = editor.getXmlPopups();
            if (editorPopups == null) {
                assertTrue("Check " + driverName + " no popup",
                        popups.isEmpty());
            } else {
                XmlPopup[] editorPopupArray = editorPopups.getXmlPopupArray();
                log.info("Driver has " + editorPopupArray.length + " popups");
                assertEquals("Check " + driverName + " popups",
                        editorPopupArray.length, popups.size());
                if (!popups.isEmpty()) {
                    for (XmlPopup editorPopup : editorPopupArray) {
View Full Code Here

Examples of org.jsynthlib.driver.XmlPopups

                xmlstore.getSysex(), sysex);
        if (popupList.isEmpty()) {
            assertNull("Check patch store popup list empty",
                    xmlstore.getXmlPopups());
        } else {
            XmlPopups xmlPopups = xmlstore.getXmlPopups();
            if (xmlPopups == null) {
                fail("Expected " + popupList.size() + " popups for bank" + bank
                        + " patch " + patchNum);
            }
            XmlPopup[] xmlPopupArray = xmlPopups.getXmlPopupArray();
            assertEquals("Check patch store popup number",
                    xmlPopupArray.length, popupList.size());
            for (int i = 0; i < xmlPopupArray.length; i++) {
                XmlPopup xmlPopup = xmlPopupArray[i];
                PopupContainer popupContainer = popupList.get(i);
View Full Code Here

Examples of org.jsynthlib.driver.XmlPopups

        Xmlpatch xmlpatch = getXmlpatch(xmlpatches, name);
        assertNotNull("Check " + name + " patch exists", xmlpatch);
        assertEquals("Check " + name + " patch sysex", xmlpatch.getSendSysex(),
                sysex);

        XmlPopups xmlPopups = xmlpatch.getXmlPopups();
        if (xmlPopups == null) {
            assertTrue("Num popups check", popups.isEmpty());
        } else {
            XmlPopup[] popupArray = xmlPopups.getXmlPopupArray();
            assertEquals("Num popups check", popupArray.length, popups.size());
            for (int l = 0; l < popupArray.length; l++) {
                XmlPopup xmlPopup = popupArray[l];
                PopupContainer popupContainer = popups.get(l);
                assertEquals("Popup title check", xmlPopup.getTitle(),
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.