138 * BEFORE the <code>ComponentUI</code> has been installed. If you
139 * need a specific value for a particular property you should
140 * explicitly set it.
141 * <p>
142 * In release 1.4, the focus subsystem was rearchitected.
143 * For more information, see
144 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
145 * How to Use the Focus Subsystem</a>,
146 * a section in <em>The Java Tutorial</em>.
147 * <p>
148 * <strong>Warning:</strong> Swing is not thread safe. For more
149 * information see <a
150 * href="package-summary.html#threading">Swing's Threading
151 * Policy</a>.
152 * <p>
153 * <strong>Warning:</strong>
154 * Serialized objects of this class will not be compatible with
155 * future Swing releases. The current serialization support is
156 * appropriate for short term storage or RMI between applications running
157 * the same version of Swing. As of 1.4, support for long term storage
158 * of all JavaBeans™
159 * has been added to the <code>java.beans</code> package.
160 * Please see {@link java.beans.XMLEncoder}.
161 *
162 * @see KeyStroke
163 * @see Action
164 * @see #setBorder
165 * @see #registerKeyboardAction
166 * @see JOptionPane
167 * @see #setDebugGraphicsOptions
168 * @see #setToolTipText
169 * @see #setAutoscrolls
170 *
171 * @author Hans Muller
172 * @author Arnaud Weber
173 * @since 1.2
174 */
175 @JavaBean(defaultProperty = "UIClassID")
176 @SuppressWarnings("serial") // Same-version serialization only
177 public abstract class JComponent extends Container implements Serializable,
178 TransferHandler.HasGetTransferHandler
3657 super.disable();
3658 if (accessibleContext != null) {
3659 accessibleContext.firePropertyChange(
3660 AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
3661 AccessibleState.ENABLED, null);
3662 }
3663 }
3664 }
3665
3666 /**
3667 * Inner class of JComponent used to provide default support for
3668 * accessibility. This class is not meant to be used directly by
3669 * application developers, but is instead meant only to be
3670 * subclassed by component developers.
3671 * <p>
3672 * <strong>Warning:</strong>
3673 * Serialized objects of this class will not be compatible with
3674 * future Swing releases. The current serialization support is
3675 * appropriate for short term storage or RMI between applications running
3676 * the same version of Swing. As of 1.4, support for long term storage
3677 * of all JavaBeans™
3678 * has been added to the <code>java.beans</code> package.
3679 * Please see {@link java.beans.XMLEncoder}.
3680 */
3681 @SuppressWarnings("serial") // Same-version serialization only
3682 public abstract class AccessibleJComponent extends AccessibleAWTContainer
3683 implements AccessibleExtendedComponent
3684 {
3685 /**
3686 * Though the class is abstract, this should be called by
3687 * all sub-classes.
3688 */
3689 protected AccessibleJComponent() {
3690 super();
3691 }
3692
3693 /**
3694 * Number of PropertyChangeListener objects registered. It's used
3695 * to add/remove ContainerListener and FocusListener to track
3696 * target JComponent's state
3697 */
|
138 * BEFORE the <code>ComponentUI</code> has been installed. If you
139 * need a specific value for a particular property you should
140 * explicitly set it.
141 * <p>
142 * In release 1.4, the focus subsystem was rearchitected.
143 * For more information, see
144 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
145 * How to Use the Focus Subsystem</a>,
146 * a section in <em>The Java Tutorial</em>.
147 * <p>
148 * <strong>Warning:</strong> Swing is not thread safe. For more
149 * information see <a
150 * href="package-summary.html#threading">Swing's Threading
151 * Policy</a>.
152 * <p>
153 * <strong>Warning:</strong>
154 * Serialized objects of this class will not be compatible with
155 * future Swing releases. The current serialization support is
156 * appropriate for short term storage or RMI between applications running
157 * the same version of Swing. As of 1.4, support for long term storage
158 * of all JavaBeans
159 * has been added to the <code>java.beans</code> package.
160 * Please see {@link java.beans.XMLEncoder}.
161 *
162 * @see KeyStroke
163 * @see Action
164 * @see #setBorder
165 * @see #registerKeyboardAction
166 * @see JOptionPane
167 * @see #setDebugGraphicsOptions
168 * @see #setToolTipText
169 * @see #setAutoscrolls
170 *
171 * @author Hans Muller
172 * @author Arnaud Weber
173 * @since 1.2
174 */
175 @JavaBean(defaultProperty = "UIClassID")
176 @SuppressWarnings("serial") // Same-version serialization only
177 public abstract class JComponent extends Container implements Serializable,
178 TransferHandler.HasGetTransferHandler
3657 super.disable();
3658 if (accessibleContext != null) {
3659 accessibleContext.firePropertyChange(
3660 AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
3661 AccessibleState.ENABLED, null);
3662 }
3663 }
3664 }
3665
3666 /**
3667 * Inner class of JComponent used to provide default support for
3668 * accessibility. This class is not meant to be used directly by
3669 * application developers, but is instead meant only to be
3670 * subclassed by component developers.
3671 * <p>
3672 * <strong>Warning:</strong>
3673 * Serialized objects of this class will not be compatible with
3674 * future Swing releases. The current serialization support is
3675 * appropriate for short term storage or RMI between applications running
3676 * the same version of Swing. As of 1.4, support for long term storage
3677 * of all JavaBeans
3678 * has been added to the <code>java.beans</code> package.
3679 * Please see {@link java.beans.XMLEncoder}.
3680 */
3681 @SuppressWarnings("serial") // Same-version serialization only
3682 public abstract class AccessibleJComponent extends AccessibleAWTContainer
3683 implements AccessibleExtendedComponent
3684 {
3685 /**
3686 * Though the class is abstract, this should be called by
3687 * all sub-classes.
3688 */
3689 protected AccessibleJComponent() {
3690 super();
3691 }
3692
3693 /**
3694 * Number of PropertyChangeListener objects registered. It's used
3695 * to add/remove ContainerListener and FocusListener to track
3696 * target JComponent's state
3697 */
|