< prev index next >

src/java.desktop/share/classes/javax/swing/JTabbedPane.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


 100  * provide a custom component that animates or one that has widgets for
 101  * closing the tab.
 102  * <p>
 103  * If you specify a component for a tab, the <code>JTabbedPane</code>
 104  * will not render any text or icon you have specified for the tab.
 105  * <p>
 106  * <strong>Note:</strong>
 107  * Do not use <code>setVisible</code> directly on a tab component to make it visible,
 108  * use <code>setSelectedComponent</code> or <code>setSelectedIndex</code> methods instead.
 109  * <p>
 110  * <strong>Warning:</strong> Swing is not thread safe. For more
 111  * information see <a
 112  * href="package-summary.html#threading">Swing's Threading
 113  * Policy</a>.
 114  * <p>
 115  * <strong>Warning:</strong>
 116  * Serialized objects of this class will not be compatible with
 117  * future Swing releases. The current serialization support is
 118  * appropriate for short term storage or RMI between applications running
 119  * the same version of Swing.  As of 1.4, support for long term storage
 120  * of all JavaBeans&trade;
 121  * has been added to the <code>java.beans</code> package.
 122  * Please see {@link java.beans.XMLEncoder}.
 123  *
 124  * @author Dave Moore
 125  * @author Philip Milne
 126  * @author Amy Fowler
 127  *
 128  * @see SingleSelectionModel
 129  * @since 1.2
 130  */
 131 @JavaBean(defaultProperty = "UI", description = "A component which provides a tab folder metaphor for displaying one component from a set of components.")
 132 @SwingContainer
 133 @SuppressWarnings("serial") // Same-version serialization only
 134 public class JTabbedPane extends JComponent
 135        implements Serializable, Accessible, SwingConstants {
 136 
 137    /**
 138     * The tab layout policy for wrapping tabs in multiple runs when all
 139     * tabs will not fit within a single run.
 140     */


1904             // initialize AccessibleContext for the existing pages
1905             int count = getTabCount();
1906             for (int i = 0; i < count; i++) {
1907                 pages.get(i).initAccessibleContext();
1908             }
1909         }
1910         return accessibleContext;
1911     }
1912 
1913     /**
1914      * This class implements accessibility support for the
1915      * <code>JTabbedPane</code> class.  It provides an implementation of the
1916      * Java Accessibility API appropriate to tabbed pane user-interface
1917      * elements.
1918      * <p>
1919      * <strong>Warning:</strong>
1920      * Serialized objects of this class will not be compatible with
1921      * future Swing releases. The current serialization support is
1922      * appropriate for short term storage or RMI between applications running
1923      * the same version of Swing.  As of 1.4, support for long term storage
1924      * of all JavaBeans&trade;
1925      * has been added to the <code>java.beans</code> package.
1926      * Please see {@link java.beans.XMLEncoder}.
1927      */
1928     @SuppressWarnings("serial") // Same-version serialization only
1929     protected class AccessibleJTabbedPane extends AccessibleJComponent
1930         implements AccessibleSelection, ChangeListener {
1931 
1932         /**
1933          * Returns the accessible name of this object, or {@code null} if
1934          * there is no accessible name.
1935          *
1936          * @return the accessible name of this object, or {@code null}.
1937          * @since 1.6
1938          */
1939         public String getAccessibleName() {
1940             if (accessibleName != null) {
1941                 return accessibleName;
1942             }
1943 
1944             String cp = (String)getClientProperty(AccessibleContext.ACCESSIBLE_NAME_PROPERTY);




 100  * provide a custom component that animates or one that has widgets for
 101  * closing the tab.
 102  * <p>
 103  * If you specify a component for a tab, the <code>JTabbedPane</code>
 104  * will not render any text or icon you have specified for the tab.
 105  * <p>
 106  * <strong>Note:</strong>
 107  * Do not use <code>setVisible</code> directly on a tab component to make it visible,
 108  * use <code>setSelectedComponent</code> or <code>setSelectedIndex</code> methods instead.
 109  * <p>
 110  * <strong>Warning:</strong> Swing is not thread safe. For more
 111  * information see <a
 112  * href="package-summary.html#threading">Swing's Threading
 113  * Policy</a>.
 114  * <p>
 115  * <strong>Warning:</strong>
 116  * Serialized objects of this class will not be compatible with
 117  * future Swing releases. The current serialization support is
 118  * appropriate for short term storage or RMI between applications running
 119  * the same version of Swing.  As of 1.4, support for long term storage
 120  * of all JavaBeans
 121  * has been added to the <code>java.beans</code> package.
 122  * Please see {@link java.beans.XMLEncoder}.
 123  *
 124  * @author Dave Moore
 125  * @author Philip Milne
 126  * @author Amy Fowler
 127  *
 128  * @see SingleSelectionModel
 129  * @since 1.2
 130  */
 131 @JavaBean(defaultProperty = "UI", description = "A component which provides a tab folder metaphor for displaying one component from a set of components.")
 132 @SwingContainer
 133 @SuppressWarnings("serial") // Same-version serialization only
 134 public class JTabbedPane extends JComponent
 135        implements Serializable, Accessible, SwingConstants {
 136 
 137    /**
 138     * The tab layout policy for wrapping tabs in multiple runs when all
 139     * tabs will not fit within a single run.
 140     */


1904             // initialize AccessibleContext for the existing pages
1905             int count = getTabCount();
1906             for (int i = 0; i < count; i++) {
1907                 pages.get(i).initAccessibleContext();
1908             }
1909         }
1910         return accessibleContext;
1911     }
1912 
1913     /**
1914      * This class implements accessibility support for the
1915      * <code>JTabbedPane</code> class.  It provides an implementation of the
1916      * Java Accessibility API appropriate to tabbed pane user-interface
1917      * elements.
1918      * <p>
1919      * <strong>Warning:</strong>
1920      * Serialized objects of this class will not be compatible with
1921      * future Swing releases. The current serialization support is
1922      * appropriate for short term storage or RMI between applications running
1923      * the same version of Swing.  As of 1.4, support for long term storage
1924      * of all JavaBeans
1925      * has been added to the <code>java.beans</code> package.
1926      * Please see {@link java.beans.XMLEncoder}.
1927      */
1928     @SuppressWarnings("serial") // Same-version serialization only
1929     protected class AccessibleJTabbedPane extends AccessibleJComponent
1930         implements AccessibleSelection, ChangeListener {
1931 
1932         /**
1933          * Returns the accessible name of this object, or {@code null} if
1934          * there is no accessible name.
1935          *
1936          * @return the accessible name of this object, or {@code null}.
1937          * @since 1.6
1938          */
1939         public String getAccessibleName() {
1940             if (accessibleName != null) {
1941                 return accessibleName;
1942             }
1943 
1944             String cp = (String)getClientProperty(AccessibleContext.ACCESSIBLE_NAME_PROPERTY);


< prev index next >