Examples of ReadablePreset


Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

    }

    public boolean editCellAt(int row, int column, EventObject e) {
        if (e instanceof MouseEvent && ((MouseEvent) e).getClickCount() >= 2) {
            if (getValueAt(row, column) instanceof ReadablePreset) {
                final ReadablePreset p = (ReadablePreset) getValueAt(row, column);
                new ZDBModifyThread("Preset Default Action") {
                    public void run() {
                        p.performDefaultAction();
                    }
                }.start();
            }
        }
        return false;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

        if (newSelection)
            this.clearSelection();
        String name;
        Integer firstSelectedPreset = null;
        for (int i = 0,j = pctm.getRowCount(); i < j; i++) {
            ReadablePreset preset = (ReadablePreset) pctm.getValueAt(i, 1);
            try {
                if (useDisplayName)
                    name = preset.getPresetDisplayName();
                else
                    name = preset.getPresetName();
            } catch (NoSuchPresetException e) {
                continue;
            } catch (PresetEmptyException e) {
                name = DeviceContext.EMPTY_PRESET;
            }
            m = p.matcher(name);

            boolean res = false;
            if (fullMatch)
                res = m.matches();
            else
                res = m.find();

            if (res) {
                if (firstSelectedPreset == null)
                    firstSelectedPreset = preset.getPresetNumber();
                this.addRowSelectionInterval(i, i);
                this.addColumnSelectionInterval(0, 0);
            }
        }
        return firstSelectedPreset;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

                getTarget().sendToMultiMode(IntPool.get(ch));
            } catch (IllegalMidiChannelException e) {
                e.printStackTrace();
            }
        } else {
            ReadablePreset p;
            for (int n = 0; n < num; n++) {
                int cch = ch + n;
                if (cch <= maxCh)
                    try {
                        presets[n].sendToMultiMode(IntPool.get(cch));
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ReadablePreset[] presets = getTargets();
        int num = presets.length;
        ReadablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                refreshPreset(p);
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ReadablePreset[] presets = getTargets();
        int num = presets.length;
        ReadablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p.getPresetState() == RemoteObjectStates.STATE_EMPTY) {
                    problemCount++;
                    emptyCount++;
                } else
                    p.getDeviceContext().getViewManager().openPreset(p);
            } else {
                HashMap done = new HashMap();
                for (int n = 0; n < num; n++) {
                    if (!done.containsKey(presets[n])) {
                        // if (presets[n].getPresetState() == RemoteObjectStates.STATE_EMPTY) {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ReadablePreset[] presets = getTargets();
        int num = presets.length;
        ReadablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                assertPreset(p);
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.ReadablePreset

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ReadablePreset[] presets = getTargets();
        int num = presets.length;
        ReadablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p.getPresetState() == RemoteObjectStates.STATE_EMPTY) {
                    problemCount++;
                    emptyCount++;
                } else
                    openPreset(p);
            } else {
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.