clientjanet
Class Panel_abstract

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--alex.awt.alxPanel
                          |
                          +--clientjanet.Panel_abstract
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
Panel_perso, Panel_princ, Panel_room

public abstract class Panel_abstract
extends alxPanel
implements java.awt.event.ActionListener, java.awt.event.KeyListener

classe graphique abstraite pour représenter une zone de discution. Il y a en a un par onglet de alxTabbedPane

See Also:
alxTabbedPane, Serialized Form

Inner Class Summary
private  class Panel_abstract.Clignoteur
          clignotement de l'onglet correspondant lors de l'arrivée d'un message
 
Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
protected  FrameClient ClientParent
           
(package private)  alxLabel Label_titre
          titre de la zône
private  Panel_abstract moi
          pointeur sur this pour Clignoteur
private  Panel_abstract.Clignoteur monClignoteur
           
private  java.lang.String Nom
           
(package private)  alxPanel Panel_centre
           
protected static Panel_abstract Panel_Dessus
           
(package private)  alxPanel Panel_saisie
           
(package private)  alxPanel Panel_titre
           
(package private)  alxScrollPane ScrollPane1
           
(package private)  alxTextArea TextArea_journal
          zône d'affichage des messages
(package private)  java.awt.TextField TextField_saisie
          champ de saisie du texte à envoyer
private  MenuItemLink unMenuItemLink
           
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, 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
Panel_abstract(java.lang.String aNom, FrameClient aClientParent)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  void affiche(java.lang.String texte)
          affiche le texte dans la zône d'affichage (journal)
protected  boolean auDessus()
          retourne si ce Panel_abstract se trouve au dessus des autres dans l'objet alxTabbedPane dans lequel ils se trouvent tous
private  void envoiClic()
          l'utilisateur veut envoyer son texte
protected abstract  void envoyer(java.lang.String texte)
          envoie de ce texte au destinataire aproprié
protected  void fermer()
          à appeler pour fermer ce Panel_abstract
 java.lang.String getNom()
          retourne le nom de ce Panel_abstract
ex: nom de la room ou du perso
(package private)  void InitGraphique()
          initialisation des composants graphiques
 void keyPressed(java.awt.event.KeyEvent kevt)
           
 void keyReleased(java.awt.event.KeyEvent kevt)
           
 void keyTyped(java.awt.event.KeyEvent kevt)
           
protected  void mettreAJour()
          a appeler lorsque le Panel_abstract passe au premier plan
protected  void recu(ircmessage unMessage)
          traite les messages reçus
 void saveSelection()
          retourne le texte sélectionné
 
Methods inherited from class java.awt.Panel
, addNotify, constructComponentName, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

Panel_Dessus

protected static Panel_abstract Panel_Dessus

Nom

private java.lang.String Nom

moi

private Panel_abstract moi
pointeur sur this pour Clignoteur

ClientParent

protected FrameClient ClientParent

unMenuItemLink

private MenuItemLink unMenuItemLink

monClignoteur

private Panel_abstract.Clignoteur monClignoteur

TextField_saisie

java.awt.TextField TextField_saisie
champ de saisie du texte à envoyer

Label_titre

alxLabel Label_titre
titre de la zône

TextArea_journal

alxTextArea TextArea_journal
zône d'affichage des messages

ScrollPane1

alxScrollPane ScrollPane1

Panel_centre

alxPanel Panel_centre

Panel_saisie

alxPanel Panel_saisie

Panel_titre

alxPanel Panel_titre
Constructor Detail

Panel_abstract

public Panel_abstract(java.lang.String aNom,
                      FrameClient aClientParent)
Method Detail

auDessus

protected boolean auDessus()
retourne si ce Panel_abstract se trouve au dessus des autres dans l'objet alxTabbedPane dans lequel ils se trouvent tous
See Also:
alxTabbedPane, alxTabbedPane

getNom

public java.lang.String getNom()
retourne le nom de ce Panel_abstract
ex: nom de la room ou du perso

saveSelection

public void saveSelection()
retourne le texte sélectionné
See Also:
alxTextArea, alxTextArea

envoiClic

private void envoiClic()
l'utilisateur veut envoyer son texte

envoyer

protected abstract void envoyer(java.lang.String texte)
envoie de ce texte au destinataire aproprié

mettreAJour

protected void mettreAJour()
a appeler lorsque le Panel_abstract passe au premier plan

affiche

protected void affiche(java.lang.String texte)
affiche le texte dans la zône d'affichage (journal)

recu

protected void recu(ircmessage unMessage)
traite les messages reçus

fermer

protected void fermer()
à appeler pour fermer ce Panel_abstract

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent kevt)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent kevt)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent kevt)
Specified by:
keyPressed in interface java.awt.event.KeyListener

InitGraphique

void InitGraphique()
             throws java.lang.Exception
initialisation des composants graphiques