Examples of PositionChangeEvent


Examples of org.richfaces.event.PositionChangeEvent

            String starty = requestParameterMap.get(getFieldId(context, (AbstractDashboard) component, START_Y_PARAM));
            String startx = requestParameterMap.get(getFieldId(context, (AbstractDashboard) component, START_X_PARAM));
            String eventTypeParam = requestParameterMap.get(getFieldId(context, (AbstractDashboard) component, EVENT_TYPE_PARAM));

            if (POSITION_CHANGE_EVENT.equals(eventTypeParam)) {
                new PositionChangeEvent(component, Integer.parseInt(startx), Integer.parseInt(starty), Integer.parseInt(endx), Integer.parseInt(endy)).queue();
            }
        }
    }
View Full Code Here

Examples of whitewerx.com.trapos.model.event.PositionChangeEvent

        notifyChange();
    }

    private void notifyChange() {
        DomainEvents.raise(new PositionChangeEvent(this));
    }
View Full Code Here

Examples of whitewerx.com.trapos.model.event.PositionChangeEvent

    @Test
    public void shouldAddATradeToAFlatPositionAndSendPositionChangeEvent() {
        Position positionEURUSD = new PositionFactory().createFlatPositionFor(EURUSD);

        Position expectedPosition = create5point1MillionEURUSDPosition();
        final PositionChangeEvent positionChangeEvent = new PositionChangeEvent(expectedPosition);

        @SuppressWarnings("unchecked")
        final EventHandler<PositionChangeEvent> positionChangeHandler = (EventHandler<PositionChangeEvent>) context
                .mock(EventHandler.class);
View Full Code Here

Examples of whitewerx.com.trapos.model.event.PositionChangeEvent

    @Test
    public void shouldHaveATwoMillionPositionAverageRate() {
        Position positionEURUSD = new PositionFactory().createFlatPositionFor(EURUSD);

        Position expectedPosition = create2MillionEURUSDPosition();
        final PositionChangeEvent positionChangeEvent = new PositionChangeEvent(expectedPosition);

        @SuppressWarnings("unchecked")
        final EventHandler<PositionChangeEvent> positionChangeHandler = (EventHandler<PositionChangeEvent>) context
                .mock(EventHandler.class);
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.