import org.mxchange.jcontactsbusiness.model.opening_time.dayofweek.DayOfTheWeek;
import org.mxchange.jfinancials.beans.BaseFinancialsBean;
import org.mxchange.jproduct.model.payment.PaymentType;
+import org.mxchange.jproduct.model.product.agegroup.AgeGroup;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
super();
}
+ /**
+ * Returns an array with all age groups
+ * <p>
+ * @return An array with all age groups
+ */
+ public AgeGroup[] getAgeGroups() {
+ return AgeGroup.values();
+ }
+
/**
* Returns an array of all days of the week
* <p>
// Is a product set?
if (product instanceof Product) {
+ // Is product number given?
+ if (product.getProductNumber() != null) {
+ // Prepend it
+ sb.append(this.getMessageFromBundle("NUMBER")).append(" "); //NOI18N
+ sb.append(product.getProductNumber());
+ sb.append(", "); //NOI18N
+ }
+
// Add name and price
sb.append(this.getMessageFromBundle(product.getProductI18nKey()));
+
+ // Is there any age group?
+ if (product.getProductAgeGroup() != null) {
+ // Show it
+ sb.append(", ").append(this.getMessageFromBundle(product.getProductAgeGroup().getI18nKey())); //NOI18N
+ }
+
+ // Is there any size?
+ if ((product.getProductSize() != null) && (!product.getProductSize().isEmpty())) {
+ // Show size
+ sb.append(", ").append(this.getMessageFromBundle("SIZE")).append(product.getProductSize()); //NOI18N
+ }
+
+ // Add price
sb.append(" ("); //NOI18N
- sb.append(this.localizationController.formatCurrency(product.getProductGrossPrice()));
+ sb.append(this.localizationController.formatCurrency(product.getProductGrossPrice().floatValue()));
sb.append(" "); //NOI18N
sb.append(product.getProductCurrencyCode());
sb.append(")"); //NOI18N