Sets the page index.<p>

@param page the page index
@param fireChanged true if the registered listeners should be notified
338735
public void setPage(int page, boolean fireChanged) {

        m_page = page;
        m_label.setValue("( " + (1 + m_page) + " / " + (m_lastPage + 1) + " )");
        int start = (m_page * m_pageSize) + 1;
        int end = Math.min((start + m_pageSize) - 1, m_resultCount);
        String resultsMsg = CmsVaadinUtils.getMessageText(
            Messages.GUI_DATAVIEW_RESULTS_3,
            "" + start,
            "" + end,
            "" + m_resultCount);
        m_resultsLabel.setValue(start <= end ? resultsMsg : "");
        if (fireChanged) {
            firePageChanged(page);
        }
    }
470012
@Override
  public final synchronized int writePage(P page) {
    int pageid = setPageID(page);
    writePage(pageid, page);
    return pageid;
  }
437121
protected void setCurrentPage(WizardPage<DATA> newPage) {
		currentPage = newPage;
		updateState();
		wizardView.setCurrentPage(currentPage);
		currentPage.show();
	}
432652
private function setPage($page)
    {
        $this->page = (int)$page;
        $this->offset = ($page - 1) * $this->limit;
    }
947826
public boolean setPage(int p) {
		p--;
		if( p < 0 ) {
			return false;
		}
		if( p >= pages.size() ) {
			return false;
		}
		pageIndex = p;
		currentPage = null;
		return true;
	}
1147966
protected void onNewItems(@NonNull List<Model> newItems, int page) {
        OnNewItemsListener<Model> onNewItemsListener = this.mOnNewItemsListener;
        try {
            onNewItemsListener.onNewItems(newItems, page);
        } catch (NullPointerException npe) {
            // Lazy null checking! If this was our npe, then throw with an appropriate message.
            throw onNewItemsListener != null ? npe
                    : new NullPointerException("You must provide an `OnNewItemsListener`");
        }
    }
1327734
@SuppressWarnings("unchecked")
  private Object fireEvent(Request request, PageBook.Page page, Object instance)
      throws IOException {
    final String method = request.method();
    final String pathInfo = request.path();

    return page.doMethod(method.toLowerCase(), instance, pathInfo, request);
  }
869359
ViewPager.OnPageChangeListener setInternalPageChangeListener(ViewPager.OnPageChangeListener listener) {
        ViewPager.OnPageChangeListener oldListener = mInternalPageChangeListener;
        mInternalPageChangeListener = listener;
        return oldListener;
    }
1244432
void setPage(Page page) {
		synchronized(lock) {
			checkNotFrozen();
			if(this.page != null) throw new IllegalStateException("element already has a page: " + this);
			this.page = page;
		}
		assert checkPageAndParentElement();
	}
789386
public void notifyChanged() {
        if (listeners != null) {
            synchronized (notifyLock) {
                if (listeners != null) {
                    if (notifyThread == null) {
                        notifyThread = new NotifyThread(this);
                        notifyThread.setDaemon(true);
                        notifyThread.start();
                    }
                    notifyThread.queue(listeners.toArray(new EventListener[listeners.size()]));
                }
            }
        }
    }
1289755
public boolean setCurrentPage(final int page) {
        Log.d(TAG, "setPageId pageId = %d", page);
        return (page >= 0 && page < getCheckableCount()) && check(page);
    }
61524
void onChange(String value) {

        boolean changed = !m_codeValue.equals(value);
        m_codeValue = value;
        if (changed) {
            fireEvent(new ValueChangeEvent(this));
        }
    }
216204
public function setPage($page)
    {
        $this->page = min($page > 0 ? $page : $this->getFirstPage(), $this->getLastPage());
    }
417108
public synchronized ListenableFuture<?> add(Page page)
    {
        checkState(!isFull(), "PageBuffer is full!");
        pages.offer(page);
        if (isFull()) {
            if (settableFuture == null) {
                settableFuture = SettableFuture.create();
            }
            return settableFuture;
        }
        return NOT_FULL;
    }
978899
public void setPage(String key, PageSource ps) {
	ps.setLastAccessTime();

	pageSources.put(key.toLowerCase(), ps);
    }
1071136
void setTransition(PdfTransition transition, int page) {
        PdfDictionary pg = reader.getPageN(page);
        if (transition == null)
            pg.remove(PdfName.TRANS);
        else
            pg.put(PdfName.TRANS, transition.getTransitionDictionary());
        markUsed(pg);
    }
1010976
public void addPage(DialogPage page) {
		pages.add(page);
		if (autoConfigureChildPages) {
			String id = getId() + "." + page.getId();
			ValkyrieRepository.getInstance().getApplicationConfig().applicationObjectConfigurer().configure(page, id);
		}
	}