--- old/jdk/src/share/classes/javax/swing/JSpinner.java 2014-08-11 11:50:53.500713200 +0400
+++ new/jdk/src/share/classes/javax/swing/JSpinner.java 2014-08-11 11:50:53.068688500 +0400
@@ -22,7 +22,6 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-
package javax.swing;
import java.awt.*;
@@ -33,17 +32,19 @@
import javax.swing.plaf.SpinnerUI;
import java.util.*;
-import java.beans.*;
+import java.beans.JavaBean;
+import java.beans.BeanProperty;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
import java.text.*;
import java.io.*;
import java.text.spi.DateFormatProvider;
import java.text.spi.NumberFormatProvider;
import javax.accessibility.*;
+
import sun.util.locale.provider.LocaleProviderAdapter;
import sun.util.locale.provider.LocaleResources;
-import sun.util.locale.provider.LocaleServiceProviderPool;
-
/**
* A single line input field that lets the user select a
@@ -110,11 +111,6 @@
* has been added to the java.beans
package.
* Please see {@link java.beans.XMLEncoder}.
*
- * @beaninfo
- * attribute: isContainer false
- * description: A single line input field that lets the user select a
- * number or an object value from an ordered set.
- *
* @see SpinnerModel
* @see AbstractSpinnerModel
* @see SpinnerListModel
@@ -126,6 +122,8 @@
* @author Lynn Monsanto (accessibility)
* @since 1.4
*/
+@JavaBean(defaultProperty = "UI", description = "A single line input field that lets the user select a number or an object value from an ordered set.")
+@SwingContainer(false)
@SuppressWarnings("serial") // Same-version serialization only
public class JSpinner extends JComponent implements Accessible
{
@@ -201,6 +199,7 @@
* @see JComponent#getUIClassID
* @see UIDefaults#getUI
*/
+ @BeanProperty(bound = false)
public String getUIClassID() {
return uiClassID;
}
@@ -275,12 +274,9 @@
* @see #getEditor
* @see #setEditor
* @throws IllegalArgumentException if model is null
- *
- * @beaninfo
- * bound: true
- * attribute: visualUpdate true
- * description: Model that represents the value of this spinner.
*/
+ @BeanProperty(visualUpdate = true, description
+ = "Model that represents the value of this spinner.")
public void setModel(SpinnerModel model) {
if (model == null) {
throw new IllegalArgumentException("null model");
@@ -378,6 +374,7 @@
* @see #getPreviousValue
* @see SpinnerModel#getNextValue
*/
+ @BeanProperty(bound = false)
public Object getNextValue() {
return getModel().getNextValue();
}
@@ -438,6 +435,7 @@
* array if no listeners have been added
* @since 1.4
*/
+ @BeanProperty(bound = false)
public ChangeListener[] getChangeListeners() {
return listenerList.getListeners(ChangeListener.class);
}
@@ -486,6 +484,7 @@
* @see #getNextValue
* @see SpinnerModel#getPreviousValue
*/
+ @BeanProperty(bound = false)
public Object getPreviousValue() {
return getModel().getPreviousValue();
}
@@ -504,12 +503,9 @@
* @see #createEditor
* @see #getModel
* @throws IllegalArgumentException if editor is null
- *
- * @beaninfo
- * bound: true
- * attribute: visualUpdate true
- * description: JComponent that displays the current value of the model
*/
+ @BeanProperty(visualUpdate = true, description
+ = "JComponent that displays the current value of the model")
public void setEditor(JComponent editor) {
if (editor == null) {
throw new IllegalArgumentException("null editor");
@@ -1429,6 +1425,7 @@
* @return the AccessibleContext
for the JSpinner
* @since 1.5
*/
+ @BeanProperty(bound = false)
public AccessibleContext getAccessibleContext() {
if (accessibleContext == null) {
accessibleContext = new AccessibleJSpinner();