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

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

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

revision 1.4 by mark, Sat Jun 26 16:06:49 2004 UTC revision 1.5 by mark, Thu Jul 22 19:45:39 2004 UTC
# Line 131  public class JFormattedTextField extends Line 131  public class JFormattedTextField extends
131    public static final int REVERT = 2;    public static final int REVERT = 2;
132    public static final int PERSIST = 3;    public static final int PERSIST = 3;
133    
134      private Object value;
135      
136    public JFormattedTextField ()    public JFormattedTextField ()
137    {    {
138      throw new InternalError ("not implemented");      throw new InternalError ("not implemented");
# Line 158  public class JFormattedTextField extends Line 160  public class JFormattedTextField extends
160    
161    public JFormattedTextField (Object value)    public JFormattedTextField (Object value)
162    {    {
163      throw new InternalError ("not implemented");      this.value = value;
164    }    }
165    
166    public void commitEdit ()    public void commitEdit ()
# Line 189  public class JFormattedTextField extends Line 191  public class JFormattedTextField extends
191    
192    public String getUIClassID ()    public String getUIClassID ()
193    {    {
194      throw new InternalError ("not implemented");      return "FormattedTextFieldUI";
195    }    }
196    
197    public Object getValue ()    public Object getValue ()
198    {    {
199      throw new InternalError ("not implemented");      return value;
200    }    }
201    
202    protected void invalidEdit ()    protected void invalidEdit ()
# Line 212  public class JFormattedTextField extends Line 214  public class JFormattedTextField extends
214      throw new InternalError ("not implemented");      throw new InternalError ("not implemented");
215    }    }
216    
217    public void setDocument (Document document)    public void setDocument(Document newdoc)
218    {    {
219      throw new InternalError ("not implemented");      Document document = getDocument();
220    
221        if (document == newdoc)
222          return;
223        
224        setDocument(newdoc);
225        firePropertyChange("document", document, newdoc);
226    }    }
227    
228    public void setLostFocusBehavior (int behavior)    public void setLostFocusBehavior (int behavior)
# Line 232  public class JFormattedTextField extends Line 240  public class JFormattedTextField extends
240      throw new InternalError ("not implemented");      throw new InternalError ("not implemented");
241    }    }
242    
243    public void setValue (Object value)    public void setValue (Object newValue)
244    {    {
245      throw new InternalError ("not implemented");      value = newValue;
246    }    }
247  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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