Examples of PagerUpdatedEvent


Examples of org.eurekastreams.web.client.events.PagerUpdatedEvent

        currentStartIndex = start;
        currentEndIndex = start + bottomPager.getPageSize() - 1;
        bottomPager.setStartIndex(currentStartIndex);
        bottomPager.setEndIndex(currentEndIndex);
        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(bottomPager));
        reload();

        // update the URL when allowed (if from user action on a link, but not if from a history/URL change (otherwise
        // we'd be re-updating the URL which really messes up the back button).
        if (mayUpdateUrl)
View Full Code Here

Examples of org.eurekastreams.web.client.events.PagerUpdatedEvent

                {
                    if (endIndex + 1 < total)
                    {
                        startIndex += pageSize;
                        endIndex += pageSize;
                        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(thisBuffered));

                        HashMap<String, String> params = new HashMap<String, String>();
                        params.put(URL_PARAM_START_INDEX, startIndex.toString());
                        params.put(URL_PARAM_END_INDEX, endIndex.toString());

                        Session.getInstance().getEventBus().notifyObservers(
                                new UpdateHistoryEvent(new CreateUrlRequest(params, false)));
                    }
                }
            });

            this.add(prev);
            prev.addStyleName(StaticResourceBundle.INSTANCE.coreCss().pagerBackward());
            prev.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    if (startIndex - pageSize >= 0)
                    {
                        startIndex -= pageSize;
                        endIndex -= pageSize;
                        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(thisBuffered));

                        HashMap<String, String> params = new HashMap<String, String>();
                        params.put(URL_PARAM_START_INDEX, startIndex.toString());
                        params.put(URL_PARAM_END_INDEX, endIndex.toString());
View Full Code Here

Examples of org.eurekastreams.web.client.events.PagerUpdatedEvent

    public void reset()
    {
        startIndex = 0;
        endIndex = 9;
        //total = DEFAULT_TOTAL;
        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(this));
    }
View Full Code Here

Examples of org.eurekastreams.web.client.events.PagerUpdatedEvent

     */
    public void setPageSize(final Integer inPageSize)
    {
        pageSize = inPageSize;
        endIndex = pageSize - 1;
        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(this));
    }
View Full Code Here

Examples of org.eurekastreams.web.client.events.PagerUpdatedEvent

     *            the total.
     */
    public void setTotal(final Integer inTotal)
    {
        total = inTotal;
        Session.getInstance().getEventBus().notifyObservers(new PagerUpdatedEvent(this));

    }
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.