Imported GNU Classpath 0.19 + gcj-import-20051115.

* sources.am: Regenerated.
       * Makefile.in: Likewise.
       * scripts/makemake.tcl: Use glob -nocomplain.

From-SVN: r107049
This commit is contained in:
Mark Wielaard 2005-11-15 23:20:01 +00:00
parent 02e549bfaa
commit 8f523f3a10
1241 changed files with 97711 additions and 25284 deletions

View file

@ -42,6 +42,8 @@ import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Rectangle;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleStateSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.Element;
@ -91,6 +93,35 @@ import javax.swing.text.View;
public class JTextArea extends JTextComponent
{
/**
* Provides accessibility support for <code>JTextArea</code>.
*
* @author Roman Kennke (kennke@aicas.com)
*/
protected class AccessibleJTextArea extends AccessibleJTextComponent
{
/**
* Creates a new <code>AccessibleJTextArea</code> object.
*/
protected AccessibleJTextArea()
{
super();
}
/**
* Returns the accessible state of this <code>AccessibleJTextArea</code>.
*
* @return the accessible state of this <code>AccessibleJTextArea</code>
*/
public AccessibleStateSet getAccessibleStateSet()
{
AccessibleStateSet state = super.getAccessibleStateSet();
// TODO: Figure out what state must be added here to the super's state.
return state;
}
}
/**
* Compatible with Sun's JDK
*/
@ -208,6 +239,8 @@ public class JTextArea extends JTextComponent
/* This shouldn't happen in theory -- but, if it does... */
throw new RuntimeException("Unexpected exception occurred.", exception);
}
if (toAppend != null && toAppend.length() > 0)
revalidate();
}
/**
@ -312,8 +345,12 @@ public class JTextArea extends JTextComponent
{
if (columns < 0)
throw new IllegalArgumentException();
this.columns = columns;
if (columns != this.columns)
{
this.columns = columns;
revalidate();
}
}
/**
@ -337,8 +374,12 @@ public class JTextArea extends JTextComponent
{
if (rows < 0)
throw new IllegalArgumentException();
this.rows = rows;
if (rows != this.rows)
{
this.rows = rows;
revalidate();
}
}
/**
@ -547,4 +588,16 @@ public class JTextArea extends JTextComponent
return new Dimension(Math.max(reqWidth, neededWidth),
Math.max(reqHeight, neededHeight));
}
/**
* Returns the accessible context associated with the <code>JTextArea</code>.
*
* @return the accessible context associated with the <code>JTextArea</code>
*/
public AccessibleContext getAccessibleContext()
{
if (accessibleContext == null)
accessibleContext = new AccessibleJTextArea();
return accessibleContext;
}
}