p2pgui.LogOutFrameClient Class Reference

Classe che genera graficamente la finestra di LogOut dal frame Client. More...

Inheritance diagram for p2pgui.LogOutFrameClient:
Collaboration diagram for p2pgui.LogOutFrameClient:

Public Member Functions

 LogOutFrameClient (java.awt.Frame parent, boolean modal)
 Costruttore della classe che crea un nuovo form LogOutFrameClient. More...
 
int getReturnStatus ()
 Funzione che fornisce lo stato di ritorno della finestra. More...
 

Static Public Attributes

static final int RET_CANCEL = 0
 Codice di ritorno della stato - ritorna se viene premuto il bottone Cancel. More...
 
static final int RET_OK = 1
 Codice di ritorno della stato - ritorna se viene premuto il bottone OK. More...
 

Private Member Functions

void initComponents ()
 Metodo chiamato dal costruttore per inizializzare la form WARNING: Do NOT modify this code. More...
 
void closeDialog (java.awt.event.WindowEvent evt)
 Azione da effettuare se avviene la pressione della X per chiudere la finestra. More...
 
void okButtonActionPerformed (java.awt.event.ActionEvent evt)
 Azioni da effettuare se avviene la pressione del bottone OK: disconnessione del client tramite Funzione RMI che cancella il client dal db e avvisa il server della disconnessione e chiusura del frame ClientFrame. More...
 
void cancelButtonActionPerformed (java.awt.event.ActionEvent evt)
 Azione da effettuare se avviene la pressione del bottone CANCEL. More...
 
void doClose (int retStatus)
 Funzione imposta lo stato di ritorno in base a retStatus. More...
 

Private Attributes

javax.swing.JButton cancelButton
 
javax.swing.JLabel jLabel1
 
javax.swing.JButton okButton
 
int returnStatus = RET_CANCEL
 

Detailed Description

Classe che genera graficamente la finestra di LogOut dal frame Client.

Author
HTTPS://WWW.PIETRIS.NET

Definition at line 10 of file LogOutFrameClient.java.

Constructor & Destructor Documentation

◆ LogOutFrameClient()

p2pgui.LogOutFrameClient.LogOutFrameClient ( java.awt.Frame  parent,
boolean  modal 
)
inline

Costruttore della classe che crea un nuovo form LogOutFrameClient.

Parameters
parent
modal

Definition at line 20 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.initComponents().

Here is the call graph for this function:

Member Function Documentation

◆ cancelButtonActionPerformed()

void p2pgui.LogOutFrameClient.cancelButtonActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azione da effettuare se avviene la pressione del bottone CANCEL.

Parameters
evt

Definition at line 137 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.doClose(), and p2pgui.LogOutFrameClient.RET_CANCEL.

Referenced by p2pgui.LogOutFrameClient.initComponents().

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

◆ closeDialog()

void p2pgui.LogOutFrameClient.closeDialog ( java.awt.event.WindowEvent  evt)
inlineprivate

Azione da effettuare se avviene la pressione della X per chiudere la finestra.

Parameters
evt

Definition at line 105 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.doClose(), and p2pgui.LogOutFrameClient.RET_CANCEL.

Referenced by p2pgui.LogOutFrameClient.initComponents().

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

◆ doClose()

void p2pgui.LogOutFrameClient.doClose ( int  retStatus)
inlineprivate

Funzione imposta lo stato di ritorno in base a retStatus.

Parameters
retStatus

Definition at line 145 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.returnStatus.

Referenced by p2pgui.LogOutFrameClient.cancelButtonActionPerformed(), p2pgui.LogOutFrameClient.closeDialog(), and p2pgui.LogOutFrameClient.okButtonActionPerformed().

Here is the caller graph for this function:

◆ getReturnStatus()

int p2pgui.LogOutFrameClient.getReturnStatus ( )
inline

Funzione che fornisce lo stato di ritorno della finestra.

Returns
RET_OK o RET_CANCEL

Definition at line 28 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.returnStatus.

◆ initComponents()

void p2pgui.LogOutFrameClient.initComponents ( )
inlineprivate

Metodo chiamato dal costruttore per inizializzare la form WARNING: Do NOT modify this code.

The content of this method is always regenerated by the Form Editor.

Definition at line 38 of file LogOutFrameClient.java.

References p2pgui.LogOutFrameClient.cancelButton, p2pgui.LogOutFrameClient.cancelButtonActionPerformed(), p2pgui.LogOutFrameClient.closeDialog(), p2pgui.LogOutFrameClient.jLabel1, p2pgui.LogOutFrameClient.okButton, and p2pgui.LogOutFrameClient.okButtonActionPerformed().

Referenced by p2pgui.LogOutFrameClient.LogOutFrameClient().

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

◆ okButtonActionPerformed()

void p2pgui.LogOutFrameClient.okButtonActionPerformed ( java.awt.event.ActionEvent  evt)
inlineprivate

Azioni da effettuare se avviene la pressione del bottone OK: disconnessione del client tramite Funzione RMI che cancella il client dal db e avvisa il server della disconnessione e chiusura del frame ClientFrame.

Parameters
evt

Definition at line 116 of file LogOutFrameClient.java.

References p2pgui.ClientFrame.disconnectClient(), p2pgui.LogOutFrameClient.doClose(), p2putility.Config.r_serverOpen(), p2pgui.LogOutFrameClient.RET_OK, and p2putility.Config.w_clientOpen().

Referenced by p2pgui.LogOutFrameClient.initComponents().

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

Field Documentation

◆ cancelButton

javax.swing.JButton p2pgui.LogOutFrameClient.cancelButton
private

Definition at line 152 of file LogOutFrameClient.java.

Referenced by p2pgui.LogOutFrameClient.initComponents().

◆ jLabel1

javax.swing.JLabel p2pgui.LogOutFrameClient.jLabel1
private

Definition at line 153 of file LogOutFrameClient.java.

Referenced by p2pgui.LogOutFrameClient.initComponents().

◆ okButton

javax.swing.JButton p2pgui.LogOutFrameClient.okButton
private

Definition at line 154 of file LogOutFrameClient.java.

Referenced by p2pgui.LogOutFrameClient.initComponents().

◆ RET_CANCEL

final int p2pgui.LogOutFrameClient.RET_CANCEL = 0
static

Codice di ritorno della stato - ritorna se viene premuto il bottone Cancel.

Definition at line 12 of file LogOutFrameClient.java.

Referenced by p2pgui.LogOutFrameClient.cancelButtonActionPerformed(), and p2pgui.LogOutFrameClient.closeDialog().

◆ RET_OK

final int p2pgui.LogOutFrameClient.RET_OK = 1
static

Codice di ritorno della stato - ritorna se viene premuto il bottone OK.

Definition at line 14 of file LogOutFrameClient.java.

Referenced by p2pgui.LogOutFrameClient.okButtonActionPerformed().

◆ returnStatus

int p2pgui.LogOutFrameClient.returnStatus = RET_CANCEL
private

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