Adds a new page to this wizard. The page is inserted at the end of the
page list.

@param wizardConfigurationKey
the parent configuration key of the page, used for
configuration, by default this wizard's id *
@param page
the new page
773548
protected void addPage(String wizardConfigurationKey, WizardPage page) {
        pages.add(page);
        page.setWizard(this);
        if (autoConfigureChildPages) {
            String key = ((wizardConfigurationKey != null) ? wizardConfigurationKey + "." : "") + page.getId();
            ValkyrieRepository.getInstance().getApplicationConfig().applicationObjectConfigurer().configure(page, key);
        }
    }
773041
private void showPage(final UniqueKey<? extends Model> pageModelKey, final Wave wave) {
        if (pageModelKey != null && !pageModelKey.equals(this.currentModelKey)) {

            LOGGER.info("Show Page Model: " + pageModelKey.toString());

            // Create the Wave Bean that will hold all data processed by chained commands
            final DisplayModelWaveBean waveBean = DisplayModelWaveBean.create()
                                                                      // Define the placeholder that will receive the content
                                                                      .childrenPlaceHolder(view().node().getChildren())
                                                                      // Allow to add element behind the stack to allow transition
                                                                      .appendChild(false)
                                                                      .showModelKey(pageModelKey)
                                                                      .hideModelKey(this.currentModelKey);

            this.currentModelKey = waveBean.showModelKey();

            if (wave != null) {
                // The method was called after having received a wave
                // It will show the next page by sending a regular command, processed asynchronously into JAT after a JIT cycle
                // This call is non-blocking
                sendWave(WBuilder.callCommand(ShowFadingModelCommand.class)
                                 .waveBean(waveBean)
                                 .relatedWave(wave)
                                 .addWaveListener(new RelatedWaveListener()));
            } else {
                // The showPage method has been called programmatically without any wave provided
                // This is the first call used to initialize the stack so we perform the show transition immediately
                final Wave showWave = WBuilder.callCommand(ShowFadingModelCommand.class)
                                              .waveBean(waveBean)
                                              .addDatas(JRebirthWaves.FORCE_SYNC);
                // Run synchronously into JAT immediately without a waiting a JIT cycle
                // This call will block current thread until page is shown
                getCommand(ShowFadingModelCommand.class, showWave.wUID()).run(showWave);

            }

        } else {
            LOGGER.debug("Page Model currently displayed: " + pageModelKey.toString());
        }
    }
382753
@Override
    protected void startNewPage()
    {
        super.startNewPage();
        pagebox = createBlock(body, curpage, false);
        pagebox.setStyle(createPageStyle());
        body.addSubBox(pagebox);
    }
186929
def insert_page(index, page = Page.new)
            init_page_tree

            # Page from another document must be exported.
            page = page.export if page.document and page.document != self

            self.Catalog.Pages.insert_page(index, page)

            yield(page) if block_given?

            self
        end
1258299
public boolean addPage(PdfIndirectReference page) {
        if (!status) {
            addFirst(page);
            status = true;
            return true;
        }
        return false;
    }
599913
public static @NonNull ClickEvent changePage(final @NonNull String page) {
    return new ClickEvent(Action.CHANGE_PAGE, page);
  }
739122
function setupPage( pageName ) {
         assert( pageName ).hasType( String ).isNotNull();

         publishDebugInfo( 'willLoad.page', { page: pageName } );

         return pageLoader.load( pageName )
            .then( page => {
               areaHelper = createAreaHelper( page, log );
               visibilityManager.setAreaHelper( areaHelper );

               const layoutPromise = layoutLoader.load( page.layout )
                  .then( layoutInfo => {
                     cleanUpLayout = renderLayout( pageElement, areaHelper, layoutInfo );
                  } );

               localeManager.subscribe();
               const layoutWidget = widget => layoutWidgetAdapterFor( areaHelper, widget );

               // instantiate controllers wrapped by widget adapters
               const widgetPromises = widgetsForPage( page )
                  .map( widget => 'layout' in widget ?
                     layoutWidget( widget ) :
                     widgetLoader.load( widget, {}, instanceContext ) );

               return Promise.all( [ ...widgetPromises, layoutPromise ] )
                  .then( results => results.slice( 0, -1 ) );
            } )
            .then( widgetAdapterWrappers => {
               publishDebugInfo( 'didLoad.page', { page: pageName } );

               activePage = pageName;
               activeWidgetAdapterWrappers = widgetAdapterWrappers;
            } )
            .then( localeManager.initialize )
            .then( () => {
               return eventBus.publishAndGatherReplies(
                  'beginLifecycleRequest.default', LIFECYCLE_EVENT, EVENT_OPTIONS
               );
            } )
            .then( visibilityManager.initialize )
            // Give the widgets (a little) time to settle on the event bus before $digesting and painting:
            .then( () => delay( WIDGET_ATTACH_DELAY_MS ) )
            .then( () => areaHelper.attachWidgets( activeWidgetAdapterWrappers ) );
      }
