/[classpath]/classpath/javax/swing/LookAndFeel.java
ViewVC logotype

Diff of /classpath/javax/swing/LookAndFeel.java

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

revision 1.10 by mark, Sat Jul 2 20:32:49 2005 UTC revision 1.11 by trebligd, Wed Jul 13 11:56:02 2005 UTC
# Line 1  Line 1 
1  /* LookAndFeel.java --  /* LookAndFeel.java --
2     Copyright (C) 2002, 2004  Free Software Foundation, Inc.     Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 56  public abstract class LookAndFeel Line 56  public abstract class LookAndFeel
56      return null;      return null;
57    }    }
58    
59      /**
60       * Returns a description of the look and feel.
61       *
62       * @return A description of the look and feel.
63       */
64    public abstract String getDescription();    public abstract String getDescription();
65    
66    public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)    public static Object getDesktopPropertyValue(String systemPropertyName,
67          Object fallbackValue)
68    {    {
69      Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName);      Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName);
70      return value != null ? value : fallbackValue;      return value != null ? value : fallbackValue;
71    }    }
72        
73      /**
74       * Returns an identifier for the look and feel.
75       *
76       * @return An identifier for the look and feel.
77       */
78    public abstract String getID();    public abstract String getID();
79    
80      /**
81       * Returns the name for the look and feel.
82       *
83       * @return The name for the look and feel.
84       */
85    public abstract String getName();    public abstract String getName();
86    
87    /**    /**
# Line 118  public abstract class LookAndFeel Line 134  public abstract class LookAndFeel
134    {    {
135    }    }
136    
137      /**
138       * Returns <code>true</code> if the look and feel is the "native" look and
139       * feel for the current platform, and <code>false</code> otherwise.
140       *
141       * @return A flag indicating whether or not this is the native look and feel
142       *         for the current platform.
143       */
144    public abstract boolean isNativeLookAndFeel();    public abstract boolean isNativeLookAndFeel();
145    
146      /**
147       * Returns <code>true</code> if the look and feel is supported on the
148       * current operating system, and <code>false</code> otherwise.  This
149       * mechanism is provided so that it is possible to prevent a look and feel
150       * from being used on some operating systems (usually for legal, not
151       * technical, reasons).
152       *
153       * @return A flag indicating whether or not the look and feel is supported
154       *         on the current platform.
155       */
156    public abstract boolean isSupportedLookAndFeel();    public abstract boolean isSupportedLookAndFeel();
157    
158    /**    /**

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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