Pre-filled add contact wizard patch contributed by Sebastien Mazy.

cusax-fix
Yana Stamcheva 17 years ago
parent 55f4e4a876
commit b291830f35

@ -217,4 +217,14 @@ public MainFrame getMainFrame()
{
return mainFrame;
}
/**
* Sets the unique contact ID string in the wizard.
*
* @param UIN the unique contact ID string
*/
void setUIN(String UIN)
{
this.page3.setUIN(UIN);
}
}

@ -30,7 +30,7 @@ public class AddContactWizardExportedWindow
/**
* The <code>AddContactWizard</code> adapted by this instance.
*/
private Window wizard;
private AddContactWizard wizard;
/**
* Initializes a new <code>AddContactWizardExportedWindow</code> which is to
@ -66,7 +66,7 @@ public Object getSource()
*
* @return the <code>AddContactWizard</code> adapted by this instance
*/
private Window getWizard()
private AddContactWizard getWizard()
{
if (wizard == null)
{
@ -121,5 +121,14 @@ public void setVisible(boolean isVisible)
/**
* Implementation of {@link ExportedWindow#setParams(Object[])}.
*/
public void setParams(Object[] windowParams) {}
public void setParams(Object[] windowParams)
{
if( windowParams != null
&& windowParams.length > 0
&& windowParams[0] instanceof String)
this.getWizard().setUIN((String) windowParams[0]);
else
this.getWizard().setUIN("");
}
}

Loading…
Cancel
Save