Creado el movimiento con escape y enter en la vista de Estado resultado, se extendera a todo el resto el nuevo metodo por ser mas limpio
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
package danielcortes.xyz.controllers;
|
||||
|
||||
import danielcortes.xyz.controllers.actions.NextAction;
|
||||
import danielcortes.xyz.controllers.actions.MoveToAction;
|
||||
import danielcortes.xyz.data.DAOManager;
|
||||
import danielcortes.xyz.models.caja.Caja;
|
||||
import danielcortes.xyz.models.egreso.Egreso;
|
||||
@@ -108,9 +108,9 @@ public class EgresosController {
|
||||
this.view.getDescripcionField().getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("ENTER"), "nextField");
|
||||
this.view.getTipoCombo().getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("ENTER"), "save");
|
||||
|
||||
this.view.getNroField().getActionMap().put("nextField", new NextAction(this.view.getDescripcionField()));
|
||||
this.view.getDescripcionField().getActionMap().put("nextField", new NextAction(this.view.getValorField()));
|
||||
this.view.getValorField().getActionMap().put("nextField", new NextAction(this.view.getTipoCombo()));
|
||||
this.view.getNroField().getActionMap().put("nextField", new MoveToAction(this.view.getDescripcionField()));
|
||||
this.view.getDescripcionField().getActionMap().put("nextField", new MoveToAction(this.view.getValorField()));
|
||||
this.view.getValorField().getActionMap().put("nextField", new MoveToAction(this.view.getTipoCombo()));
|
||||
this.view.getTipoCombo().getActionMap().put("save", new GuardarAction(this));
|
||||
|
||||
this.view.getEgresosTable().getSelectionModel().addListSelectionListener(e -> updateButtonsEnabled());
|
||||
|
||||
Reference in New Issue
Block a user