1844 },
1845 };
1846
1847 table.putDefaults(defaults);
1848 }
1849
1850 static int getFocusAcceleratorKeyMask() {
1851 Toolkit tk = Toolkit.getDefaultToolkit();
1852 if (tk instanceof SunToolkit) {
1853 return ((SunToolkit)tk).getFocusAcceleratorKeyMask();
1854 }
1855 return ActionEvent.ALT_MASK;
1856 }
1857
1858
1859
1860 /**
1861 * Returns the ui that is of type <code>klass</code>, or null if
1862 * one can not be found.
1863 */
1864 static Object getUIOfType(ComponentUI ui, Class klass) {
1865 if (klass.isInstance(ui)) {
1866 return ui;
1867 }
1868 return null;
1869 }
1870
1871 // ********* Auditory Cue support methods and objects *********
1872 // also see the "AuditoryCues" section of the defaults table
1873
1874 /**
1875 * Returns an <code>ActionMap</code> containing the audio actions
1876 * for this look and feel.
1877 * <P>
1878 * The returned <code>ActionMap</code> contains <code>Actions</code> that
1879 * embody the ability to render an auditory cue. These auditory
1880 * cues map onto user and system activities that may be useful
1881 * for an end user to know about (such as a dialog box appearing).
1882 * <P>
1883 * At the appropriate time,
1884 * the {@code ComponentUI} is responsible for obtaining an
|
1844 },
1845 };
1846
1847 table.putDefaults(defaults);
1848 }
1849
1850 static int getFocusAcceleratorKeyMask() {
1851 Toolkit tk = Toolkit.getDefaultToolkit();
1852 if (tk instanceof SunToolkit) {
1853 return ((SunToolkit)tk).getFocusAcceleratorKeyMask();
1854 }
1855 return ActionEvent.ALT_MASK;
1856 }
1857
1858
1859
1860 /**
1861 * Returns the ui that is of type <code>klass</code>, or null if
1862 * one can not be found.
1863 */
1864 static Object getUIOfType(ComponentUI ui, Class<?> klass) {
1865 if (klass.isInstance(ui)) {
1866 return ui;
1867 }
1868 return null;
1869 }
1870
1871 // ********* Auditory Cue support methods and objects *********
1872 // also see the "AuditoryCues" section of the defaults table
1873
1874 /**
1875 * Returns an <code>ActionMap</code> containing the audio actions
1876 * for this look and feel.
1877 * <P>
1878 * The returned <code>ActionMap</code> contains <code>Actions</code> that
1879 * embody the ability to render an auditory cue. These auditory
1880 * cues map onto user and system activities that may be useful
1881 * for an end user to know about (such as a dialog box appearing).
1882 * <P>
1883 * At the appropriate time,
1884 * the {@code ComponentUI} is responsible for obtaining an
|