/*
Redirect the Updater to get updates from a different web site.
Include RedirectUpdater in the "Before welcome" field.
Copyright (C) 1998-2008 DeNova
*/
import javax.swing.JLabel;
import java.awt.BorderLayout;
import com.denova.ui.Fonts;
import com.denova.ui.WizardPanel;
import com.denova.util.PropertyList;
import com.denova.JExpress.Updater.UpdatePropertyNames;
public class RedirectUpdater extends WizardPanel
implements UpdatePropertyNames {
private JLabel notice;
public RedirectUpdater (PropertyList properties) {
// initialize WizardPanel superclass
super (properties);
// let them know what's happening
setLayout ( new BorderLayout () );
notice = new JLabel ( "Redirecting updater...",
JLabel.CENTER);
notice.setFont(Fonts.Bold);
add(notice);
}
/**
* Enter the panel.
*
* Do not call this method; only the wizard should call it.
*/
public void enter()
{
final boolean ok = true;
// set the full URL to the directory with the updates *without* a trailing slash
getPropertyList (). setProperty ( UpdateUrl, "http://www.mydomain.com/Hello/updates" );
// set the full URL to the host system *without* a trailing slash
getPropertyList (). setProperty ( HostName, "http://www.mydomain.com" );
//String arg0 = getPropertyList (). getProperty ( ProgramArg + "0", "none" );
//UiLayoutUtilities. update(notice, arg0);
showNextPanel ();
}
public String getName () {
return "RedirectUpdater";
}
} // RedirectUpdater