Package fr.soleil.salsa.entity.impl

Examples of fr.soleil.salsa.entity.impl.ErrorStrategyType


    public void notifyContextValidationAttributeChanged(String value) {
        errorStrategy.setContextValidationDevice(value);
    }

    public void notifyContextValidationStrategyChanged(String value) {
        ErrorStrategyType est = ErrorStrategyType.valueOf(value);
        errorStrategy.setContextValidationStrategy(est);
    }
View Full Code Here


     * fr.soleil.salsa.entity.IErrorStrategy#setContextValidationStrategy(fr
     * .soleil.salsa.entity.impl.ErrorStrategyType)
     */
    @Override
    public void setContextValidationStrategy(ErrorStrategyType contextValidationStrategy) {
        ErrorStrategyType oldValue = baseBean.getContextValidationStrategy();
        baseBean.setContextValidationStrategy(contextValidationStrategy);
        firePropertyChange("contextValidationStrategy", oldValue, contextValidationStrategy);
    }
View Full Code Here

        // System.out.println("newConfig=" + newConfig);
        return newConfig;
    }

    private ErrorStrategyType getErrorStrategyType(int value) {
        ErrorStrategyType type = ErrorStrategyType.IGNORE;
        switch (value) {
        case 1:
            type = ErrorStrategyType.PAUSE;
            break;
        case 2:
View Full Code Here

    }

    public void notifyStrategySelectedChanged(ErrorStrategyItemType esType, String value) {
        IErrorStrategyItem esItem = findErrorStrategyItem(esType);
        if (esItem != null) {
            ErrorStrategyType oldType = esItem.getStrategy();
            ErrorStrategyType newType = ErrorStrategyType.valueOf(ErrorStrategyType.class, value);
            if (oldType != newType) {
                esItem.setStrategy(newType);
                if (config != null) {
                    config.setModified(true);
                }
View Full Code Here

        refresh();
    }

    public void notifyContextValidationStrategyChanged(String value) {
        if (value != null && errorStrategy != null) {
            ErrorStrategyType oldValue = errorStrategy.getContextValidationStrategy();
            ErrorStrategyType est = ErrorStrategyType.valueOf(value);
            if (oldValue != est) {
                errorStrategy.setContextValidationStrategy(est);
                if (config != null) {
                    config.setModified(true);
                }
View Full Code Here

            if (contextValidation != null && !contextValidation.isEmpty()) {
                view.setContextValidationAttribute(contextValidation, saved);
            }

            if (!saved) {
                ErrorStrategyType errorStrategy = currentErrorStrategy.getContextValidationStrategy();
                if (errorStrategy != null) {
                    view.setContextValidationStrategy(errorStrategy.name());
                }
            }
            view.enableListener(true);
        }
    }
View Full Code Here

        }
        return newConfig;
    }

    private ErrorStrategyType getErrorStrategyType(int value) {
        ErrorStrategyType type = ErrorStrategyType.IGNORE;
        switch (value) {
            case 1:
                type = ErrorStrategyType.PAUSE;
                break;
            case 2:
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.ErrorStrategyType

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.