/[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.6 by mark, Sat Jun 26 16:07:01 2004 UTC revision 1.7 by mark, Thu Jul 22 19:45:39 2004 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package javax.swing;  package javax.swing;
39    
40    import java.awt.Component;
41    import java.awt.Toolkit;
42  import javax.swing.text.JTextComponent;  import javax.swing.text.JTextComponent;
43    
44    
# Line 60  public abstract class LookAndFeel Line 62  public abstract class LookAndFeel
62    public abstract String getName();    public abstract String getName();
63    
64    /**    /**
65       * Returns true when the Look and Feel supports window decorations,
66       * false others. This method returns always false and needs to be overwritten
67       * when the derived Look and Feel supports this.
68       *
69       * @return false
70       *
71       * @since 1.4
72       */
73      public boolean getSupportsWindowDecorations()
74      {
75        return false;
76      }
77      
78      /**
79     * UIManager.setLookAndFeel calls this method before the first call     * UIManager.setLookAndFeel calls this method before the first call
80     * (and typically the only call) to getDefaults().     * (and typically the only call) to getDefaults().
81     */     */
# Line 141  public abstract class LookAndFeel Line 157  public abstract class LookAndFeel
157    }    }
158    
159    /**    /**
160       * Invoked when the user attempts an invalid operation. The default implement
161       * just beeps. Subclasses that wish to change this need to override this
162       * method.
163       *
164       * @param component the component the error occured in
165       */
166      public void provideErrorFeedback(Component component)
167      {
168        Toolkit.getDefaultToolkit().beep();
169      }
170    
171      /**
172     * Returns a string that displays and identifies this object's properties.     * Returns a string that displays and identifies this object's properties.
173     *     *
174     * @return the string "LookAndFeel"     * @return the string "LookAndFeel"

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

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