|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing.plaf.basic
Class BasicLookAndFeel

java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class BasicLookAndFeel
- extends javax.swing.LookAndFeel
- implements java.io.Serializable
- extends javax.swing.LookAndFeel
BasicLookAndFeel
| Nested Class Summary | |
private class |
BasicLookAndFeel.AudioAction
An action that can play an audio file. |
private class |
BasicLookAndFeel.PopupHelper
Helps closing menu popups when the user clicks outside of any menu area. |
| Field Summary | |
private javax.swing.ActionMap |
audioActionMap
|
private BasicLookAndFeel.PopupHelper |
popupHelper
Helps closing menu popups when user clicks outside of the menu area. |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
BasicLookAndFeel()
Creates a new instance of the Basic look and feel. |
|
| Method Summary | |
protected javax.swing.Action |
createAudioAction(java.lang.Object key)
Creates an Action that can play an auditory cue specified by
the key. |
protected javax.swing.ActionMap |
getAudioActionMap()
Returns the ActionMap that stores all the actions that are
responsibly for rendering auditory cues. |
javax.swing.UIDefaults |
getDefaults()
Creates and returns a new instance of the default resources for this look and feel. |
protected void |
initClassDefaults(javax.swing.UIDefaults defaults)
Populates the defaults table with mappings between class IDs
and fully qualified class names for the UI delegates. |
protected void |
initComponentDefaults(javax.swing.UIDefaults defaults)
initComponentDefaults |
void |
initialize()
Initializes the Look and Feel. |
protected void |
initSystemColorDefaults(javax.swing.UIDefaults defaults)
Populates the defaults table with system color defaults. |
private void |
loadResourceBundle(javax.swing.UIDefaults defaults)
loadResourceBundle |
protected void |
loadSystemColors(javax.swing.UIDefaults defaults,
java.lang.String[] systemColors,
boolean useNative)
Populates the defaults table with the system colors. |
protected void |
playSound(javax.swing.Action audioAction)
Plays the sound of the action if it is listed in AuditoryCues.playList. |
void |
uninitialize()
Uninitializes the Look and Feel. |
| Methods inherited from class javax.swing.LookAndFeel |
getDescription, getDesktopPropertyValue, getID, getName, getSupportsWindowDecorations, installBorder, installColors, installColorsAndFont, installProperty, isNativeLookAndFeel, isSupportedLookAndFeel, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
popupHelper
private transient BasicLookAndFeel.PopupHelper popupHelper
- Helps closing menu popups when user clicks outside of the menu area.
audioActionMap
private javax.swing.ActionMap audioActionMap
| Constructor Detail |
BasicLookAndFeel
public BasicLookAndFeel()
- Creates a new instance of the Basic look and feel.
| Method Detail |
getDefaults
public javax.swing.UIDefaults getDefaults()
- Creates and returns a new instance of the default resources for this look
and feel.
initClassDefaults
protected void initClassDefaults(javax.swing.UIDefaults defaults)
- Populates the
defaultstable with mappings between class IDs and fully qualified class names for the UI delegates.
initSystemColorDefaults
protected void initSystemColorDefaults(javax.swing.UIDefaults defaults)
- Populates the
defaultstable with system color defaults. This sets up a couple of default values and passes them toloadSystemColors(UIDefaults, String[], boolean)55 . If the look and feel is a native look and feel, these defaults may be overridden by the corresponding SystemColor constants.
loadSystemColors
protected void loadSystemColors(javax.swing.UIDefaults defaults, java.lang.String[] systemColors, boolean useNative)
- Populates the
defaultstable with the system colors. IfuseNativeistrue, the table is populated with the constants in java.awt.SystemColor, otherwise thesystemColorsparameter is decoded into the defaults table. The system colors array is made up of pairs, where the first entry is the name of the system color, and the second entry is a string denoting an RGB color value like "#C0C0C0", which is decoded using Color.decode(String)>Color.decode(String)55 .
loadResourceBundle
private void loadResourceBundle(javax.swing.UIDefaults defaults)
- loadResourceBundle
initComponentDefaults
protected void initComponentDefaults(javax.swing.UIDefaults defaults)
- initComponentDefaults
getAudioActionMap
protected javax.swing.ActionMap getAudioActionMap()
- Returns the
ActionMapthat stores all the actions that are responsibly for rendering auditory cues.- Since:
- 1.4
createAudioAction
protected javax.swing.Action createAudioAction(java.lang.Object key)
- Creates an
Actionthat can play an auditory cue specified by the key. The UIDefaults value for the key is normally a String that points to an audio file relative to the current package.- Since:
- 1.4
playSound
protected void playSound(javax.swing.Action audioAction)
- Plays the sound of the action if it is listed in
AuditoryCues.playList.- Since:
- 1.4
initialize
public void initialize()
- Initializes the Look and Feel.
uninitialize
public void uninitialize()
- Uninitializes the Look and Feel.
|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC