/[classpath]/classpath/java/beans/FeatureDescriptor.java
ViewVC logotype

Diff of /classpath/java/beans/FeatureDescriptor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by uid67440, Fri Dec 26 19:39:54 2003 UTC revision 1.8 by rschuster, Thu Apr 28 20:06:49 2005 UTC
# Line 1  Line 1 
1  /* java.beans.FeatureDescriptor  /* java.beans.FeatureDescriptor
2     Copyright (C) 1998 Free Software Foundation, Inc.     Copyright (C) 1998, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 57  import java.util.Hashtable; Line 57  import java.util.Hashtable;
57   *   *
58   * @author John Keiser   * @author John Keiser
59   * @since 1.1   * @since 1.1
  * @version 1.1.0, 31 May 1998  
60   */   */
61    
62  public class FeatureDescriptor  public class FeatureDescriptor
# Line 99  public class FeatureDescriptor Line 98  public class FeatureDescriptor
98    
99    /**    /**
100     * Get the localized (display) name of this feature.     * Get the localized (display) name of this feature.
101       *
102       * @returns The localized display name of this feature or falls
103       * back to the programmatic name.
104     */     */
105    public String getDisplayName()    public String getDisplayName()
106    {    {
107      return displayName;      return (displayName == null) ? name : displayName;
108    }    }
109    
110    /**    /**
# Line 117  public class FeatureDescriptor Line 119  public class FeatureDescriptor
119    
120    /**    /**
121     * Get the localized short description for this feature.     * Get the localized short description for this feature.
122       *
123       * @returns A short localized description of this feature or
124       * what <code>getDisplayName</code> returns in case, that no short description
125       * is available.
126     */     */
127    public String getShortDescription()    public String getShortDescription()
128    {    {
129      return shortDescription;      return (shortDescription == null) ? getDisplayName() : shortDescription;
130    }    }
131    
132    /**    /**

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26