SOMA.gui
Class ManipolaAgenti

java.lang.Object
  extended bySOMA.gui.Finestra
      extended bySOMA.gui.ManipolaAgenti
All Implemented Interfaces:
java.util.EventListener, FinGoto1000Listener, LinguaListener, java.beans.PropertyChangeListener, java.io.Serializable

public class ManipolaAgenti
extends Finestra
implements FinGoto1000Listener

See Also:
Serialized Form

Nested Class Summary
(package private)  class ManipolaAgenti.ListBottoni
          CLASSE INTERNA PER ASCOLTARE LA PRESSIONE DEI BOTTONI DELLA FINESTRA.
 class ManipolaAgenti.TabellaAgenti
          CLASSE INTERNA CHE DEFINISCE IL "MODELLO" A CUI SI RIFERISCE LA TABELLA DEGLI AgentID.
 class ManipolaAgenti.TabellaListener
          CLASSE INTERNA CHE FUNGE DA ASCOLTATORE DELLE SELEZIONI FATTE SULLA TABELLA.
 
Field Summary
protected  javax.swing.JButton botClose
           
protected  javax.swing.JButton botGoto
           
protected  javax.swing.JButton botRemove
           
protected  javax.swing.JButton botStaSto
           
protected  javax.swing.JButton botUpdate
           
protected  Environment env
          Per memorizzare i parametri passati al costruttore, in modo che siano visibili anche agli altri metodi.
protected static javax.swing.ImageIcon IMG_ICO_CANC
           
protected static javax.swing.ImageIcon IMG_ICO_MIGRA
           
protected static javax.swing.ImageIcon IMG_ICO_REMOVE
           
protected static javax.swing.ImageIcon IMG_ICO_START
          ICONE CARICATE UNA VOLTA SOLA ALLA CREAZIONE DELLA CLASSE!
protected static javax.swing.ImageIcon IMG_ICO_STOP
           
protected static javax.swing.ImageIcon IMG_ICO_UPDATE
           
protected static javax.swing.ImageIcon IMG_ICO_ZAMPA
           
protected  javax.swing.JLabel labAgente
           
protected  javax.swing.JLabel labOperaz
           
protected  AgentWorkerStore mioAgentWorkerStore
           
protected  javax.swing.table.TableModel modelloTabella
           
protected  PanChePlace panChePlace
          Oggetti che mostrano frasi, coič che dipendono dalla lingua.
protected  javax.swing.JTable tabella
           
protected  javax.swing.JScrollPane tabellaScroll
           
 
Fields inherited from class SOMA.gui.Finestra
contentPane, cursoreBottone, IMG_ICO_CLOSE, IMG_ICO_EXIT, IMG_ICO_HELP, IMG_ICO_OPZIO, MENU_CLOSE, MENU_EXIT, mioFrame, nomeFinestra, numFinAperte, PanCentro, PICTURE_PATH, X, Y
 
Constructor Summary
ManipolaAgenti(Environment env)
          Costruzione della finestra per la visualizzazione e modifica del D/P-NS.
 
Method Summary
 void costruisciFinestra()
          Vedi in superclasse Finestra il metodo Finestra.costruisciFinestra()
protected  void creaBarraMenu()
          Vedi in superclasse Finestra il metodo Finestra.creaBarraMenu()
 void distruggiFinestra()
          Vedi in superclasse Finestra il metodo Finestra.distruggiFinestra()
 void eseguiAzioneGoto(PlaceID placeToGoTo)
          Metodo invocato dalla finestra "FinGoto1000" per rendere i dati dell'inserimento.
protected  void impostaBottoni(java.lang.Object stato)
          Interna, serve per impostare lo stato dei bottoni in base allo stato (di un agente) che viene passato come parametro.
protected  void impostaFrasi()
          Vedi in superclasse Finestra il metodo Finestra.impostaFrasi() Definisce/modifica tutte le frasi mostrate a video (nella GUI)
 
