Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--mil.navy.nps.awt.AwtPduViewer
This file was generated by Microsquish J++, which is something of an experiment. We'll see how it works out. It's also my first applet that isn't completely trivial, so be a little gentle.
This is compliant with the JDK 1.02 spec; it makes use of deprecated aspects of that API rather than use JDK 1.1. This is primarily to get it working with Netscape 3.01. 1.1 browser implementations should be compatible, at least for the next release.
Netscape bitches & moans about doing a thread.suspend(), complaining about the possibility of deadlock. Not sure what this is all about, but it seems to work.
This takes two parameters from the HTML file, "PduSocket" and"MulticastGroup". The first is the socket the applet listens on. The second is a multicast group, a feature that is not implemented right now since Netscape doesn't do multicast.
Testing: sent ESPdus to host (madison) from both madison and pinafore using mil.navy.nps.dis.Benchmark. HISTORY
10Apr97 DMcG New
Fields inherited from class java.awt.Panel | |
panelLayout |
Fields inherited from class java.awt.Container | |
component, containerListener, layoutMgr, ncomponents |
Fields inherited from class java.awt.Component | |
actionListenerK, adjustmentListenerK, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, parent, peer, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y |
Constructor Summary | |
AwtPduViewer()
|
Method Summary | |
boolean | action(java.awt.Event event,
java.lang.Object what)
|
void | destroy()
|
java.lang.String | getAppletInfo()
|
java.lang.String[][] | getParameterInfo()
|
boolean | handleEvent(java.awt.Event evt)
|
void | init()
Applet initialization code |
void | paint(java.awt.Graphics g)
|
void | run()
|
void | start()
|
void | stop()
|
void | updateDisplay()
Updates the display by querying the NetworkMonitor, returning any Pdus that have arrived since the last time we asked, and updating the display. |
Methods inherited from class java.applet.Applet | |
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel | |
Methods inherited from class java.awt.Container | |
add, add, add, add, add, addContainerListener, addImpl, addNotify, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, nextFocus, paintComponents, paint, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, print, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, removeAll, remove, remove, removeContainerListener, removeNotify, setFocusOwner, setLayout, transferFocus, update, validate, validateTree |
Methods inherited from class java.awt.Component | |
Methods inherited from class java.lang.Object | |
Constructor Detail |
public AwtPduViewer()
Method Detail |
public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
public void init()
public void destroy()
public void paint(java.awt.Graphics g)
public void start()
public void stop()
public void run()
public void updateDisplay()
public boolean action(java.awt.Event event, java.lang.Object what)
public boolean handleEvent(java.awt.Event evt)
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |