org.openide.awt 7.55.1

org.openide.awt
Interface CheckForUpdatesProvider


public interface CheckForUpdatesProvider

Provides a UI for Check for Updates feature, for example in About dialog. An instance of the provider should be installed in the default lookup using ServiceProvider.

Since:
7.45

Method Summary
 String getContentDescription()
          A description of content of enable Update Centers, assuming returns something like 7.1 patch1.
 boolean notifyAvailableUpdates(boolean reload)
          Runs a check for updates.
 boolean openCheckForUpdatesWizard(boolean reload)
          Opens a wizard for installation of updates if found some available.
 

Method Detail

openCheckForUpdatesWizard

boolean openCheckForUpdatesWizard(boolean reload)
Opens a wizard for installation of updates if found some available. Note: Call it from AWT queue only.

Parameters:
reload - if true then reload the content from all enabled Update Centers
Returns:
true if all updates were successfully installed, false otherwise.

notifyAvailableUpdates

boolean notifyAvailableUpdates(boolean reload)
Runs a check for updates. If some updates found, shows a notification in the status line. Note: It could be a time-consuming task, it should not be called from an event queue.

Parameters:
reload - if true then reload the content from all enabled Update Centers
Returns:
true if updates are available and users will be notified in the status line, false if no updates found.

getContentDescription

String getContentDescription()
A description of content of enable Update Centers, assuming returns something like 7.1 patch1. The description might contains HTML tags e.g. HTML Links.

Returns:
free-form description of content or null

org.openide.awt 7.55.1

Built on June 6 2013.  |  Portions Copyright 1997-2013 Oracle. All rights reserved.