|
|
|
|
@ -36,6 +36,11 @@ public class AccountRegSummaryPage
|
|
|
|
|
|
|
|
|
|
private final AccountRegWizardContainerImpl wizardContainer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In case of modification the modified protocol provider is supplied.
|
|
|
|
|
*/
|
|
|
|
|
private ProtocolProviderService protocolProviderService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates an <tt>AccountRegSummaryPage</tt>.
|
|
|
|
|
*
|
|
|
|
|
@ -144,6 +149,14 @@ public void pageShowing()
|
|
|
|
|
this.valuesPanel.removeAll();
|
|
|
|
|
|
|
|
|
|
this.init(wizard.getSummary());
|
|
|
|
|
|
|
|
|
|
if(protocolProviderService != null
|
|
|
|
|
&& protocolProviderService.getAccountID().isReadOnly())
|
|
|
|
|
{
|
|
|
|
|
// disable commit button as the account is readonly
|
|
|
|
|
// we will just show its values
|
|
|
|
|
wizardContainer.setNextFinishButtonEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -156,6 +169,12 @@ public void commitPage()
|
|
|
|
|
AccountRegistrationWizard wizard =
|
|
|
|
|
this.wizardContainer.getCurrentWizard();
|
|
|
|
|
|
|
|
|
|
if(this.protocolProviderService != null)
|
|
|
|
|
{
|
|
|
|
|
// we do not need it anymore
|
|
|
|
|
protocolProviderService = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ProtocolProviderService protocolProvider = wizard.signin();
|
|
|
|
|
@ -217,4 +236,28 @@ public void pageHiding()
|
|
|
|
|
public void pageShown()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the modification property to indicate if this wizard is opened for
|
|
|
|
|
* a modification.
|
|
|
|
|
*
|
|
|
|
|
* @param protocolProvider indicates that this wizard is opened for
|
|
|
|
|
* modification.
|
|
|
|
|
*/
|
|
|
|
|
public void setModification(ProtocolProviderService protocolProvider)
|
|
|
|
|
{
|
|
|
|
|
this.protocolProviderService = protocolProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void dispose()
|
|
|
|
|
{
|
|
|
|
|
super.dispose();
|
|
|
|
|
|
|
|
|
|
if(this.protocolProviderService != null)
|
|
|
|
|
{
|
|
|
|
|
// we do not need it anymore
|
|
|
|
|
protocolProviderService = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|