]> git.mxchange.org Git - jcustomer-core.git/commitdiff
added CSS style classes, similar as in juser-core
authorRoland Häder <roland@mxchange.org>
Mon, 25 Apr 2016 13:29:18 +0000 (15:29 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 25 Apr 2016 13:29:18 +0000 (15:29 +0200)
src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java

index 2b348393e0c49922504df4dfe3988f3c6a68b7c2..276f0a8a5af17923df3ac33f713d4240f65ad745 100644 (file)
@@ -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
         * <p>
         * @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
+        * <p>
+        * @return CSS style class
+        */
+       public String getStyleClass () {
+               return this.styleClass;
+       }
+
 }