Class ChangeSelect
java.lang.Object
ChangeSelect
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
public class ChangeSelect
- extends java.lang.Object
- implements java.awt.event.ActionListener
clase encargada de interactuar y cambiar el varlor de las componentes
Constructor Summary |
ChangeSelect(Circuito cir,
javax.swing.JLabel label,
javax.swing.JTextField quote)
Costructor de la clase |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Metodo que se usa para detectar las acciones del raton al ejecutarse este metodo |
void |
updateLabel()
Metodo que permite cambiar el texto y el valor de la componente |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
circu
private Circuito circu
texto
private javax.swing.JLabel texto
cuadro
private javax.swing.JTextField cuadro
botonactivo
private boolean botonactivo
activatexto
private boolean activatexto
puntoclick
private java.awt.Point puntoclick
TIERRA
private final int TIERRA
- See Also:
- Constant Field Values
RESISTENCIA
private final int RESISTENCIA
- See Also:
- Constant Field Values
FUENTE
private final int FUENTE
- See Also:
- Constant Field Values
componente
private Componentes componente
ChangeSelect
ChangeSelect(Circuito cir,
javax.swing.JLabel label,
javax.swing.JTextField quote)
- Costructor de la clase
- Parameters:
cir
- Circuito usadolabel
- texto con los datosquote
- cuadro con el texto
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Metodo que se usa para detectar las acciones del raton al ejecutarse este metodo
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
e
- parametro que es igual al evento hecha por el usuario al crearse esta clase
updateLabel
public void updateLabel()
- Metodo que permite cambiar el texto y el valor de la componente