contents.add(pageFullyHostedMetadataPage2.getWidget());
}
else if ( currentPage == pageFullyHostedMetadataPage2 ) {
if ( pageFullyHostedMetadataPage3 == null ) {
pageFullyHostedMetadataPage3 = new MetadataPage(this,
new MetadataSection3() {
protected void formChanged() {
pageFullyHostedMetadataPage3.formChanged();
}
});
pageFullyHostedMetadataPage3.mdSection.setValuesFromMap(loadedMdValues, false);
}
contents.clear();
contents.add(pageFullyHostedMetadataPage3.getWidget());
}
else if ( currentPage == pageFullyHostedMetadataPage3 ) {
if ( pageFullyHostedConfirmation == null ) {
pageFullyHostedConfirmation = new RegisterNewPageFullyHostedConfirmation(this);
}
contents.clear();
contents.add(pageFullyHostedConfirmation.getWidget());
}
///////////////////////////////////////////////////////////////////////////////////
// re-hosted type pages
else if ( currentPage == pageReHosted ) {
if ( pageReHostedMetadataPage1 == null ) {
pageReHostedMetadataPage1 = new MetadataPage(this,
new MetadataSection1(HostingType.RE_HOSTED) {
protected void formChanged() {
pageReHostedMetadataPage1.formChanged();
}
});
pageReHostedMetadataPage1.mdSection.setValuesFromMap(loadedMdValues, false);
}
contents.clear();
contents.add(pageReHostedMetadataPage1.getWidget());
}
else if ( currentPage == pageReHostedMetadataPage1 ) {
if ( pageReHostedMetadataPage2 == null ) {
pageReHostedMetadataPage2 = new MetadataPage(this,
new MetadataSection2() {
protected void formChanged() {
pageReHostedMetadataPage2.formChanged();
}
});
pageReHostedMetadataPage2.mdSection.setValuesFromMap(loadedMdValues, false);
}
contents.clear();
contents.add(pageReHostedMetadataPage2.getWidget());
}
else if ( currentPage == pageReHostedMetadataPage2 ) {
if ( pageReHostedMetadataPage3 == null ) {
pageReHostedMetadataPage3 = new MetadataPage(this,
new MetadataSection3() {
protected void formChanged() {
pageReHostedMetadataPage3.formChanged();
}
});
pageReHostedMetadataPage3.mdSection.setValuesFromMap(loadedMdValues, false);