Imported GNU Classpath 0.20
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
This commit is contained in:
parent
bcb36c3e02
commit
2127637945
444 changed files with 75778 additions and 30731 deletions
|
@ -396,6 +396,58 @@ public class PropertyChangeSupport implements Serializable
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fire an indexed property change event. This will only fire
|
||||
* an event if the old and new values are not equal and not null.
|
||||
* @param name the name of the property which changed
|
||||
* @param index the index of the property which changed
|
||||
* @param oldValue the old value of the property
|
||||
* @param newValue the new value of the property
|
||||
* @since 1.5
|
||||
*/
|
||||
public void fireIndexedPropertyChange(String name, int index,
|
||||
Object oldValue, Object newValue)
|
||||
{
|
||||
// Argument checking is done in firePropertyChange(PropertyChangeEvent) .
|
||||
firePropertyChange(new IndexedPropertyChangeEvent(source, name,
|
||||
oldValue, newValue,
|
||||
index));
|
||||
}
|
||||
|
||||
/**
|
||||
* Fire an indexed property change event. This will only fire
|
||||
* an event if the old and new values are not equal.
|
||||
* @param name the name of the property which changed
|
||||
* @param index the index of the property which changed
|
||||
* @param oldValue the old value of the property
|
||||
* @param newValue the new value of the property
|
||||
* @since 1.5
|
||||
*/
|
||||
public void fireIndexedPropertyChange(String name, int index,
|
||||
int oldValue, int newValue)
|
||||
{
|
||||
if (oldValue != newValue)
|
||||
fireIndexedPropertyChange(name, index, Integer.valueOf(oldValue),
|
||||
Integer.valueOf(newValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Fire an indexed property change event. This will only fire
|
||||
* an event if the old and new values are not equal.
|
||||
* @param name the name of the property which changed
|
||||
* @param index the index of the property which changed
|
||||
* @param oldValue the old value of the property
|
||||
* @param newValue the new value of the property
|
||||
* @since 1.5
|
||||
*/
|
||||
public void fireIndexedPropertyChange(String name, int index,
|
||||
boolean oldValue, boolean newValue)
|
||||
{
|
||||
if (oldValue != newValue)
|
||||
fireIndexedPropertyChange(name, index, Boolean.valueOf(oldValue),
|
||||
Boolean.valueOf(newValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tell whether the specified property is being listened on or not. This
|
||||
* will only return <code>true</code> if there are listeners on all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue