public class HeadlessApplication extends Object implements Application
Application.ApplicationType
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_NONE
Constructor and Description |
---|
HeadlessApplication(ApplicationListener listener) |
HeadlessApplication(ApplicationListener listener,
HeadlessApplicationConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(LifecycleListener listener) |
void |
debug(String tag,
String message) |
void |
debug(String tag,
String message,
Throwable exception) |
void |
error(String tag,
String message) |
void |
error(String tag,
String message,
Throwable exception) |
boolean |
executeRunnables() |
void |
exit() |
ApplicationListener |
getApplicationListener() |
Audio |
getAudio() |
Clipboard |
getClipboard() |
Files |
getFiles() |
Graphics |
getGraphics() |
Input |
getInput() |
long |
getJavaHeap() |
int |
getLogLevel() |
long |
getNativeHeap() |
Net |
getNet() |
Preferences |
getPreferences(String name) |
Application.ApplicationType |
getType() |
int |
getVersion() |
void |
log(String tag,
String message) |
void |
log(String tag,
String message,
Throwable exception) |
void |
postRunnable(Runnable runnable) |
void |
removeLifecycleListener(LifecycleListener listener) |
void |
setLogLevel(int logLevel) |
public HeadlessApplication(ApplicationListener listener)
public HeadlessApplication(ApplicationListener listener, HeadlessApplicationConfiguration config)
public boolean executeRunnables()
public ApplicationListener getApplicationListener()
getApplicationListener
in interface Application
public Graphics getGraphics()
getGraphics
in interface Application
public Audio getAudio()
getAudio
in interface Application
public Input getInput()
getInput
in interface Application
public Files getFiles()
getFiles
in interface Application
public Net getNet()
getNet
in interface Application
public Application.ApplicationType getType()
getType
in interface Application
public int getVersion()
getVersion
in interface Application
public long getJavaHeap()
getJavaHeap
in interface Application
public long getNativeHeap()
getNativeHeap
in interface Application
public Preferences getPreferences(String name)
getPreferences
in interface Application
public Clipboard getClipboard()
getClipboard
in interface Application
public void postRunnable(Runnable runnable)
postRunnable
in interface Application
public void debug(String tag, String message)
debug
in interface Application
public void debug(String tag, String message, Throwable exception)
debug
in interface Application
public void log(String tag, String message)
log
in interface Application
public void log(String tag, String message, Throwable exception)
log
in interface Application
public void error(String tag, String message)
error
in interface Application
public void error(String tag, String message, Throwable exception)
error
in interface Application
public void setLogLevel(int logLevel)
setLogLevel
in interface Application
public int getLogLevel()
getLogLevel
in interface Application
public void exit()
exit
in interface Application
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener
in interface Application
public void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener
in interface Application
Copyright © 2016. All rights reserved.