Create page

Example:

public void readyState() { 
	super.readyState(); 
	//the position of the "page1" recovery 
	int pos = this.abstractWizard.getPageIndex( "page1" ) + 1; 
	
	// new page named "newPage1" 
	creation CtlWizardPage wizardPage = new CtlWizardPage( this.abstractWizard, "newPage1" ); 
	this.abstractWizard.addPage( wizardPage, pos ); 
	pos++; wizardPage.setLabel( new CtlLocalizedText("LG_LABEL_PAGE_1") ); 
	wizardPage.setInformation( new CtlLocalizedText("LG_INFORMATION_1") ); 
	
	// add new entries 
	wizardPage.addEntry( "fldText", new CtlLocalizedText( "LG_TEXTE" ), new CtlTextBox( "valeur texte" ) ); 
	wizardPage.addEntry( "fldNumber", new CtlLocalizedText( "LG_NUMBER" ), new CtlNumber() ); 
	wizardPage.addEntry( "fldDate", new CtlLocalizedText( "LG_DATE" ), new CtlDate() ); 
	
	// new page named "newPage2" 
	creation wizardPage = new CtlWizardPage( this.abstractWizard, "newPage2" ); 
	this.abstractWizard.addPage( wizardPage, pos ); 
	pos++; wizardPage.setLabel( new CtlLocalizedText("LG_LABEL_PAGE_2") ); 
	wizardPage.setInformation( new CtlLocalizedText("LG_INFORMATION_2") ); 
	
	// add a list 
	CtlComboBox selectList = new CtlComboBox(); 
	selectList.addOption( new Option( "key1", getStaticString( "LG_VALUE1" ) ) ); 
	selectList.addOption( new Option( "key2", getStaticString( "LG_VALUE2" ) ) ); 
	selectList.setSelectedKey( "key1" ); 
	wizardPage.addEntry( "fldList", new CtlLocalizedText( "LG_LIST" ), selectList ); 
	
	// add a table
	CtlListView listView = new CtlListView(); 
	listView.createColumn( "col1", new CtlLocalizedText( "LG_COL1" ) ); 
	listView.createColumn( "col2", new CtlLocalizedText( "LG_COL2" ) ); 
	CtlListView.Item item = listView.createItem( new CtlText( "1" ) ); item.setParam( "key1" ); 
	listView.createSubitem( new CtlText( "A" ), item ); item = listView.createItem( new CtlText( "2" ) ); item.setParam( "key2" ); 
	listView.createSubitem( new CtlText( "B" ), item ); 
	wizardPage.addEntry( "fldTable", new CtlLocalizedText( "LG_TABLE" ), listView ); 
	
	// new page named "newPage3" 
	creation wizardPage = new CtlWizardPage( this.abstractWizard, "newPage3" ); 
	this.abstractWizard.addPage( wizardPage, pos ); 
	pos++; wizardPage.setLabel( new CtlLocalizedText("LG_LABEL_PAGE_3") ); 
	wizardPage.setInformation( new CtlLocalizedText("LG_INFORMATION_3") ); 
	
	Container container = new Container(new FreeLayout()); 
	CtlText textBidon = new CtlText(getStaticString( "LG_BIDON" )); 
	container.add( textBidon ); container.add( listView ); 
	container.add( textBidon ); 
	container.add( listView ); 
	wizardPage.setContent( container ); 
}