public final class Launcher
extends java.applet.Applet
implements java.awt.event.WindowListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseWheelListener, java.awt.event.MouseMotionListener, java.awt.event.ComponentListener
Modifier and Type | Class and Description |
---|---|
static class |
Launcher.CharBits
Represents the internal font structure, read from a pdb file.
|
static class |
Launcher.IS2S
Converts a java.io.InputStream into a totalcross.io.Stream
|
static class |
Launcher.S2IS |
static class |
Launcher.S2OS |
class |
Launcher.UserFont |
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
java.lang.String |
commandLine |
Hashtable |
htAttachedFiles |
Hashtable |
htOpenedAt |
static Launcher |
instance |
static boolean |
isApplication |
IntHashtable |
keysPressed |
MainWindow |
mainWindow |
protected java.awt.Image |
screenImg |
protected java.awt.image.MemoryImageSource |
screenMis |
boolean |
showKeyCodes |
static boolean |
terminateIfMainClass |
int |
threadCount |
static int |
userFontSize |
Constructor and Description |
---|
Launcher() |
Modifier and Type | Method and Description |
---|---|
void |
alert(java.lang.String msg) |
static void |
checkLitebaseAllowed() |
void |
componentHidden(java.awt.event.ComponentEvent arg0) |
void |
componentMoved(java.awt.event.ComponentEvent arg0) |
void |
componentResized(java.awt.event.ComponentEvent ev) |
void |
componentShown(java.awt.event.ComponentEvent arg0) |
void |
destroy() |
boolean |
eventIsAvailable() |
void |
exit(int exitCode) |
void |
fillSettings()
called by totalcross.Launcher.init()
|
int |
getCharWidth(Font f,
char ch) |
java.lang.String |
getDataPath() |
Launcher.UserFont |
getFont(Font f,
char c) |
void |
init() |
boolean |
isFocusTraversable() |
void |
keyPressed(java.awt.event.KeyEvent event) |
void |
keyReleased(java.awt.event.KeyEvent event) |
void |
keyTyped(java.awt.event.KeyEvent event) |
static void |
main(java.lang.String[] args) |
void |
minimize() |
void |
mouseClicked(java.awt.event.MouseEvent event) |
void |
mouseDragged(java.awt.event.MouseEvent event) |
void |
mouseEntered(java.awt.event.MouseEvent event) |
void |
mouseExited(java.awt.event.MouseEvent event) |
void |
mouseMoved(java.awt.event.MouseEvent event) |
void |
mousePressed(java.awt.event.MouseEvent event) |
void |
mouseReleased(java.awt.event.MouseEvent event) |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e) |
java.io.InputStream |
openInputStream(java.lang.String path)
used in some classes so they can correctly open files.
|
java.io.OutputStream |
openOutputStream(java.lang.String path)
used in some classes so they can correctly open files.
|
void |
paint(java.awt.Graphics g) |
protected void |
parseArguments(java.lang.String... args) |
protected void |
parseArguments(java.lang.String clazz,
java.lang.String... args) |
void |
print(java.awt.Graphics g) |
static void |
print(java.lang.String s)
Calls System.out.println.
|
void |
pumpEvents() |
byte[] |
readBytes(java.lang.String path)
read the available bytes from the stream getted with openInputStream.
|
void |
registerMainWindow(MainWindow main) |
void |
restore() |
void |
setNewMainWindow(MainWindow newInstance,
java.lang.String args) |
void |
setSIP(int option,
Control edit,
boolean secret) |
void |
setTimerInterval(int milliseconds) |
void |
settingsRefresh(boolean callStoreSettings) |
void |
setTitle(java.lang.String title) |
void |
start() |
void |
transferFocus() |
void |
update(java.awt.Graphics g) |
void |
updateScreen() |
void |
vibrate(int millis) |
void |
windowActivated(java.awt.event.WindowEvent event) |
void |
windowClosed(java.awt.event.WindowEvent event) |
void |
windowClosing(java.awt.event.WindowEvent event) |
void |
windowDeactivated(java.awt.event.WindowEvent event) |
void |
windowDeiconified(java.awt.event.WindowEvent event) |
void |
windowIconified(java.awt.event.WindowEvent event) |
void |
windowOpened(java.awt.event.WindowEvent event) |
boolean |
writeBytes(java.lang.String path,
byte[] buf,
int len)
write the available bytes to the stream getted with openOutputStream.
|
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocusBackward, transferFocusUpCycle
public static Launcher instance
public static boolean isApplication
public static boolean terminateIfMainClass
public java.lang.String commandLine
public int threadCount
public Hashtable htOpenedAt
public IntHashtable keysPressed
public MainWindow mainWindow
public boolean showKeyCodes
public Hashtable htAttachedFiles
public static int userFontSize
protected java.awt.image.MemoryImageSource screenMis
protected java.awt.Image screenImg
public void destroy()
destroy
in class java.applet.Applet
public final void init()
init
in class java.applet.Applet
public boolean eventIsAvailable()
public static void main(java.lang.String[] args)
protected void parseArguments(java.lang.String... args)
protected void parseArguments(java.lang.String clazz, java.lang.String... args)
public void start()
start
in class java.applet.Applet
public void registerMainWindow(MainWindow main)
public void setTimerInterval(int milliseconds)
public void exit(int exitCode)
public void minimize()
public void restore()
public void print(java.awt.Graphics g)
print
in class java.awt.Container
public boolean isFocusTraversable()
isFocusTraversable
in class java.awt.Component
public void keyPressed(java.awt.event.KeyEvent event)
keyPressed
in interface java.awt.event.KeyListener
public void transferFocus()
transferFocus
in class java.awt.Component
public void keyReleased(java.awt.event.KeyEvent event)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent event)
keyTyped
in interface java.awt.event.KeyListener
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
public void windowClosing(java.awt.event.WindowEvent event)
windowClosing
in interface java.awt.event.WindowListener
public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
public void windowActivated(java.awt.event.WindowEvent event)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent event)
windowClosed
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent event)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent event)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent event)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent event)
windowOpened
in interface java.awt.event.WindowListener
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
public void pumpEvents()
public void update(java.awt.Graphics g)
update
in class java.awt.Container
public void setNewMainWindow(MainWindow newInstance, java.lang.String args)
public static void print(java.lang.String s)
public void updateScreen()
public java.lang.String getDataPath()
public java.io.InputStream openInputStream(java.lang.String path)
public java.io.OutputStream openOutputStream(java.lang.String path)
public byte[] readBytes(java.lang.String path)
public boolean writeBytes(java.lang.String path, byte[] buf, int len)
public void fillSettings()
public void settingsRefresh(boolean callStoreSettings)
public Launcher.UserFont getFont(Font f, char c)
public int getCharWidth(Font f, char ch)
public void alert(java.lang.String msg)
public void setTitle(java.lang.String title)
public void vibrate(int millis)
public void setSIP(int option, Control edit, boolean secret)
public static void checkLitebaseAllowed()
public void componentHidden(java.awt.event.ComponentEvent arg0)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent arg0)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent arg0)
componentShown
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent ev)
componentResized
in interface java.awt.event.ComponentListener