SOMA.gui
Class PanLocRem

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bySOMA.gui.Pannello
                      extended bySOMA.gui.PanLocRem
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, LinguaListener, java.awt.MenuContainer, java.io.Serializable

public class PanLocRem
extends Pannello

See Also:
Serialized Form

Nested Class Summary
(package private)  class PanLocRem.ListRadio
          CLASSE INTERNA PER ASCOLTARE LA PRESSIONE DEI BOTTONI "RADIO" DELLA FINESTRA.
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  Anagrafe anagrafe
           
protected  PlaceID dominioIniziale
           
protected  javax.swing.JLabel labRadioRemDom
           
protected  javax.swing.JLabel labRadioRemIP
           
protected  javax.swing.JLabel labRadioRemPo
           
static int PAN_LOC_REM_ALL
           
static int PAN_LOC_REM_DOM
           
static int PAN_NO_LOC_REM
          Costanti da passare al costruttore per indicare il tipo di pannello da creare.
protected  int panNoLocRem
          Oggetti passati al costruttore del pannello.
protected  PanPlace panPlaceLocale
           
protected  javax.swing.JRadioButton radioLocale
          Oggetti che mostrano frasi, coič che dipendono dalla lingua.
protected  javax.swing.JRadioButton radioNessun
          Oggetti che mostrano frasi, coič che dipendono dalla lingua.
protected  javax.swing.JRadioButton radioRemoto
          Oggetti che mostrano frasi, coič che dipendono dalla lingua.
protected  javax.swing.JTextField txtRemDom
           
protected  javax.swing.JTextField txtRemIP
           
protected  javax.swing.JTextField txtRemPort
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PanLocRem(int panNoLocRem)
          Costruisce un pannello "locale-remoto".
PanLocRem(int panNoLocRem, Anagrafe anagrafe)
          Costruisce un pannello "locale-remoto".
PanLocRem(int panNoLocRem, Anagrafe anagrafe, PlaceID dominioIniziale)
          Costruisce un pannello "locale-remoto".
 
Method Summary
 void abilitami()
          Permette la riabilitazione degli elementi contenuti nel pannello (dopo una "disabilitami").
 void addActionListener(java.awt.event.ActionListener AL)
          Usate per la pressione di INVIO sulle aree di testo
 java.lang.String cheIndirIP()
          Rende l'indirizzo IP del place/dominio prelevandolo dai campi relativi alla voce selezionata
 java.lang.String cheNomeDom()
          Rende il nome del dominio prelevandolo dai campi relativi alla voce selezionata
 java.lang.String cheNomePlace()
          Rende il nome del place prelevandolo dai campi relativi alla voce selezionata Un place puņ essere sempre il place di default del dominio.
 java.lang.String chePorta()
          Rende il numero di porta del dominio/place prelevandolo dai campi relativi alla voce selezionata
 void costruisciPannello()
          Costruzione del pannello
 void disabilitami()
          Permette la disabilitazione degli elementi contenuti nel pannello.
protected  void eseguiAzione(java.lang.String actionCommand)
          Metodo interno.
protected  void impostaFrasi()
          Definisce/modifica tutte le frasi mostrate a video (nella GUI).
 void removeActionListener(java.awt.event.ActionListener AL)
           
 
Methods inherited from class SOMA.gui.Pannello
distruggimi, FineCostruisciPannello, FineImpostaFrasi, linguaCambiata
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAN_NO_LOC_REM

public static final int PAN_NO_LOC_REM
Costanti da passare al costruttore per indicare il tipo di pannello da creare.

See Also:
Constant Field Values

PAN_LOC_REM_DOM

public static final int PAN_LOC_REM_DOM
See Also:
Constant Field Values

PAN_LOC_REM_ALL

public static final int PAN_LOC_REM_ALL
See Also:
Constant Field Values

radioNessun

protected javax.swing.JRadioButton radioNessun
Oggetti che mostrano frasi, coič che dipendono dalla lingua.


radioLocale

protected javax.swing.JRadioButton radioLocale
Oggetti che mostrano frasi, coič che dipendono dalla lingua.


radioRemoto

protected javax.swing.JRadioButton radioRemoto
Oggetti che mostrano frasi, coič che dipendono dalla lingua.


panPlaceLocale

protected PanPlace panPlaceLocale

labRadioRemDom

protected javax.swing.JLabel labRadioRemDom

