All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class navalBattle.NavalBattleEntry

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----navalBattle.NavalBattleEntry

public class NavalBattleEntry
extends Frame
implements ActionListener, WindowListener
POIN D'ENTREE DU JEU DE BATAILLE NAVALE MULTI JOUEUR * Utilise les RMI ! * Choisir "New Game" pour etre Serveur RMI ----------(RMIRegistry doit etre lancer sur cette machine * Choisir "Join Game" avec un nom de serveur valide, ----------pour participer a une partie comme client RMI


Variable Index

 o ivjContentsPane
 o ivjDisposeBoats1
 o ivjFile
 o ivjFrameNbJoueurs1
 o ivjJoinGameButton
 o ivjLabelNickName
 o ivjLabelServeur
 o ivjNavalBattleEntryBorderLayout
 o ivjNavalBattleEntryMenuBar
 o ivjNewGame
 o ivjQuitterMenuItem
 o ivjTextFieldNickName
 o ivjTextFieldServer
 o nbJoueurs
 o nickName
 o serverHostName
 o vectorTireur

Constructor Index

 o NavalBattleEntry()
Constructor
 o NavalBattleEntry(String)
NavalBattleEntry constructor comment.

Method Index

 o actionPerformed(ActionEvent)
Method to handle events for the ActionListener interface.
 o connEtoC1(WindowEvent)
connEtoC1: (NavalBattleEntry.window.windowClosing(java.awt.event.WindowEvent) --> NavalBattleEntry.dispose()V)
 o connEtoC2(ActionEvent)
connEtoC2: (NewGame.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.newGame_ActionEvents(Ljava.awt.event.ActionEvent;)V)
 o connEtoC3(ActionEvent)
