Class UpdateSplashScreen
java.lang.Object
be.yildizgames.common.application.helper.splashscreen.UpdateSplashScreen
- All Implemented Interfaces:
SplashScreen,UpdateDownloadListener
- Direct Known Subclasses:
EmptySplashScreen
public abstract class UpdateSplashScreen
extends Object
implements SplashScreen, UpdateDownloadListener
Base splash screen implementation that supports updating progress.
- Author:
- Grégory Van den Borre
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCalled when the entire download completes.final voiddownloadUpdated(int percent) Called when the overall download percentage is updated.final voidfileUpdated(Path file, int percent) Called when the file download percentage is updated.final voidstartDownloadFile(Path file) Called when a file download is started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface be.yildizgames.common.application.helper.splashscreen.SplashScreen
close, display, setCurrentLoading, setName, setProgressMethods inherited from interface be.yildizgames.common.application.helper.updater.UpdateDownloadListener
downloadCompletedSuccessfully, fileCompletedSuccessfully, fileUpToDate, startDownloads
-
Constructor Details
-
UpdateSplashScreen
protected UpdateSplashScreen()Creates a new update splash screen.
-
-
Method Details
-
fileUpdated
Description copied from interface:UpdateDownloadListenerCalled when the file download percentage is updated.- Specified by:
fileUpdatedin interfaceUpdateDownloadListener- Parameters:
file- the file currently downloaded.percent- the new percentage
-
downloadUpdated
public final void downloadUpdated(int percent) Description copied from interface:UpdateDownloadListenerCalled when the overall download percentage is updated.- Specified by:
downloadUpdatedin interfaceUpdateDownloadListener- Parameters:
percent- the new percentage
-
completed
public final void completed()Description copied from interface:UpdateDownloadListenerCalled when the entire download completes.- Specified by:
completedin interfaceUpdateDownloadListener
-
startDownloadFile
Description copied from interface:UpdateDownloadListenerCalled when a file download is started.- Specified by:
startDownloadFilein interfaceUpdateDownloadListener- Parameters:
file- the file path
-