Methods inherited from class SOMA.gui.Finestra
abilitaFinestra, AggiornaApparenzaFinestra, creaBarraMenuDefault, disabilitaFinestra, FineCostruisciFinestra, FineImpostaFrasi, InizioCostruisciFinestra, inPrimoPiano, linguaCambiata, propertyChange, RiduciAIcona
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface SOMA.gui.FinGoto1000Listener
abilitaFinestra, disabilitaFinestra, inPrimoPiano
 

Field Detail

IMG_ICO_START

protected static final javax.swing.ImageIcon IMG_ICO_START
ICONE CARICATE UNA VOLTA SOLA ALLA CREAZIONE DELLA CLASSE!


IMG_ICO_STOP

protected static final javax.swing.ImageIcon IMG_ICO_STOP

IMG_ICO_REMOVE

protected static final javax.swing.ImageIcon IMG_ICO_REMOVE

IMG_ICO_MIGRA

protected static final javax.swing.ImageIcon IMG_ICO_MIGRA

IMG_ICO_UPDATE

protected static final javax.swing.ImageIcon IMG_ICO_UPDATE

IMG_ICO_CANC

protected static final javax.swing.ImageIcon IMG_ICO_CANC

IMG_ICO_ZAMPA

protected static final javax.swing.ImageIcon IMG_ICO_ZAMPA

env

protected Environment env
Per memorizzare i parametri passati al costruttore, in modo che siano visibili anche agli altri metodi.


mioAgentWorkerStore

protected AgentWorkerStore mioAgentWorkerStore

panChePlace

protected PanChePlace panChePlace
Oggetti che mostrano frasi, coič che dipendono dalla lingua.


labAgente

protected javax.swing.JLabel labAgente

labOperaz

protected javax.swing.JLabel labOperaz

tabella

protected javax.swing.JTable tabella

modelloTabella

protected javax.swing.table.TableModel modelloTabella

tabellaScroll

protected javax.swing.JScrollPane tabellaScroll

botStaSto

protected javax.swing.JButton botStaSto

botRemove

protected javax.swing.JButton botRemove

botGoto

protected javax.swing.JButton botGoto

botUpdate

protected javax.swing.JButton botUpdate

botClose

protected javax.swing.JButton botClose
Constructor Detail

ManipolaAgenti

public ManipolaAgenti(Environment env)
Costruzione della finestra per la visualizzazione e modifica del D/P-NS. Il ModelloXNS passato specifica il modello che usa questa finestra. Sarą a lui che verranno richiesti i dati da stampare e a cui saranno inoltrati i comandi.

Method Detail

costruisciFinestra

public void costruisciFinestra()
Vedi in superclasse Finestra il metodo Finestra.costruisciFinestra()

Specified by:
costruisciFinestra in class Finestra

creaBarraMenu

protected void creaBarraMenu()
Vedi in superclasse Finestra il metodo Finestra.creaBarraMenu()

Specified by:
creaBarraMenu in class Finestra

distruggiFinestra

public void distruggiFinestra()
Vedi in superclasse Finestra il metodo Finestra.distruggiFinestra()

Overrides:
distruggiFinestra in class Finestra

impostaFrasi

protected void impostaFrasi()
Vedi in superclasse Finestra il metodo Finestra.impostaFrasi() Definisce/modifica tutte le frasi mostrate a video (nella GUI)

Specified by:
impostaFrasi in class Finestra

impostaBottoni

protected void impostaBottoni(java.lang.Object stato)
Interna, serve per impostare lo stato dei bottoni in base allo stato (di un agente) che viene passato come parametro.


eseguiAzioneGoto

public void eseguiAzioneGoto(PlaceID placeToGoTo)
                      throws java.lang.Exception
Metodo invocato dalla finestra "FinGoto1000" per rendere i dati dell'inserimento. Tali dati sono passati come parametro in un oggetto PlaceID che sarą dato all'agentWorker. Puņ generare un eccezione contenente l'indicazione dell'errore (nella lingua corrente).

Specified by:
eseguiAzioneGoto in interface FinGoto1000Listener
Throws:
java.lang.Exception


Copyright © 2004 Luca Foschini