connEtoC3: (JoinGameButton.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.joinGameButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
 o connEtoC4(ActionEvent)
connEtoC4: (QuitterMenuItem.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.quitterMenuItem_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
 o getBuilderData()
 o getContentsPane()
Return the ContentsPane property value.
 o getDisposeBoats1()
Return the DisposeBoats1 property value.
 o getFile()
Return the Menu1 property value.
 o getFrameNbJoueurs1()
Return the FrameNbJoueurs1 property value.
 o getJoinGameButton()
Return the Button2 property value.
 o getLabelNickName()
Return the Label1 property value.
 o getLabelServeur()
Return the LabelNickName1 property value.
 o getNavalBattleEntryBorderLayout()
Return the NavalBattleEntryBorderLayout property value.
 o getNavalBattleEntryMenuBar()
Return the NavalBattleEntryMenuBar property value.
 o getNewGame()
Return the Button1 property value.
 o getQuitterMenuItem()
Return the QuitterMenuItem property value.
 o getTextFieldNickName()
Return the TextField1 property value.
 o getTextFieldServer()
Return the TextFieldNickName1 property value.
 o handleException(Throwable)
Called whenever the part throws an exception.
 o initClient()
Initialisation comme client
 o initConnections()
Initializes connections
 o initialize()
Initialize the class.
 o initServer()
Initialisation comme Serveur
 o joinGameButton_ActionPerformed(ActionEvent)
Rejoindre un jeu comme client RMI
 o main(String[])
Entree de l'Application
 o newGame_ActionEvents(ActionEvent)
Creer un jeu comme Serveur RMI
 o quitterMenuItem_ActionPerformed(ActionEvent)
Quitter !
 o setNbJoueurs(int)
Accesseur du nombre de joueurs
 o setNickName(TextField)
Modifieur Pseudo
 o setServer(TextField)
modifieur du nom de machine serveur
 o showErreur(String)
Quand Erreur
 o windowActivated(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowClosed(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowClosing(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowDeactivated(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowDeiconified(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowIconified(WindowEvent)
Method to handle events for the WindowListener interface.
 o windowOpened(WindowEvent)
Method to handle events for the WindowListener interface.

Variables

 o ivjContentsPane
 private Panel ivjContentsPane
 o ivjJoinGameButton
 private Button ivjJoinGameButton
 o ivjLabelNickName
 private Label ivjLabelNickName
 o ivjNewGame
 private Button ivjNewGame
 o ivjTextFieldNickName
 private TextField ivjTextFieldNickName
 o ivjNavalBattleEntryMenuBar
 private MenuBar ivjNavalBattleEntryMenuBar
 o ivjLabelServeur
 private Label ivjLabelServeur
 o ivjNavalBattleEntryBorderLayout
 private BorderLayout ivjNavalBattleEntryBorderLayout
 o ivjFile
 private Menu ivjFile
 o ivjQuitterMenuItem
 private MenuItem ivjQuitterMenuItem
 o ivjFrameNbJoueurs1
 private FrameNbJoueurs ivjFrameNbJoueurs1
 o ivjTextFieldServer
 private TextField ivjTextFieldServer
 o ivjDisposeBoats1
 private DisposeBoats ivjDisposeBoats1
 o nbJoueurs
 private int nbJoueurs
 o nickName
 private String nickName
 o serverHostName
 private String serverHostName
 o vectorTireur
 private VectorTireur vectorTireur

Constructors

 o NavalBattleEntry
 public NavalBattleEntry()
Constructor

 o NavalBattleEntry
 public NavalBattleEntry(String title)
NavalBattleEntry constructor comment.

Parameters:
title - java.lang.String

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Method to handle events for the ActionListener interface.

Parameters:
e - java.awt.event.ActionEvent
 o connEtoC1
 private void connEtoC1(WindowEvent arg1)
connEtoC1: (NavalBattleEntry.window.windowClosing(java.awt.event.WindowEvent) --> NavalBattleEntry.dispose()V)

Parameters:
arg1 - java.awt.event.WindowEvent
 o connEtoC2
 private void connEtoC2(ActionEvent arg1)
connEtoC2: (NewGame.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.newGame_ActionEvents(Ljava.awt.event.ActionEvent;)V)

Parameters:
arg1 - java.awt.event.ActionEvent
 o connEtoC3
 private void connEtoC3(ActionEvent arg1)
connEtoC3: (JoinGameButton.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.joinGameButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)

Parameters:
arg1 - java.awt.event.ActionEvent
 o connEtoC4
 private void connEtoC4(ActionEvent arg1)
connEtoC4: (QuitterMenuItem.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.quitterMenuItem_ActionPerformed(Ljava.awt.event.ActionEvent;)V)

Parameters:
arg1 - java.awt.event.ActionEvent
 o getBuilderData
 private static void getBuilderData()
 o getContentsPane
 private Panel getContentsPane()
Return the ContentsPane property value.

Returns:
java.awt.Panel
 o getDisposeBoats1
 private DisposeBoats getDisposeBoats1()
Return the DisposeBoats1 property value.

Returns:
NavalBattle.DisposeBoats
 o getFile
 private Menu getFile()
Return the Menu1 property value.

Returns:
java.awt.Menu
 o getFrameNbJoueurs1
 private FrameNbJoueurs getFrameNbJoueurs1()
Return the FrameNbJoueurs1 property value.

Returns:
NavalBattle.FrameNbJoueurs
 o getJoinGameButton
 private Button getJoinGameButton()
Return the Button2 property value.

Returns:
java.awt.Button
 o getLabelNickName
 private Label getLabelNickName()
Return the Label1 property value.

Returns:
java.awt.Label
 o getLabelServeur
 private Label getLabelServeur()
Return the LabelNickName1 property value.

Returns:
java.awt.Label
 o getNavalBattleEntryBorderLayout
 private BorderLayout getNavalBattleEntryBorderLayout()
Return the NavalBattleEntryBorderLayout property value.

Returns:
java.awt.BorderLayout
 o getNavalBattleEntryMenuBar
 private MenuBar getNavalBattleEntryMenuBar()
Return the NavalBattleEntryMenuBar property value.

Returns:
java.awt.MenuBar
 o getNewGame
 private Button getNewGame()
Return the Button1 property value.

Returns:
java.awt.Button
 o getQuitterMenuItem
 private MenuItem getQuitterMenuItem()
Return the QuitterMenuItem property value.

Returns:
java.awt.MenuItem
 o getTextFieldNickName
 private TextField getTextFieldNickName()
Return the TextField1 property value.

Returns:
java.awt.TextField
 o getTextFieldServer
 private TextField getTextFieldServer()
Return the TextFieldNickName1 property value.

Returns:
java.awt.TextField
 o handleException
 private void handleException(Throwable exception)
Called whenever the part throws an exception.

Parameters:
exception - java.lang.Throwable
 o initClient
 public boolean initClient()
Initialisation comme client

Parameters:
serverHostName - java.lang.String
 o initConnections
 private void initConnections()
Initializes connections

 o initialize
 private void initialize()
Initialize the class.

 o initServer
 public boolean initServer()
Initialisation comme Serveur

 o joinGameButton_ActionPerformed
 public void joinGameButton_ActionPerformed(ActionEvent evt)
Rejoindre un jeu comme client RMI

 o main
 public static void main(String args[])
Entree de l'Application

Parameters:
args - java.lang.String[]
 o newGame_ActionEvents
 public void newGame_ActionEvents(ActionEvent evt)
Creer un jeu comme Serveur RMI

 o quitterMenuItem_ActionPerformed
 public void quitterMenuItem_ActionPerformed(ActionEvent actionEvent)
Quitter !

 o setNbJoueurs
 public void setNbJoueurs(int nbj)
Accesseur du nombre de joueurs

Parameters:
nbj - int
 o setNickName
 boolean setNickName(TextField txt)
Modifieur Pseudo

 o setServer
 boolean setServer(TextField serv)
modifieur du nom de machine serveur

 o showErreur
 public void showErreur(String label)
Quand Erreur

Parameters:
label - java.lang.String
 o windowActivated
 public void windowActivated(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowClosed
 public void windowClosed(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowClosing
 public void windowClosing(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowIconified
 public void windowIconified(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent
 o windowOpened
 public void windowOpened(WindowEvent e)
Method to handle events for the WindowListener interface.

Parameters:
e - java.awt.event.WindowEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index