summaryrefslogtreecommitdiff
path: root/javax/swing/JComponent.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-06-26 09:41:33 +0000
committerRoman Kennke <roman@kennke.org>2006-06-26 09:41:33 +0000
commit5b8e21a65eac8bc779e10ccea9ffc1becfea5d3c (patch)
tree2ba4edc4ca3290f77c9e12741b1e415280da3c00 /javax/swing/JComponent.java
parentbba40592bb17e77928d7b2a9f849c9b819bcc013 (diff)
downloadclasspath-5b8e21a65eac8bc779e10ccea9ffc1becfea5d3c.tar.gz
2006-06-26 Roman Kennke <kennke@aicas.com>
* javax/swing/JComponent.java (firePropertyChange(String,int,int)): New method. Overrides Component method and makes it public. (firePropertyChange(String,boolean,boolean)): Likewise.
Diffstat (limited to 'javax/swing/JComponent.java')
-rw-r--r--javax/swing/JComponent.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index 063c00df4..d60973231 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -983,6 +983,42 @@ public abstract class JComponent extends Container implements Serializable
vetoableChangeSupport.fireVetoableChange(propertyName, oldValue, newValue);
}
+
+ /**
+ * Fires a property change for a primitive integer property.
+ *
+ * @param property the name of the property
+ * @param oldValue the old value of the property
+ * @param newValue the new value of the property
+ *
+ * @specnote This method is implemented in
+ * {@link Component#firePropertyChange(String, int, int)}. It is
+ * only here because it is specified to be public, whereas the
+ * Component method is protected.
+ */
+ public void firePropertyChange(String property, int oldValue, int newValue)
+ {
+ super.firePropertyChange(property, oldValue, newValue);
+ }
+
+ /**
+ * Fires a property change for a primitive boolean property.
+ *
+ * @param property the name of the property
+ * @param oldValue the old value of the property
+ * @param newValue the new value of the property
+ *
+ * @specnote This method is implemented in
+ * {@link Component#firePropertyChange(String, boolean, boolean)}.
+ * It is only here because it is specified to be public, whereas
+ * the Component method is protected.
+ */
+ public void firePropertyChange(String property, boolean oldValue,
+ boolean newValue)
+ {
+ super.firePropertyChange(property, oldValue, newValue);
+ }
+
/**
* Get the value of the accessibleContext property for this component.
*