1 10 package net.sourceforge.ejosa.piggybank.presentation.enhydra; 11 12 import java.util.*; 13 14 import org.openuss.presentation.enhydra.framework.*; 15 16 17 23 public class FoundationSessionData extends BaseSessionData { 24 27 public static final String SESSION_KEY = "FoundationSessionData"; 28 29 32 33 protected Locale myLocale = new Locale("en", "US"); 35 protected String userMessage = null; 36 37 40 public void setLocale(Locale locale) { 41 this.myLocale = locale; 42 } 43 44 47 public Locale getLocale() { 48 return this.myLocale; 49 } 50 51 55 public void setUserMessage(String msg) { 56 this.userMessage = msg; 57 } 58 59 64 public String getAndClearUserMessage() { 65 String msg = this.userMessage; 66 this.userMessage = null; 67 68 return msg; 69 } 70 } | Popular Tags |