public final class UpdateUnitProvider
extends java.lang.Object
UpdateUnitProvider providers UpdateUnit. The units
are build of the of SPI UpdateProvider.UpdateProvider| Modifier and Type | Class | Description |
|---|---|---|
static class |
UpdateUnitProvider.CATEGORY |
| Modifier and Type | Method | Description |
|---|---|---|
UpdateUnitProvider.CATEGORY |
getCategory() |
Deprecated.
Use
getSourceIcon() and getSourceDescription(). |
java.lang.String |
getContentDescription() |
A description of content staging by this provider.
|
java.lang.String |
getDescription() |
Description of provider.
|
java.lang.String |
getDisplayName() |
Display name of provider.
|
java.lang.String |
getName() |
Name of provider, this name is used by Autoupdate infrastructure for manimulating
of providers.
|
java.net.URL |
getProviderURL() |
It's special support for
UpdateProvider based on Autoupdate Catalog. |
java.lang.String |
getSourceDescription() |
The description of this provider.
|
java.awt.Image |
getSourceIcon() |
The icon associated with this provider.
|
java.util.List<UpdateUnit> |
getUpdateUnits() |
Returns
java.util.List of UpdateUnit build of the content of the
provider. |
java.util.List<UpdateUnit> |
getUpdateUnits(UpdateManager.TYPE... types) |
Returns
java.util.List of UpdateUnit build of the content of the
provider. |
boolean |
isEnabled() |
Returns
true if the provider is automatically checked and its UpdateUnit are
returned from UpdateManager |
boolean |
refresh(org.netbeans.api.progress.ProgressHandle handle,
boolean force) |
Make refresh of content of the provider.
|
void |
setDisplayName(java.lang.String name) |
Sets the display name of the provider.
|
void |
setEnable(boolean state) |
Sets the enable flag.
|
void |
setProviderURL(java.net.URL url) |
Modified URL of URL-based provider.
|
java.lang.String |
toString() |
public java.lang.String getName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String name)
name - public java.lang.String getDescription()
@Deprecated public UpdateUnitProvider.CATEGORY getCategory()
getSourceIcon() and getSourceDescription().public java.awt.Image getSourceIcon()
UpdateElement.getSourceIcon()public java.lang.String getSourceDescription()
getSourceIcon().
In case no special description is found, a general one is returned.UpdateElement.getSourceDescription()public java.lang.String getContentDescription()
nullpublic java.net.URL getProviderURL()
UpdateProvider based on Autoupdate Catalog.
It's most kind of Update Providers and have a special support in UI.public void setProviderURL(java.net.URL url)
url - new URLpublic java.util.List<UpdateUnit> getUpdateUnits()
java.util.List of UpdateUnit build of the content of the
provider.public java.util.List<UpdateUnit> getUpdateUnits(UpdateManager.TYPE... types)
java.util.List of UpdateUnit build of the content of the
provider.types - returns UpdateUnits contain only given types, e.g. modules for MODULE type.
If types is null or null then returns default typespublic boolean refresh(org.netbeans.api.progress.ProgressHandle handle,
boolean force)
throws java.io.IOException
force parameter forces reading content from
remote server.handle - started ProgressHandle or nullforce - if true then forces to reread the content from serverjava.io.IOException - when any network problem apprearedpublic boolean isEnabled()
true if the provider is automatically checked and its UpdateUnit are
returned from UpdateManagerpublic void setEnable(boolean state)
state - isEnabled()public java.lang.String toString()
toString in class java.lang.ObjectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.