swpchat.client
Class Chatbox

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.TextComponent
              |
              +--java.awt.TextArea
                    |
                    +--swpchat.client.Chatbox
All Implemented Interfaces:
javax.accessibility.Accessible, DisplayForIncomingMessages, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class Chatbox
extends java.awt.TextArea
implements DisplayForIncomingMessages

See Also:
Serialized Form

Inner classes inherited from class java.awt.TextArea
java.awt.TextArea.AccessibleAWTTextArea
 
Inner classes inherited from class java.awt.TextComponent
java.awt.TextComponent.AccessibleAWTTextComponent
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
private  java.lang.String CLS
           
 
Fields inherited from class java.awt.TextArea
base, columns, nameCounter, rows, SCROLLBARS_BOTH, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE, SCROLLBARS_VERTICAL_ONLY, scrollbarVisibility, serialVersionUID, textAreaSerializedDataVersion
 
Fields inherited from class java.awt.TextComponent
canAccessClipboard, editable, selectionEnd, selectionStart, text, textComponentSerializedDataVersion, textListener
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dbg, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Chatbox(int height, int width)
           
 
Method Summary
 void deleteBox()
           
 void displayMessage(java.lang.String channel, java.lang.String from, java.lang.String message)
          Display a text message in some appropriate way.
 void displayPlayMessage(java.lang.String channel, java.lang.String strFrom, java.lang.String strAudioKey)
          Display a text that represend a sound is not able to play.
 
Methods inherited from class java.awt.TextArea
, addNotify, append, appendText, constructComponentName, getAccessibleContext, getColumns, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, getRows, getScrollbarVisibility, initIDs, insert, insertText, minimumSize, minimumSize, paramString, preferredSize, preferredSize, readObject, replaceRange, replaceText, setColumns, setRows
 
Methods inherited from class java.awt.TextComponent
addTextListener, areInputMethodsEnabled, checkSystemClipboardAccess, enableInputMethodsIfNecessary, eventEnabled, getBackground, getCaretPosition, getCharacterBounds, getIndexAtPoint, getListeners, getSelectedText, getSelectionEnd, getSelectionStart, getText, isEditable, processEvent, processTextEvent, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkGD, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createChildHierarchyEvents, createHierarchyEvents, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getMaximumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paint, paintAll, paintHeavyweightComponents, postEvent, postsOldMouseEvents, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

CLS

private final java.lang.String CLS
Constructor Detail

Chatbox

public Chatbox(int height,
               int width)
Method Detail

deleteBox

public void deleteBox()

displayMessage

public void displayMessage(java.lang.String channel,
                           java.lang.String from,
                           java.lang.String message)
Description copied from interface: DisplayForIncomingMessages
Display a text message in some appropriate way.
Specified by:
displayMessage in interface DisplayForIncomingMessages
Following copied from interface: swpchat.protocol.DisplayForIncomingMessages
Parameters:
from - Name of the sender of the message
message - *The content of the text message.

displayPlayMessage

public void displayPlayMessage(java.lang.String channel,
                               java.lang.String strFrom,
                               java.lang.String strAudioKey)
Description copied from interface: DisplayForIncomingMessages
Display a text that represend a sound is not able to play.
Specified by:
displayPlayMessage in interface DisplayForIncomingMessages
Following copied from interface: swpchat.protocol.DisplayForIncomingMessages
Parameters:
from - Name of the sender of the message
message - *The content of the text message.