Package com.biglybt.ui.swt.update
Class UpdateWindow
java.lang.Object
com.biglybt.ui.swt.update.UpdateWindow
- All Implemented Interfaces:
ResourceDownloaderListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BrowserWrapper
(package private) org.eclipse.swt.widgets.Button
(package private) org.eclipse.swt.widgets.Button
private final UpdateCheckInstance
private int
private static final int
private static final int
private static final int
private static final int
private final Core
(package private) org.eclipse.swt.widgets.Display
private List
private Map
(package private) boolean
private Iterator
(package private) org.eclipse.swt.widgets.Listener
(package private) LinkArea
(package private) org.eclipse.swt.widgets.Listener
(package private) org.eclipse.swt.widgets.ProgressBar
(package private) boolean
(package private) org.eclipse.swt.widgets.Label
(package private) org.eclipse.swt.widgets.Table
private long
private final UpdateMonitor
(package private) org.eclipse.swt.widgets.Shell
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateWindow
(UpdateMonitor _update_monitor, Core _core, UpdateCheckInstance _check_instance) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
private void
appendDetails
(String text) void
private void
private void
boolean
completed
(ResourceDownloader downloader, InputStream data) void
dispose()
void
failed
(ResourceDownloader downloader, ResourceDownloaderException e) private void
finishUpdate
(boolean restartNow, boolean just_close) org.eclipse.swt.widgets.Shell
getShell()
protected boolean
private void
void
reportActivity
(ResourceDownloader downloader, String activity) void
reportAmountComplete
(ResourceDownloader downloader, long amount) void
reportPercentComplete
(ResourceDownloader downloader, int percentage) protected void
private void
setProgressSelection
(int percent) private void
setStatusText
(String text) void
show()
private void
private void
update()
protected void
-
Field Details
-
update_monitor
-
core
-
check_instance
-
check_type
private int check_type -
display
org.eclipse.swt.widgets.Display display -
updateWindow
org.eclipse.swt.widgets.Shell updateWindow -
table
org.eclipse.swt.widgets.Table table -
link_area
LinkArea link_area -
progress
org.eclipse.swt.widgets.ProgressBar progress -
status
org.eclipse.swt.widgets.Label status -
btnOk
org.eclipse.swt.widgets.Button btnOk -
lOk
org.eclipse.swt.widgets.Listener lOk -
btnCancel
org.eclipse.swt.widgets.Button btnCancel -
lCancel
org.eclipse.swt.widgets.Listener lCancel -
hasMandatoryUpdates
boolean hasMandatoryUpdates -
restartRequired
boolean restartRequired -
totalDownloadSize
private long totalDownloadSize -
downloaders
-
iterDownloaders
-
browser
-
COL_NAME
private static final int COL_NAME- See Also:
-
COL_OLD_VERSION
private static final int COL_OLD_VERSION- See Also:
-
COL_NEW_VERSION
private static final int COL_NEW_VERSION- See Also:
-
COL_SIZE
private static final int COL_SIZE- See Also:
-
downloadersToData
-
-
Constructor Details
-
UpdateWindow
-
-
Method Details
-
buildWindow
public void buildWindow() -
rowSelected
protected void rowSelected() -
getShell
public org.eclipse.swt.widgets.Shell getShell() -
dispose
public void dispose() -
addUpdate
-
updateAdditionComplete
protected void updateAdditionComplete() -
show
public void show() -
checkMandatory
private void checkMandatory() -
checkRestartNeeded
private void checkRestartNeeded() -
update
private void update() -
nextUpdate
private void nextUpdate() -
switchToRestart
private void switchToRestart() -
_switchToRestart
private void _switchToRestart() -
reportPercentComplete
- Specified by:
reportPercentComplete
in interfaceResourceDownloaderListener
-
reportAmountComplete
- Specified by:
reportAmountComplete
in interfaceResourceDownloaderListener
-
setProgressSelection
private void setProgressSelection(int percent) -
completed
- Specified by:
completed
in interfaceResourceDownloaderListener
- Parameters:
downloader
-data
-- Returns:
- return true if the completed download is OK. If false is returned then if there are alternative download sources they will be tried. If there are no other sources then the download will be "failed"
-
failed
- Specified by:
failed
in interfaceResourceDownloaderListener
-
reportActivity
- Specified by:
reportActivity
in interfaceResourceDownloaderListener
-
setStatusText
-
appendDetails
-
finishUpdate
private void finishUpdate(boolean restartNow, boolean just_close) -
isDisposed
protected boolean isDisposed()
-