com.ondelette.servlet.webforum
Class SwingForumApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--com.ondelette.servlet.webforum.SwingForumApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, ParameterNames, javax.swing.RootPaneContainer, java.io.Serializable

public final class SwingForumApplet
extends javax.swing.JApplet
implements ParameterNames

Class SwingForumApplet To do: 1) Automatically update the message buffer to new messages. Easy. 2) Allow the user to retrieve older messages. Easy.

See Also:
Serialized Form

Nested Class Summary
 class SwingForumApplet.NoImageHTMLFactory
          A factory to build views for html.
 
Field Summary
protected  com.ondelette.servlet.webforum.SwingForumApplet.AppletLocale mAppletLocale
          Applet locale for i18n
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ondelette.servlet.webforum.ParameterNames
ADDUSER, AUTHORPARAM, CHANGEUSER, CONFIRMEDDELETEMESSAGEPARAM, DELETEMESSAGEPARAM, DELETEUSER, DISPLAYUSER, DISPLAYUSERLIST, EMAILPARAM, FORUMFILEPARAM, LASTMESSAGES, LINKTITLEPARAM, LOGINPARAM, LOGOUTPARAM, MESSAGEIDPARAM, MESSAGEPARAM, NEWUSEREMAIL, NEWUSERLEVEL, NEWUSERNAME, NEWUSERPASSWORD, NEWUSERPASSWORD2, OLDUSERNAME, OPTURLPARAM, PAGEPARAM, PASSWORDPARAM, RESETPARAM, SHOWPARAM, SUBJECTPARAM, SUBMITFORMNAME, SUBMITMESSAGEPARAM, SUBSCRIBEUSER, USERFILEPARAM, USERPARAM
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SwingForumApplet()
           
 
Method Summary
 void destroy()
           
 com.ondelette.servlet.webforum.SwingForumApplet.MessageHolder getMessageHolder()
          Gets the messageHolder attribute of the SwingForumApplet object
 void gotTree(javax.swing.tree.TreeModel tree)
          Ok, got the tree of messages
 void gotValidUser(User u)
           
 void init()
          init the applet
static void main(java.lang.String[] arg)
          The main program for the SwingForumApplet class
 void postForm(MessageReference mr)
           
 void selected(MessageReference mr, Message m)
           
 void setEnabled(boolean b)
          Sets the enabled attribute of the SwingForumApplet object
 void showImage(java.net.URL url)
           
 void showPage(java.net.URL url)
           
 void start()
          sta the applet
 void stop()
           
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, 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, 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, isFocusTraversable, isFontSet, isForegroundSet, 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, 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, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mAppletLocale

protected com.ondelette.servlet.webforum.SwingForumApplet.AppletLocale mAppletLocale
Applet locale for i18n

Since:
0.30
Constructor Detail

SwingForumApplet

public SwingForumApplet()
Method Detail

main

public static void main(java.lang.String[] arg)
The main program for the SwingForumApplet class

Parameters:
arg - The command line arguments
Since:
0.30

setEnabled

public void setEnabled(boolean b)
Sets the enabled attribute of the SwingForumApplet object

Overrides:
setEnabled in class java.awt.Component
Parameters:
b - The new enabled value
Since:
0.30

getMessageHolder

public com.ondelette.servlet.webforum.SwingForumApplet.MessageHolder getMessageHolder()
Gets the messageHolder attribute of the SwingForumApplet object

Returns:
The messageHolder value
Since:
0.30

init

public void init()
init the applet

Overrides:
init in class java.applet.Applet
Since:
0.30

start

public void start()
sta the applet

Overrides:
start in class java.applet.Applet
Since:
0.30

gotTree

public void gotTree(javax.swing.tree.TreeModel tree)
Ok, got the tree of messages

Parameters:
tree -
Since:
0.30

selected

public void selected(MessageReference mr,
                     Message m)
Parameters:
mr -
m -
Since:
0.30

stop

public void stop()
Overrides:
stop in class java.applet.Applet
Since:
0.30

destroy

public void destroy()
Overrides:
destroy in class java.applet.Applet
Since:
0.30

postForm

public void postForm(MessageReference mr)
Parameters:
mr -
Since:
0.30

showPage

public void showPage(java.net.URL url)
Parameters:
url -
Since:
0.30

showImage

public void showImage(java.net.URL url)
Parameters:
url -
Since:
0.30

gotValidUser

public void gotValidUser(User u)
Parameters:
u -
Since:
0.30