LayoutModel/src/io/github/svanderburg/layout/model/page/LocalizedContentPage.java
public LocalizedContentPage addSubPage(String id, ContentPage subPage)
	{
		/* Adopt title and contents of first item */
		if(subPageExtender.getSubPages().size() == 0)
		{
			setTitle(subPage.getTitle());
			setContents(subPage.getContents());
		}
		
		/* Add the site item */
		subPageExtender.addSubPage(id, subPage);
		
		return this;
	}
/**
	 * Adds a sub page to which the menu section displaying the current page refers
	 * 
	 * @param id URL path component
	 * @param subPage Sub page reference to add
	 * @return A reference to itself
	 */
Adds a sub page to which the menu section displaying the current page refers

@param id URL path component
@param subPage Sub page reference to add
@return A reference to itself
Adds a sub page to which the menu section displaying the current page refers @param id URL path component @param subPage Sub page reference to add @return A reference to itself
public LocalizedContentPage addSubPage(String id, ContentPage subPage)
	{
		/* Adopt title and contents of first item */
		if(subPageExtender.getSubPages().size() == 0)
		{
			setTitle(subPage.getTitle());
			setContents(subPage.getContents());
		}
		/* Add the site item */
		subPageExtender.addSubPage(id, subPage);
		return this;
	}
public LocalizedContentPage addSubPage ( String id , ContentPage subPage ) { /* Adopt title and contents of first item */ if ( subPageExtender . getSubPages ( ) . size ( ) == 0 ) { setTitle ( subPage . getTitle ( ) ) ; setContents ( subPage . getContents ( ) ) ; } /* Add the site item */ subPageExtender . addSubPage ( id , subPage ) ; return this ; }
Adds a sub page to which the menu section displaying the current page refers
Adds a sub page to which the menu section displaying the current page refers