|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interface SystemAccess
Allow access to the underlying system for storage of persisitent data, file access and printing. This class abstracts between running as an Application, an Applet or via Java WebStart.
![]() |
![]() |
Nested Class Summary | |
---|---|
static class |
SystemAccess.FileType
Just a file extension and the resource for a description of the type it defines. |
Field Summary | |
---|---|
static SystemAccess.FileType |
IMAGE_FILE_TYPE
The file extensions for images. |
static SystemAccess.FileType |
MAZE_FILE_TYPE
The file type of mazes files. |
Method Summary | |
---|---|
byte[] |
getUserFileContent(SystemAccess.FileType filetype)
Get the contents of a user selected file. |
boolean |
print(java.awt.print.Printable printable)
Print the given printable. |
boolean |
saveUserFileContent(byte[] content,
SystemAccess.FileType filetype)
Save a byte array into a user selected file. |
void |
setMainFrame(javax.swing.JFrame frame)
Sets the main frame of the application. |
Methods inherited from interface de.caff.maze.DataStorage |
---|
getBoolean, getColor, getDouble, getInt, getLong, getString, hasKey, setBoolean, setColor, setDouble, setInt, setLong, setString, storePersistentData |
Field Detail |
---|
static final SystemAccess.FileType MAZE_FILE_TYPE
static final SystemAccess.FileType IMAGE_FILE_TYPE
Method Detail |
---|
boolean print(java.awt.print.Printable printable)
printable
- printable to be printed
true
: printing was successful,
false
: printing failed or was canceledbyte[] getUserFileContent(SystemAccess.FileType filetype) throws java.io.IOException
java.io.IOException
- on errors during file accessfiletype
- type of file to be used
null
if the user canceled the operationboolean saveUserFileContent(byte[] content, SystemAccess.FileType filetype) throws java.io.IOException
java.io.IOException
- on errors during file accesscontent
- the content of the filefiletype
- type of file to be used
true
if the user saved the file, false
otherwisevoid setMainFrame(javax.swing.JFrame frame)
frame
- application's main frame
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |