Examples of MaxCalculation


Examples of org.thechiselgroup.choosel.core.client.util.math.MaxCalculation

        ViewItemResolverFactory[] calculations = new ViewItemResolverFactory[] {
                new FixedValueResolverFactory(new ResourceCountResolver()),
                new CalculationResolverFactory(new SumCalculation()),
                new CalculationResolverFactory(new AverageCalculation()),
                new CalculationResolverFactory(new MinCalculation()),
                new CalculationResolverFactory(new MaxCalculation()),
                new FixedValueResolverFactory(new FixedValueResolver(
                        new Double(1), DataType.NUMBER)) };

        resolverFactorySelector = new ListBoxControl<ViewItemResolverFactory>(
                new ExtendedListBox(false),
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.util.math.MaxCalculation

                    if ("min".equals(calculationType)) {
                        setResolver(slot, new CalculationResolver(property,
                                Subset.ALL, new MinCalculation()));
                    } else if ("max".equals(calculationType)) {
                        setResolver(slot, new CalculationResolver(property,
                                Subset.ALL, new MaxCalculation()));
                    } else if ("sum".equals(calculationType)) {
                        setResolver(slot, new CalculationResolver(property,
                                Subset.ALL, new SumCalculation()));
                    } else if ("average".equals(calculationType)) {
                        setResolver(slot, new CalculationResolver(property,
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.util.math.MaxCalculation

    public void changingSlotMappingUpdatesVisualItemValue2() {
        underTest.setResolver(numberSlot, new CalculationResolver(
                NUMBER_PROPERTY_1, new SumCalculation()));
        getFirstVisualItem().getValue(numberSlot);
        underTest.setResolver(numberSlot, new CalculationResolver(
                NUMBER_PROPERTY_1, new MaxCalculation()));

        assertEquals(8d, getFirstVisualItem().getValue(numberSlot));
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.util.math.MaxCalculation

        return underTest.getFullVisualItemContainer().getVisualItems().getFirstElement();
    }

    @Test
    public void maxCalculationOverGroup() {
        testCalculationOverGroup(8d, new MaxCalculation());
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.util.math.MaxCalculation

    }

    @Test
    public void restoreMaxCalculationOverGroup() {
        testRestoreCalculationOverGroup(8d, new CalculationResolverFactory(
                "max", new MaxCalculation()));
    }
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.