From 1f0e30b40653674646409e7d62fce54b31ea8b7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 25 Apr 2016 15:29:18 +0200 Subject: [PATCH] added CSS style classes, similar as in juser-core --- .../status/CustomerAccountStatus.java | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java b/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java index 2b34839..276f0a8 100644 --- a/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java +++ b/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java @@ -28,31 +28,38 @@ public enum CustomerAccountStatus implements Serializable { /** * Unconfirmed (default) */ - UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N + UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED", "customer_status_unconfirmed"), //NOI18N /** * Confirmed (email address validated) */ - CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N + CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED", "customer_status_confirmed"), //NOI18N /** * Locked (maybe violated T&C) */ - LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED"); //NOI18N + LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED", "customer_status_locked"); //NOI18N /** * Message key */ private final String messageKey; + /** + * CSS style class + */ + private final String styleClass; + /** * Constructor with i18n translation key *

* @param messageKey Message key (i18n) + * @param styleClass CSS style class */ - private CustomerAccountStatus (final String messageKey) { + private CustomerAccountStatus (final String messageKey, final String styleClass) { // Set it here this.messageKey = messageKey; + this.styleClass = styleClass; } /** @@ -63,4 +70,14 @@ public enum CustomerAccountStatus implements Serializable { public String getMessageKey () { return this.messageKey; } + + /** + * Getter for CSS style class + *

+ * @return CSS style class + */ + public String getStyleClass () { + return this.styleClass; + } + } -- 2.39.5