/*
Skip the rest of the updates. If this is an Auto-updater, then start the application that
was being updated. If this is an Update-on-demand, then simply report the update was successful.
Include SkipUpdate in the "After files compared" field.
Copyright (C) 1998-2011 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.PanelNames;
import com.denova.JExpress.Updater.UpdatePropertyNames;
public class SkipUpdate extends WizardPanel
implements UpdatePropertyNames, PanelNames {
public SkipUpdate (PropertyList properties) {
// initialize WizardPanel superclass
super ( properties);
// let them know what's happening
setLayout ( new BorderLayout () );
JLabel notice = new JLabel ( "Skipping update...",
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;
// make sure the rest of the updater, except the FinalPanel, is diabled
setEnabledNamedPanel ( DownloadFilesPanel, false );
setEnabledNamedPanel ( UpdateFilesPanel, false );
getPropertyList (). setBooleanProperty ( FullUpdateOk, OK );
showNextPanel ();
}
public String getName () {
return "SkipUpdate";
}
} // SkipUpdate