webfunds.client.util
Class UpgradesManager
java.lang.Object
|
+--java.lang.Thread
|
+--webfunds.client.plugins.Plugin
|
+--webfunds.client.util.UpgradesManager
- public class UpgradesManager
- extends Plugin
- implements java.awt.event.ActionListener
| Fields inherited from class webfunds.client.plugins.Plugin |
ACCOUNTMODE,
bug,
CONTRACTMODE,
cs,
fix,
GENERALMODE,
name,
pm,
spec,
store,
ui,
unsup |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Methods inherited from class webfunds.client.plugins.Plugin |
debug,
err,
getAccountAction,
getContractAction,
getDebug,
init,
init,
logmsg,
propertyChange,
setPluginManager,
setStore,
setUInterface |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
name
protected java.lang.String name
generalaction
protected java.lang.String generalaction
INSTALL_BUTTON
public static final java.lang.String INSTALL_BUTTON
GO_BUTTON
public static final java.lang.String GO_BUTTON
DELETE_BUTTON
public static final java.lang.String DELETE_BUTTON
FILE_BUTTON
public static final java.lang.String FILE_BUTTON
CLOSE_BUTTON
public static final java.lang.String CLOSE_BUTTON
OPEN_BUTTON
public static final java.lang.String OPEN_BUTTON
HASH_BUTTON
public static final java.lang.String HASH_BUTTON
downloadDir
protected java.io.File downloadDir
installDir
protected java.io.File installDir
UpgradesManager
public UpgradesManager()
getPluginName
public java.lang.String getPluginName()
- Description copied from class: Plugin
- The name of the plugin, for titles and such like.
- Overrides:
- getPluginName in class Plugin
getGeneralAction
public java.lang.String getGeneralAction()
- Description copied from class: Plugin
- Supply one of these, each returning the name of the displayed button.
Also supply applicable call to init, below.
General action is on the top button bar, and will result in
init() being called, below.
- Overrides:
- getGeneralAction in class Plugin
init
public void init()
throws ModeNotSupportedException
- Description copied from class: Plugin
- One of these is called depending on the location of the click
in the hierarchy. You should supply at least one of them,
according to which get*Action() calls are present, above.
init with no arguments is called if a general button is clicked.
init(wallet, ac) is called if an account popup button is clicked.
init(wallet, ac, contract) if a subaccount popup button is clicked.
- Overrides:
- init in class Plugin
init
public void init(java.lang.String dirName)
throws ModeNotSupportedException
run
public void run()
- Overrides:
- run in class java.lang.Thread
addFileMenuButton
protected void addFileMenuButton(java.lang.String s)
destroy
public void destroy()
- Overrides:
- destroy in class java.lang.Thread
setContractStore
public void setContractStore(ChangeContractStore contractstore)
- Overrides:
- setContractStore in class Plugin
initDownloadDir
protected void initDownloadDir(java.io.File dir)
throws ModeNotSupportedException
- Check that the Download Directory is ok.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
- actionPerformed in interface java.awt.event.ActionListener
downloadURLtoFile
protected void downloadURLtoFile(java.net.URL url)
- Download the url into a file.
This needs to be multithreaded!!!!
- Returns:
- an array of the contents found at url
downloadURLtoFile
protected void downloadURLtoFile(java.net.URL url,
java.io.File f)
- Download the url into a file.
This needs to be multithreaded!!!!
- Returns:
- an array of the contents found at url
main
public static void main(java.lang.String[] args)
throws java.lang.Exception