ItEr26S13AltaEtiquetasTipoEtiqueta: Save and continue

This commit is contained in:
Diego Pino Garcia 2009-09-16 19:51:48 +02:00 committed by Javier Moran Rua
parent fc1c47ee38
commit ecdf724cfe
2 changed files with 12 additions and 0 deletions

View file

@ -142,6 +142,17 @@ public class LabelTypeCRUDController extends GenericForwardComposer {
}
}
/**
* Save current {@link LabelType} and continue
*/
public void saveAndContinue() {
try {
labelTypeModel.confirmSave();
} catch (ValidationException e) {
showInvalidValues(e);
}
}
/**
* Show all {@link LabelType}
*/

View file

@ -35,6 +35,7 @@
<!-- Control buttons -->
<hbox>
<button label="${i18n:_('Save')}" onClick="controller.save()" />
<button label="${i18n:_('Save &amp; Continue')}" onClick="controller.saveAndContinue()" />
<button label="${i18n:_('Cancel')}"
onClick="controller.cancel()" />
</hbox>