Package com.pcmsolutions.device.EMU.E4.zcommands

Examples of com.pcmsolutions.device.EMU.E4.zcommands.RefreshPresetZMTC


                }
            }
        } else if (comp instanceof EditableLinkTable.LinkSelectionAcceptor) {
            if (t.isDataFlavorSupported(linkFlavor)) {
                try {
                    LinkSelection ils = (LinkSelection) t.getTransferData(linkFlavor);
                    ((EditableLinkTable.LinkSelectionAcceptor) comp).setSelection(ils);
                    return true;
                } catch (UnsupportedFlavorException e) {
                    e.printStackTrace();
                } catch (IOException e) {
View Full Code Here


        int[] selCols = getSelectedColumns();
        // map columns to TableColumnModel
        for (int i = 0, n = selCols.length; i < n; i++)
            selCols[i] = convertColumnIndexToModel(selCols[i]) - 1; // +1 used here to compensate for row header

        return new MultiModeSelection(device, mmtm.getMultimodeContext(), selCols, selRows);
    }
View Full Code Here

            }
        }
        if (comp instanceof EditablePresetParameterTable.PresetParameterSelectionAcceptor) {
            if (t.isDataFlavorSupported(PresetParameterTableTransferHandler.presetParameterFlavor)) {
                try {
                    PresetParameterSelection pps = (PresetParameterSelection) t.getTransferData(PresetParameterTableTransferHandler.presetParameterFlavor);
                    ((EditablePresetParameterTable.PresetParameterSelectionAcceptor) comp).setSelection(pps);
                    return true;
                } catch (UnsupportedFlavorException e) {
                    e.printStackTrace();
                } catch (IOException e) {
View Full Code Here

            }
            Object obj = getModel().getValueAt(row, 0);

            Integer[] ids = (Integer[]) idList.toArray(new Integer[idList.size()]);
            if (obj instanceof ReadablePreset.ReadableVoice)
                return new VoiceParameterSelection((ReadablePreset.ReadableVoice) obj, ids);
            else if (obj instanceof ReadablePreset.ReadableVoice.ReadableZone)
                return new VoiceParameterSelection(((ReadablePreset.ReadableVoice.ReadableZone) obj).getVoice(), ids, ((ReadablePreset.ReadableVoice.ReadableZone) obj).getZoneParams(ids));
            else
                throw new IllegalStateException("column 0 is not a voice nor a zone");
        }
        return null;
    }
View Full Code Here

            }

        Integer[] arrIds = new Integer[ids.size()];
        ids.toArray(arrIds);
        try {
            return new VoiceParameterSelection(voice, arrIds, VoiceParameterSelection.voiceCategoryStringToEnum(category));
        } catch (ZDeviceNotRunningException e) {
            e.printStackTrace();
        } catch (IllegalParameterIdException e) {
            e.printStackTrace();
        } catch (PresetEmptyException e) {
View Full Code Here

    public String getTableTitle() {
        return title;
    }

    public VoiceParameterSelection getSelection() {
        VoiceParameterSelection vps = super.getSelection();
        if (vps != null)
            return new CordParameterSelection(vps);
        return null;
    }
View Full Code Here

                e.printStackTrace();
            } catch (NoSuchZoneException e) {
                e.printStackTrace();
            }

        return new VoiceParameterSelectionCollection(preset.getDeviceContext(), (VoiceParameterSelection[]) sels.toArray(new VoiceParameterSelection[sels.size()]), VoiceParameterSelection.VOICE_GENERAL);
    }
View Full Code Here

            }
        }
        if (comp instanceof EditableVoiceOverviewTable.VoiceSelectionAcceptor) {
            if (t.isDataFlavorSupported(VoiceOverviewTableTransferHandler.voiceFlavor)) {
                try {
                    VoiceSelection vs = (VoiceSelection) t.getTransferData(VoiceOverviewTableTransferHandler.voiceFlavor);
                    ((EditableVoiceOverviewTable.VoiceSelectionAcceptor) comp).setSelection(vs);
                    return true;
                } catch (UnsupportedFlavorException e) {
                    e.printStackTrace();
                } catch (IOException e) {
View Full Code Here

            ReadablePreset.ReadableVoice[] readVoices = new ReadablePreset.ReadableVoice[selRows.length];

            for (int i = 0,j = selRows.length; i < j; i++)
                readVoices[i] = (ReadablePreset.ReadableVoice) getValueAt(selRows[i], 0);

            return new VoiceSelection(preset.getDeviceContext(), readVoices);
        }
View Full Code Here

            ReadablePreset.ReadableVoice.ReadableZone[] readZones = new ReadablePreset.ReadableVoice.ReadableZone[selRows.length];

            for (int i = 0,j = selRows.length; i < j; i++)
                readZones[i] = (ReadablePreset.ReadableVoice.ReadableZone) getValueAt(selRows[i], 0);

            return new ZoneSelection(preset.getDeviceContext(), readZones);
        }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.zcommands.RefreshPresetZMTC

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.