Imported Classpath 0.18.

* sources.am, Makefile.in: Updated.
	* Makefile.am (nat_source_files): Removed natProxy.cc.
	* java/lang/reflect/natProxy.cc: Removed.
	* gnu/classpath/jdwp/VMFrame.java,
	gnu/classpath/jdwp/VMIdManager.java,
	gnu/classpath/jdwp/VMVirtualMachine.java,
	java/lang/reflect/VMProxy.java: New files.

2005-09-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* scripts/makemake.tcl (verbose): Add gnu/java/awt/peer/qt to BC
	list.

2005-09-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/net/DefaultContentHandlerFactory.java (getContent):
	Remove ClasspathToolkit references.

2005-09-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/awt/xlib/XCanvasPeer.java: Add new peer methods.
	* gnu/awt/xlib/XFramePeer.java: Likewise.
	* gnu/awt/xlib/XGraphicsConfiguration.java: Likewise.

2005-09-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* Makefile.am (libgcjawt_la_SOURCES): Remove jawt.c.  Add
	classpath/native/jawt/jawt.c.
	* Makefile.in: Regenerate.
	* jawt.c: Remove file.
	* include/Makefile.am (tool_include__HEADERS): Remove jawt.h and
	jawt_md.h.  Add ../classpath/include/jawt.h and
	../classpath/include/jawt_md.h.
	* include/Makefile.in: Regenerate.
	* include/jawt.h: Regenerate.
	* include/jawt_md.h: Regenerate.

From-SVN: r104586
This commit is contained in:
Tom Tromey 2005-09-23 21:31:04 +00:00
parent 9b044d1951
commit 1ea63ef8be
544 changed files with 34724 additions and 14512 deletions

View file

@ -1,5 +1,5 @@
/* AttributeSet.java --
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -39,34 +39,153 @@ package javax.swing.text;
import java.util.Enumeration;
/**
* A set of attributes. An attribute has a key and a value. They typically
* describe features of a piece of text that make up its graphical
* representation.
*
* An <code>AttributeSet</code> may have a resolving parent,
* that is another <code>AttributeSet</code> that is searched for attribute
* keys that are not stored locally in this <code>AttributeSet</code>.
*
* @author original author unknown
* @author Roman Kennke (roman@kennke.org)
*/
public interface AttributeSet
{
/**
* Used as keys to identify character-run attributes.
*/
static interface CharacterAttribute
{
}
/**
* Used as keys to identify color attributes.
*/
static interface ColorAttribute
{
}
/**
* Used as keys to identify font attributes.
*/
static interface FontAttribute
{
}
/**
* Used as keys to identify paragraph level attributes.
*/
static interface ParagraphAttribute
{
}
/**
* Key of the attribute that is used to describe the name of an
* <code>AttributeSet</code>.
*/
Object NameAttribute = StyleConstants.NameAttribute;
/**
* Key of the attribute that is used to identify the resolving parent of
* an <code>AttributeSet</code>.
*/
Object ResolveAttribute = StyleConstants.ResolveAttribute;
/**
* Returns <code>true</code> if this <code>AttributeSet</code> contains
* an attribute with the specified <code>name</code> and <code>value</code>,
* <code>false</code> otherwise.
*
* @param name the name of the requested attribute
* @param the value of the requested attribute
*
* @return <code>true</code> if this <code>AttributeSet</code> contains
* an attribute with the specified <code>name</code> and
* <code>value</code>, <code>false</code> otherwise
*/
boolean containsAttribute(Object name, Object value);
/**
* Returns <code>true</code> of this <code>AttributeSet</code> contains all
* of the specified <code>attributes</code>.
*
* @param attributes the requested attributes
*
* @return <code>true</code> of this <code>AttributeSet</code> contains all
* of the specified <code>attributes</code>
*/
boolean containsAttributes(AttributeSet attributes);
/**
* Creates and returns a copy of this <code>AttributeSet</code>.
*
* @return a copy of this <code>AttributeSet</code>
*/
AttributeSet copyAttributes();
/**
* Returns the attribute with the specified <code>key</code> or
* <code>null</code> if no such attribute is defined in this
* <code>AttributeSet</code> and its resolving parents.
*
* @param key the key of the attribute that is looked up
*
* @return the attribute with the specified <code>key</code> or
* <code>null</code> if no such attribute is defined in this
* <code>AttributeSet</code> and its resolving parents
*/
Object getAttribute(Object key);
/**
* Returns the number of attributes that are stored locally in this
* <code>AttributeSet</code>.
*
* @return the number of attributes that are stored locally in this
* <code>AttributeSet</code>
*/
int getAttributeCount();
/**
* Returns the names of the attributes that are stored in this
* <code>AttributeSet</code>.
*
* @return the names of the attributes that are stored in this
* <code>AttributeSet</code>
*/
Enumeration getAttributeNames();
/**
* Returns the resolving parent of this <code>AttributeSet</code>.
* If a key is not stored locally, then a {@link #getAttribute(Object)}
* request is resolved up in the resolving parent of this
* <code>AttributeSet</code>.
*
* @return the resolving parent of this <code>AttributeSet</code>
*/
AttributeSet getResolveParent();
/**
* Returns <code>true</code> if an attribute with the specified name is
* defined locally in this <code>AttributeSet</code>, without resolving
* through the resolving parents.
*
* @return <code>true</code> if an attribute with the specified name is
* defined locally in this <code>AttributeSet</code>
*/
boolean isDefined(Object attrName);
/**
* Returns <code>true</code> if all of the attributes in <code>attr</code>
* are equal to the attributes in this <code>AttributeSet</code>,
* <code>false</code> otherwise.
*
* @param attr the attributes to be compared to <code>this</code>
*
* @return <code>true</code> if all of the attributes in <code>attr</code>
* are equal to the attributes in this <code>AttributeSet</code>,
* <code>false</code> otherwise
*/
boolean isEqual(AttributeSet attr);
}