com.maplesoft.client.maplets
Class MapletLoader

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--com.maplesoft.client.maplets.MapletLoader
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, MapleNetConsole, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class MapletLoader
extends javax.swing.JApplet
implements MapleNetConsole

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MapletLoader()
          Construct the applet
 
Method Summary
 void console(java.lang.String msg, boolean doNewline)
          Write a message to the applet's Java console.
 void destroy()
          Destroy the applet
 java.lang.String getAppletInfo()
          Get applet information
 java.lang.String getParameter(java.lang.String key, java.lang.String def)
          Returns the value for a given parameter key.
 java.lang.String[][] getParameterInfo()
           
 void init()
          Initialize the applet
static void main(java.lang.String[] args)
           
 void setMaplet(java.lang.String mplt)
           
 void start()
          Start the applet.
 void stop()
          Stop the applet
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.applet.Applet
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFont, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapletLoader

public MapletLoader()
Construct the applet
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String key,
                                     java.lang.String def)
Returns the value for a given parameter key.
Parameters:
key - name of a parameter key
def - a default value if the parameter value is unavailable
Returns:
a String representing the parameter value

init

public void init()
Initialize the applet
Overrides:
init in class java.applet.Applet
Returns:
void

setMaplet

public void setMaplet(java.lang.String mplt)

console

public void console(java.lang.String msg,
                    boolean doNewline)
Write a message to the applet's Java console.
Specified by:
console in interface MapleNetConsole
Parameters:
msg - message to write
doNewLine - controls whether a newline is printed after each message.
Returns:
void

start

public void start()
Start the applet.
Overrides:
start in class java.applet.Applet
Returns:
void

stop

public void stop()
Stop the applet
Overrides:
stop in class java.applet.Applet
Returns:
void

destroy

public void destroy()
Destroy the applet
Overrides:
destroy in class java.applet.Applet
Returns:
void

getAppletInfo

public java.lang.String getAppletInfo()
Get applet information
Overrides:
getAppletInfo in class java.applet.Applet
Returns:
String containing applet information.

getParameterInfo

public java.lang.String[][] getParameterInfo()
Overrides:
getParameterInfo in class java.applet.Applet

main

public static void main(java.lang.String[] args)