p2pgui.MainFrame Class Reference

Classe che genera graficamente la finestra di MainFrame da cui e' possibile istanziare un client e/o un server. More...

Inheritance diagram for p2pgui.MainFrame:
Collaboration diagram for p2pgui.MainFrame:

Public Member Functions

 MainFrame ()
 Costruttore che crea un nuovo MainFrame. More...
 

Private Member Functions

void initComponents ()
 Metodo chiamato dal costruttore per inizializzare la form WARNING: Do NOT modify this code. More...
 
void jMenuItem1ActionPerformed (java.awt.event.ActionEvent evt)
 Azione da effettuare se viene premuto il bottone Exit dal JMenu, istanziando un nuovo ExitFrame. More...
 
void formWindowClosing (java.awt.event.WindowEvent evt)
 Azione da effettuare se alla chiusura della finestra. More...
 
void jButton3ActionPerformed (java.awt.event.ActionEvent evt)
 Azioni da effettuare alla pressione del bottone server: controlla se c'e' gia' un server attivo, altrimenti crea un nuovo ServerFrame. More...
 
void jMenuItem4ActionPerformed (java.awt.event.ActionEvent evt)
 Azione da effettuare se viene premuto il bottone About, creando un nuovo AboutFrame. More...
 
void jMenuItem2ActionPerformed (java.awt.event.ActionEvent evt)
 Azioni da effettuare alla pressione del bottone server dal JMenu: controlla se c'e' gia' un server attivo, altrimenti crea un nuovo ServerFrame. More...
 
void jButton4ActionPerformed (java.awt.event.ActionEvent evt)
 Azioni da effettuare alla pressione del bottone client: controlla se c'e' gia' un client attivo, altrimenti crea un nuovo ClientFrame. More...
 
void jMenuItem3ActionPerformed (java.awt.event.ActionEvent evt)
 Azioni da effettuare alla pressione del bottone client dal JMenu: controlla se c'e' gia' un client attivo, altrimenti crea un nuovo ClientFrame. More...
 
void jButton1ActionPerformed (java.awt.event.ActionEvent evt)
 Azione da effettuare se viene premuto il bottone About, creando un nuovo ExitFrame. More...
 

Private Attributes

javax.swing.JButton jButton1
 
javax.swing.JButton jButton3
 
javax.swing.JButton jButton4
 
javax.swing.JMenu jMenu1
 
javax.swing.JMenu jMenu2
 
javax.swing.JMenu jMenu3
 
javax.swing.JMenuBar jMenuBar1
 
javax.swing.JMenuItem jMenuItem1
 
javax.swing.JMenuItem jMenuItem2
 
javax.swing.JMenuItem jMenuItem3
 
javax.swing.JMenuItem jMenuItem4
 

Detailed Description

Classe che genera graficamente la finestra di MainFrame da cui e' possibile istanziare un client e/o un server.

Author
HTTPS://WWW.PIETRIS.NET

Definition at line 11 of file MainFrame.java.

Constructor & Destructor Documentation

◆ MainFrame()

p2pgui.MainFrame.MainFrame ( )
inline

Costruttore che crea un nuovo MainFrame.

Definition at line 16 of file MainFrame.java.

References p2pgui.MainFrame.initComponents().

Here is the call graph for this function:

Member Function Documentation

◆ formWindowClosing()

void p2pgui.MainFrame.formWindowClosing ( java.awt.event.WindowEvent  evt)
inlineprivate

Azione da effettuare se alla chiusura della finestra.

Parameters
evt

Definition at line 172 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

Here is the caller graph for this function:

◆ initComponents()

◆ jButton1ActionPerformed()

void p2pgui.MainFrame.jButton1ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azione da effettuare se viene premuto il bottone About, creando un nuovo ExitFrame.

Parameters
evt
See also
p2pgui.ExitFrame

Definition at line 294 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

Here is the caller graph for this function:

◆ jButton3ActionPerformed()

void p2pgui.MainFrame.jButton3ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azioni da effettuare alla pressione del bottone server: controlla se c'e' gia' un server attivo, altrimenti crea un nuovo ServerFrame.

