portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/om/impl DisplayNameImpl.java
Date Fri, 17 Oct 2003 19:41:51 GMT
weaver      2003/10/17 12:41:51

  Modified:    portal/src/java/org/apache/jetspeed/om/impl
                        DisplayNameImpl.java
  Log:
  - Added additional convenience methods
  - Defaults to Jetspeed's default Locale
  
  Revision  Changes    Path
  1.2       +23 -2     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/om/impl/DisplayNameImpl.java
  
  Index: DisplayNameImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/om/impl/DisplayNameImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DisplayNameImpl.java	10 Oct 2003 05:12:09 -0000	1.1
  +++ DisplayNameImpl.java	17 Oct 2003 19:41:51 -0000	1.2
  @@ -55,6 +55,7 @@
   
   import java.util.Locale;
   
  +import org.apache.jetspeed.Jetspeed;
   import org.apache.jetspeed.om.common.MutableDisplayName;
   
   /**
  @@ -75,11 +76,13 @@
       /**
        * Links this DisplayName to the object that it describes
        */
  -  //  protected long objectId;
  +    //  protected long objectId;
   
       public DisplayNameImpl()
       {
           super();
  +        // always init to default locale
  +        locale=Jetspeed.getDefaultLocale();
       }
   
       /**
  @@ -125,7 +128,11 @@
       public void setLocale(Locale locale)
       {
           this.locale = locale;
  +    }
   
  +    public void setLanguage(String lang)
  +    {
  +        this.locale = new Locale(lang);
       }
   
       /**
  @@ -134,6 +141,20 @@
       public String getType()
       {
           return type;
  +    }
  +
  +    /** 
  +     * <p>
  +     * setType
  +     * </p>
  +     * 
  +     * @see org.apache.jetspeed.om.common.MutableDisplayName#setType(java.lang.String)
  +     * @param type
  +     */
  +    public void setType(String type)
  +    {
  +        this.type = type;
  +
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message