709980
protected static int binarySearchGuess(@NotNull final BasePage page, @NotNull final ByteIterable key) {
        int index = binarySearchGuessUnsafe(page, key);
        if (index < 0) index = 0;
        return index;
    }
969725
protected void configureNavi (FlexTable controls, int row, int col,
                                  int start, int limit, int total)
    {
        HorizontalPanel panel = new HorizontalPanel();
        panel.add(new Label("Page:")); // TODO: i18n

        // determine which pages we want to show
        int page = 1+start/_resultsPerPage;

        int pages;
        if (total < 0) {
            pages = page + 1;
        } else {
            pages = total/_resultsPerPage + (total%_resultsPerPage == 0 ? 0 : 1);
        }

        List<Integer> shown = new ArrayList<Integer>();
        shown.add(1);
        for (int ii = Math.max(2, Math.min(page-2, pages-5));
             ii <= Math.min(pages-1, Math.max(page+2, 6)); ii++) {
            shown.add(ii);
        }
        if (pages != 1) {
            shown.add(pages);
        }

        // now display those as "Page: _1_ ... _3_ _4_ 5 _6_ _7_ ... _10_"
        int ppage = 0;
        for (Integer cpage : shown) {
            if (cpage - ppage > 1) {
                panel.add(createPageLabel("...", null));
            }
            if (cpage == page) {
                panel.add(createPageLabel(""+page, "Current"));
            } else {
                panel.add(createPageLinkLabel(cpage));
            }
            ppage = cpage;
        }
        if (total < 0) {
            panel.add(createPageLabel("...", null));
        }
        controls.setWidget(row, col, panel);
        controls.getFlexCellFormatter().setHorizontalAlignment(row, col, HasAlignment.ALIGN_CENTER);
    }
755368
public LLIndexPage locatePageForKey(long key, long value, boolean allowCreate) {
		if (isLeaf) {
			return this;
		}
		if (nEntries == -1 && !allowCreate) {
			return null;
		}

		//The stored value[i] is the min-values of the according page[i+1} 
        int pos = binarySearch(0, nEntries, key, value);
        if (pos >= 0) {
            //pos of matching key
            pos++;
        } else {
            pos = -(pos+1);
        }
        //TODO use weak refs
        //read page before that value
        LLIndexPage page = (LLIndexPage) readOrCreatePage(pos, allowCreate);
        return page.locatePageForKey(key, value, allowCreate);
	}
1149421
public void addPages() {
		page = new CreateComponentStartPage(selection);
		addPage(page);
		integrationComponentPage = new CreateIntegrationComponentPage(selection);
		addPage(integrationComponentPage);
		
		serviceDescriptionComponentPage = new CreateServiceDescriptionComponentPage(selection);
		addPage(serviceDescriptionComponentPage);
		
		page3 = new StatusPage(selection);
		addPage(page3);
	}
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;
    }
1055460
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == 0)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
            keyArea.addKeyField(ID, DBConstants.ASCENDING);
        }
        if (iKeyArea == 1)
        {
            keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, SCREEN_IN_PROG_NAME_KEY);
            keyArea.addKeyField(SCREEN_IN_PROG_NAME, DBConstants.ASCENDING);
            keyArea.addKeyField(SCREEN_ITEM_NUMBER, DBConstants.ASCENDING);
        }
        if (keyArea == null)
            keyArea = super.setupKey(iKeyArea);     
        return keyArea;
    }
496221
public void configureWelcomeFiles(List<String> welcomePages) {
		this.welcomePages = welcomePages;
		((ResourceHandler) handler).setWelcomeFiles();
		((ResourceHandler) handler).addWelcomeFiles(welcomePages.toArray(new String[welcomePages.size()]));
	}
1012463
private void addMetaPageInternal(final MetaHelpPage page) {
    log.debug("Adding meta-page: {}", page);
    metaPages.put(page.getName(), page);
    events.publish(new MetaHelpPageAddedEvent(page));
  }
67144
public void addConfiguration(I_CmsXmlConfiguration configuration) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_CONFIG_1, configuration));
        }
        m_configurations.add(configuration);
        cacheDtdSystemId(configuration);
    }
697422
private CmsListItemWidget createListWidget(final CmsModelPageEntry modelPage) {

        CmsListItemWidget result = new CmsModelPageListItemWidget(modelPage.getListInfoBean());
        if (modelPage.isDefault()) {
            Widget label = result.getShortExtraInfoLabel();
            label.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().subtitleSuffix());
            result.setExtraInfo("(*)");
        }
        if (m_isModelGroup || CmsEditModelPageMenuEntry.checkVisible(modelPage.getStructureId())) {
            result.addIconClickHandler(new ClickHandler() {

                public void onClick(ClickEvent event) {

                    CmsEditModelPageMenuEntry.editModelPage(modelPage.getSitePath(), isModelGroup());
                }
            });
        }
        return result;
    }