src/share/classes/javax/swing/AbstractButton.java

Print this page
rev 10121 : 8046485: Add missing @since tag under javax.swing.*
Reviewed-by:


  54  * Swing Components Supporting <code>Action</code></a> for more
  55  * details, and you can find more information in <a
  56  * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How
  57  * to Use Actions</a>, a section in <em>The Java Tutorial</em>.
  58  * <p>
  59  * For further information see
  60  * <a
  61  href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a>,
  62  * a section in <em>The Java Tutorial</em>.
  63  * <p>
  64  * <strong>Warning:</strong>
  65  * Serialized objects of this class will not be compatible with
  66  * future Swing releases. The current serialization support is
  67  * appropriate for short term storage or RMI between applications running
  68  * the same version of Swing.  As of 1.4, support for long term storage
  69  * of all JavaBeans&trade;
  70  * has been added to the <code>java.beans</code> package.
  71  * Please see {@link java.beans.XMLEncoder}.
  72  *
  73  * @author Jeff Dinkins

  74  */
  75 @SuppressWarnings("serial") // Same-version serialization only
  76 public abstract class AbstractButton extends JComponent implements ItemSelectable, SwingConstants {
  77 
  78     // *********************************
  79     // ******* Button properties *******
  80     // *********************************
  81 
  82     /** Identifies a change in the button model. */
  83     public static final String MODEL_CHANGED_PROPERTY = "model";
  84     /** Identifies a change in the button's text. */
  85     public static final String TEXT_CHANGED_PROPERTY = "text";
  86     /** Identifies a change to the button's mnemonic. */
  87     public static final String MNEMONIC_CHANGED_PROPERTY = "mnemonic";
  88 
  89     // Text positioning and alignment
  90     /** Identifies a change in the button's margins. */
  91     public static final String MARGIN_CHANGED_PROPERTY = "margin";
  92     /** Identifies a change in the button's vertical alignment. */
  93     public static final String VERTICAL_ALIGNMENT_CHANGED_PROPERTY = "verticalAlignment";




  54  * Swing Components Supporting <code>Action</code></a> for more
  55  * details, and you can find more information in <a
  56  * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How
  57  * to Use Actions</a>, a section in <em>The Java Tutorial</em>.
  58  * <p>
  59  * For further information see
  60  * <a
  61  href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a>,
  62  * a section in <em>The Java Tutorial</em>.
  63  * <p>
  64  * <strong>Warning:</strong>
  65  * Serialized objects of this class will not be compatible with
  66  * future Swing releases. The current serialization support is
  67  * appropriate for short term storage or RMI between applications running
  68  * the same version of Swing.  As of 1.4, support for long term storage
  69  * of all JavaBeans&trade;
  70  * has been added to the <code>java.beans</code> package.
  71  * Please see {@link java.beans.XMLEncoder}.
  72  *
  73  * @author Jeff Dinkins
  74  * @since 1.2
  75  */
  76 @SuppressWarnings("serial") // Same-version serialization only
  77 public abstract class AbstractButton extends JComponent implements ItemSelectable, SwingConstants {
  78 
  79     // *********************************
  80     // ******* Button properties *******
  81     // *********************************
  82 
  83     /** Identifies a change in the button model. */
  84     public static final String MODEL_CHANGED_PROPERTY = "model";
  85     /** Identifies a change in the button's text. */
  86     public static final String TEXT_CHANGED_PROPERTY = "text";
  87     /** Identifies a change to the button's mnemonic. */
  88     public static final String MNEMONIC_CHANGED_PROPERTY = "mnemonic";
  89 
  90     // Text positioning and alignment
  91     /** Identifies a change in the button's margins. */
  92     public static final String MARGIN_CHANGED_PROPERTY = "margin";
  93     /** Identifies a change in the button's vertical alignment. */
  94     public static final String VERTICAL_ALIGNMENT_CHANGED_PROPERTY = "verticalAlignment";