// fully-hosted type pages
else if ( currentPage == pageFullyHosted ) {
if ( pageFullyHostedMetadataPage1 == null ) {
pageFullyHostedMetadataPage1 = new MetadataPage(this,
new MetadataSection1(HostingType.FULLY_HOSTED) {
protected void formChanged() {
pageFullyHostedMetadataPage1.formChanged();
}
});
pageFullyHostedMetadataPage1.mdSection.setValuesFromMap(loadedMdValues, false);
}
contents.clear();
contents.add(pageFullyHostedMetadataPage1.getWidget());
}
else if ( currentPage == pageFullyHostedMetadataPage1 ) {
if ( pageFullyHostedMetadataPage2 == null ) {
pageFullyHostedMetadataPage2 = new MetadataPage(this,
new MetadataSection2() {
protected void formChanged() {
pageFullyHostedMetadataPage2.formChanged();
}
});
pageFullyHostedMetadataPage2.mdSection.setValuesFromMap(loadedMdValues, false);
}
contents.clear();
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);