Parameters
evt
See also
p2pgui.ServerFrame

Definition at line 182 of file MainFrame.java.

References p2putility.Util.logGeneric(), p2putility.Config.r_clientOpen(), p2putility.Config.r_serverOpen(), and p2putility.Config.w_serverOpen().

Referenced by p2pgui.MainFrame.initComponents().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jButton4ActionPerformed()

void p2pgui.MainFrame.jButton4ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azioni da effettuare alla pressione del bottone client: controlla se c'e' gia' un client attivo, altrimenti crea un nuovo ClientFrame.

Parameters
evt
See also
p2pgui.ClientFrame

Definition at line 244 of file MainFrame.java.

References p2putility.Util.logGeneric(), p2putility.Config.r_clientOpen(), p2putility.Config.r_serverOpen(), and p2putility.Config.w_clientOpen().

Referenced by p2pgui.MainFrame.initComponents().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jMenuItem1ActionPerformed()

void p2pgui.MainFrame.jMenuItem1ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azione da effettuare se viene premuto il bottone Exit dal JMenu, istanziando un nuovo ExitFrame.

Parameters
evt
See also
p2pgui.ExitFrame

Definition at line 162 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

Here is the caller graph for this function:

◆ jMenuItem2ActionPerformed()

void p2pgui.MainFrame.jMenuItem2ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azioni da effettuare alla pressione del bottone server dal JMenu: controlla se c'e' gia' un server attivo, altrimenti crea un nuovo ServerFrame.

Parameters
evt
See also
p2pgui.ServerFrame

Definition at line 219 of file MainFrame.java.

References p2putility.Util.logGeneric(), p2putility.Config.r_clientOpen(), p2putility.Config.r_serverOpen(), and p2putility.Config.w_serverOpen().

Referenced by p2pgui.MainFrame.initComponents().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jMenuItem3ActionPerformed()

void p2pgui.MainFrame.jMenuItem3ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azioni da effettuare alla pressione del bottone client dal JMenu: controlla se c'e' gia' un client attivo, altrimenti crea un nuovo ClientFrame.

Parameters
evt
See also
p2pgui.ClientFrame

Definition at line 269 of file MainFrame.java.

References p2putility.Util.logGeneric(), p2putility.Config.r_clientOpen(), p2putility.Config.r_serverOpen(), and p2putility.Config.w_clientOpen().

Referenced by p2pgui.MainFrame.initComponents().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jMenuItem4ActionPerformed()

void p2pgui.MainFrame.jMenuItem4ActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azione da effettuare se viene premuto il bottone About, creando un nuovo AboutFrame.

Parameters
evt
See also
p2pgui.AboutFrame

Definition at line 207 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

Here is the caller graph for this function:

Field Documentation

◆ jButton1

javax.swing.JButton p2pgui.MainFrame.jButton1
private

Definition at line 302 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jButton3

javax.swing.JButton p2pgui.MainFrame.jButton3
private

Definition at line 303 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jButton4

javax.swing.JButton p2pgui.MainFrame.jButton4
private

Definition at line 304 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenu1

javax.swing.JMenu p2pgui.MainFrame.jMenu1
private

Definition at line 305 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenu2

javax.swing.JMenu p2pgui.MainFrame.jMenu2
private

Definition at line 306 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenu3

javax.swing.JMenu p2pgui.MainFrame.jMenu3
private

Definition at line 307 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenuBar1

javax.swing.JMenuBar p2pgui.MainFrame.jMenuBar1
private

Definition at line 308 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenuItem1

javax.swing.JMenuItem p2pgui.MainFrame.jMenuItem1
private

Definition at line 309 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenuItem2

javax.swing.JMenuItem p2pgui.MainFrame.jMenuItem2
private

Definition at line 310 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenuItem3

javax.swing.JMenuItem p2pgui.MainFrame.jMenuItem3
private

Definition at line 311 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().

◆ jMenuItem4

javax.swing.JMenuItem p2pgui.MainFrame.jMenuItem4
private

Definition at line 312 of file MainFrame.java.

Referenced by p2pgui.MainFrame.initComponents().


The documentation for this class was generated from the following file: