|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNOS.system.NOSSystem
public class NOSSystem
| Constructor Summary | |
|---|---|
NOSSystem(NOSApplet applet,
java.lang.String user)
Creates a new NOSSystem object. |
|
| Method Summary | |
|---|---|
void |
addStyleListener(NOSStyleListener list)
Add a NOSStyleListener to the system. |
void |
appendLogMessage(java.lang.String message)
Append a message to the system log. |
NOSProcess |
createProcess(java.lang.String jar,
java.lang.String app,
java.lang.String[] args)
Create a new NOSProcess which will run a new application. |
void |
destroyProcess(java.lang.Integer id)
Destory the NOSProcess with the given id. |
void |
displayError(java.lang.Exception e)
Display a nice error message. |
void |
downloadFile(NOSFile source,
java.io.File targetDir)
Download a file or folder to the local computer. |
void |
editFileWithDefaultProgram(NOSFile file)
Opens a file for editing using the default program as specified in "//settings/defaulteditprogs.rc" |
java.applet.AppletContext |
getAppletContext()
Returns the AppletContext object for the NOS applet. |
NOSClassLoader |
getClassLoader()
Returns the system classloader. |
static NOSDesktop |
getDesktop()
Returns the one and only NOSDesktop object, there can be only one! |
java.lang.String |
getProperty(java.lang.String name)
Get a system property string. |
Style |
getStyle()
Returns the currently active Style. |
static NOSSystem |
getSystem()
Returns the one and only NOSSystem object, there can be only one! |
void |
logout()
Logout of the system. |
void |
openFileWithDefaultProgram(NOSFile file)
Opens a file for viewing using the default program as specified in "//settings/defaultopenprogs.rc" |
void |
removeStyleListener(NOSStyleListener list)
Remove a NOSStyleListener from the system. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a system property string |
void |
setStyle(Style style)
Changes the currently active style to that specified. |
void |
showControlPanel()
Show the system control panel window. |
void |
start()
Called when the system is created. |
void |
stop()
Called when the browser wants to destroy the system |
void |
uploadFile(java.io.File source,
NOSFile targetDir)
Upload files and folders to NOS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOSSystem(NOSApplet applet,
java.lang.String user)
applet - The NOSApplet objectuser - The name of the user
java.lang.RuntimeException - On failure| Method Detail |
|---|
public void editFileWithDefaultProgram(NOSFile file)
file - The file to be opened for editingpublic void openFileWithDefaultProgram(NOSFile file)
file - The file to be opened for viewingpublic NOSClassLoader getClassLoader()
public static NOSSystem getSystem()
public static NOSDesktop getDesktop()
public Style getStyle()
public void setStyle(Style style)
style - The new style to be applied.public void addStyleListener(NOSStyleListener list)
list - The style listener to be added.public void removeStyleListener(NOSStyleListener list)
list - The style listener to be removed.public java.lang.String getProperty(java.lang.String name)
name - The name of the property
public void setProperty(java.lang.String name,
java.lang.String value)
name - The name of the propertyvalue - The value of the propertypublic java.applet.AppletContext getAppletContext()
public void logout()
public void downloadFile(NOSFile source,
java.io.File targetDir)
throws java.lang.Exception
source - The source of the filetargetDir - The destination folder
java.lang.Exception - On failure
public void uploadFile(java.io.File source,
NOSFile targetDir)
throws java.lang.Exception
source - The source file/folder.targetDir - The target folder.
java.lang.Exception - On faliurepublic void start()
public void stop()
public NOSProcess createProcess(java.lang.String jar,
java.lang.String app,
java.lang.String[] args)
throws java.lang.Exception
jar - The jar which the application is stored in.app - The main-class name for the application.args - The program arguments.
java.lang.Exception - On failure.public void destroyProcess(java.lang.Integer id)
id - The process id of the NOSProcess you want to destroy.public void displayError(java.lang.Exception e)
e - The exception object to be displayed.public void appendLogMessage(java.lang.String message)
message - The message to be appeneded.public void showControlPanel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||