Package com.pcmsolutions.device.EMU.E4.parameter

Examples of com.pcmsolutions.device.EMU.E4.parameter.EditableParameterModel$EditChainValueProvider


        this.ids = new Integer[ids.length];
        this.vals = new Integer[ids.length];
        //this.valStrings = new String[ids.length];
        this.category = category;
        MasterContext mc = dev.getMasterContext();
        DeviceParameterContext dpc = dev.getDeviceParameterContext();
        this.ids = (Integer[]) ids.clone();
        vals = mc.getMasterParams(ids);

        /*for (int i = 0, n = ids.length; i < n; i++) {
            try {
View Full Code Here


    public boolean isCellEditable(int rowIndex, int columnIndex) {
        if (columnIndex == 1 && rowIndex >= 0 && rowIndex < tableRowObjects.size()) {
            Object o = getValueAt(rowIndex, columnIndex);
            if (o instanceof EditableParameterModel) {
                EditableParameterModel epm = (EditableParameterModel) o;
                if (epm.getParameterDescriptor() instanceof FilterParameterDescriptor && !((FilterParameterDescriptor) epm.getParameterDescriptor()).isCurrentlyActive())
                    return false;
            }
            return true;
        }
        return false;
View Full Code Here

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

                throw new CommandFailedException("not a valid percentage");
            }

        EditableParameterModel[] params = getTargets();
        int num = params.length;
        EditableParameterModel p;

        if (num == 0) {
            // try use primary target
            p = getTarget();
            ParameterModelUtilities.dispatchEditChainGroups(ParameterModelUtilities.extractEditableParameterModelChainGroups(new Object[]{p}), new EditableParameterModel.EditChainValueProvider() {
View Full Code Here

        if (mode == 2)
            pivotStr = arguments[0].toString();

        EditableParameterModel[] params = getTargets();
        int num = params.length;
        EditableParameterModel p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p == null)
View Full Code Here

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

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

    }

    public static boolean tryToggleCellAt(JTable table, int row, int column) {
        Object o = table.getValueAt(row, column);
        if (o instanceof EditableParameterModel) {
            EditableParameterModel pm = ((EditableParameterModel) o);
            GeneralParameterDescriptor pd;
            pd = pm.getParameterDescriptor();
            if (pd.getMinValue().intValue() == pd.getMaxValue().intValue() - 1)
                try {
                    if (pm.getValue().equals(pd.getMinValue()))
                        pm.setValue(pd.getMaxValue());
                    else
                        pm.setValue(pd.getMinValue());
                    return true;
                } catch (ParameterUnavailableException e) {
                } catch (ParameterValueOutOfRangeException e) {
                }
        }
View Full Code Here

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        EditableParameterModel[] params = getTargets();
        int num = params.length;
        EditableParameterModel p;
        if (num == 0) {
            // try use primary target
            p = getTarget();
            ParameterModelUtilities.dispatchEditChainGroups(ParameterModelUtilities.extractEditableParameterModelChainGroups(new Object[]{p}), new EditableParameterModel.EditChainValueProvider() {
                public Integer getValue(EditableParameterModel model, EditableParameterModel leadModel) throws ParameterUnavailableException {
View Full Code Here

            }
        }

        EditableParameterModel[] params = getTargets();
        int num = params.length;
        EditableParameterModel p;

        if (num == 0) {
            // try use primary target
            p = getTarget();
            ParameterModelUtilities.dispatchEditChainGroups(ParameterModelUtilities.extractEditableParameterModelChainGroups(new Object[]{p}), new EditableParameterModel.EditChainValueProvider() {
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.parameter.EditableParameterModel$EditChainValueProvider

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.