labRadioRemIP

protected javax.swing.JLabel labRadioRemIP

labRadioRemPo

protected javax.swing.JLabel labRadioRemPo

txtRemDom

protected javax.swing.JTextField txtRemDom

txtRemIP

protected javax.swing.JTextField txtRemIP

txtRemPort

protected javax.swing.JTextField txtRemPort

panNoLocRem

protected int panNoLocRem
Oggetti passati al costruttore del pannello.


anagrafe

protected Anagrafe anagrafe

dominioIniziale

protected PlaceID dominioIniziale
Constructor Detail

PanLocRem

public PanLocRem(int panNoLocRem)
Costruisce un pannello "locale-remoto". Il parametro "panNoLocRem" puņ contenere "PAN_NO_LOC_REM" per avere un pannello con le DUE sole scelte "nessuno/remoto" oppure "PAN_LOC_REM_DOM" o "PAN_LOC_REM_DOM" per il "remoto" soltanto (inserire un qualsiasi place, e non solo dominio). Con questo costruttore, il combo-box "locale" sarą SEMPRE DISABILITATO!


PanLocRem

public PanLocRem(int panNoLocRem,
                 Anagrafe anagrafe)
Costruisce un pannello "locale-remoto". Il parametro "panNoLocRem" puņ contenere "PAN_NO_LOC_REM" per avere un pannello con le tre scelte "nessuno/locale/remoto" oppure "PAN_LOC_REM_DOM" per avere le due sole scelte "locale/remoto" o "PAN_LOC_REM_DOM" per inserire un qualsiasi place (e non solo dominio). Se l'oggetto "Anagrafe" NON č "null", si abiliterą il combo-box "locale" che conterrą i dati dei place richiesti all'Anagrafe stessa.


PanLocRem

public PanLocRem(int panNoLocRem,
                 Anagrafe anagrafe,
                 PlaceID dominioIniziale)
Costruisce un pannello "locale-remoto". Simile al costruttore precedente; in pił, il parametro "dominioIniziale" permette di impostare gią un dominio iniziale nella sottovoce "locale".

Method Detail

costruisciPannello

public void costruisciPannello()
Costruzione del pannello

Specified by:
costruisciPannello in class Pannello

disabilitami

public void disabilitami()
Permette la disabilitazione degli elementi contenuti nel pannello.

Overrides:
disabilitami in class Pannello

abilitami

public void abilitami()
Permette la riabilitazione degli elementi contenuti nel pannello (dopo una "disabilitami").

Overrides:
abilitami in class Pannello

impostaFrasi

protected void impostaFrasi()
Definisce/modifica tutte le frasi mostrate a video (nella GUI).

Specified by:
impostaFrasi in class Pannello

eseguiAzione

protected void eseguiAzione(java.lang.String actionCommand)
Metodo interno. Una volta che l'utente ha impostato un "radio" su una delle possibili voci (nessuno/locale/remoto) questo metodo permette di abilitare tutti i "campi" (text-field e altro) che sono "associati" alla voce scelta e contemporaneamente di disabilitare tutti quelli delle voci non selezionate, in modo che l'utente non possa andare a scriversi dentro niente e che, essendo disabilitati, appaiano in un colore differente da quelli abilitati.


cheNomeDom

public java.lang.String cheNomeDom()
Rende il nome del dominio prelevandolo dai campi relativi alla voce selezionata


cheNomePlace

public java.lang.String cheNomePlace()
Rende il nome del place prelevandolo dai campi relativi alla voce selezionata Un place puņ essere sempre il place di default del dominio. Questo metodo renderą un place NON di default soltanto se si era indicato "PAN_LOC_REM_ALL" al costruttore! In tal caso alla voce "locale" puņ essere scelto un place tra tutti quelli creati localmente (di default o meno) o specificare una stringa (dominio+place) nel "remoto".


cheIndirIP

public java.lang.String cheIndirIP()
Rende l'indirizzo IP del place/dominio prelevandolo dai campi relativi alla voce selezionata


chePorta

public java.lang.String chePorta()
Rende il numero di porta del dominio/place prelevandolo dai campi relativi alla voce selezionata


addActionListener

public void addActionListener(java.awt.event.ActionListener AL)
Usate per la pressione di INVIO sulle aree di testo


removeActionListener

public void removeActionListener(java.awt.event.ActionListener AL)


Copyright © 2004 Luca Foschini