acabando presupuesto

This commit is contained in:
2025-10-16 21:46:02 +02:00
parent ff9c04afb6
commit ea8a005cde
11 changed files with 349 additions and 139 deletions

View File

@ -7,11 +7,29 @@ import jakarta.persistence.*;
public class MaquetacionMatrices {
public enum Formato{
A5, _17x24_, A4
A5, _17x24_, A4;
private final String label;
Formato() {
this.label = this.name().indexOf('_') > -1 ? this.name().replace("_", "") + " mm" : this.name();
}
public String getLabel() {
return label;
}
}
public enum FontSize{
small, medium, big
small("presupuesto.maquetacion.cuerpo-texto-pequeño"),
medium("presupuesto.maquetacion.cuerpo-texto-medio"),
big("presupuesto.maquetacion.cuerpo-texto-grande");
private final String messageKey;
FontSize(String messageKey) {
this.messageKey = messageKey;
}
public String getMessageKey() {
return messageKey;
}
}
@Id