API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicLookAndFeel View Source
Author(s)
unattributed
Since
Version
1.276 03/29/07
Serial
Hierarchy
 Object
      LookAndFeel
          BasicLookAndFeel
Implements
 Serializable
Subclasses
Description
publicabstract abstract class BasicLookAndFeel
  A base class to use in creating a look and feel for Swing.
See also:   
Constructors
public BasicLookAndFeel ()
Methods
Hide/Show inherited methods
protected Action createAudioAction (Object key)
  Creates and returns an Action used to play a sound.
protected ActionMap getAudioActionMap ()
  Returns an ActionMap containing the audio actions for this look and feel.
public UIDefaults getDefaults () [Overrides LookAndFeel]
  Returns the look and feel defaults.
publicabstract String getDescription () [Inherited From LookAndFeel]
  Return a one line description of this look and feel implementation, e.g.
publicstatic Object getDesktopPropertyValue (String systemPropertyName, Object fallbackValue) [Inherited From LookAndFeel]
  Returns the value of the specified system desktop property by invoking Toolkit.getDefaultToolkit().getDesktopProperty().
public Icon getDisabledIcon (JComponent component, Icon icon) [Inherited From LookAndFeel]
  Returns an Icon with a disabled appearance.
public Icon getDisabledSelectedIcon (JComponent component, Icon icon) [Inherited From LookAndFeel]
  Returns an Icon for use by disabled components that are also selected.
publicabstract String getID () [Inherited From LookAndFeel]
  Return a string that identifies this look and feel.
public LayoutStyle getLayoutStyle () [Inherited From LookAndFeel]
  Returns the LayoutStyle for this look and feel.
publicabstract String getName () [Inherited From LookAndFeel]
  Return a short string that identifies this look and feel, e.g.
public boolean getSupportsWindowDecorations () [Inherited From LookAndFeel]
  Returns true if the LookAndFeel returned RootPaneUI instances support providing Window decorations in a JRootPane.
pack-privatestatic Object getUIOfType (ComponentUI ui, Class klass)
Returns the ui that is of type klass, or null if one can not be found.
protected void initClassDefaults (UIDefaults table)
  Populates table with mappings from uiClassID to the fully qualified name of the ui class.
protected void initComponentDefaults (UIDefaults table)
  Populates table with the defaults for the basic look and feel.
public void initialize () [Overrides LookAndFeel]
  Initializes the look and feel.
protected void initSystemColorDefaults (UIDefaults table)
  Populates table with system colors.
pack-privatestatic void installAudioActionMap (ActionMap map)
Sets the parent of the passed in ActionMap to be the audio action map.
pack-private void installAWTEventListener ()
publicstatic void installBorder (JComponent c, String defaultBorderName) [Inherited From LookAndFeel]
  Convenience method for setting a component's border property with a value from the defaults.
publicstatic void installColors (JComponent c, String defaultBgName, String defaultFgName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground and background color properties with values from the defaults.
publicstatic void installColorsAndFont (JComponent c, String defaultBgName, String defaultFgName, String defaultFontName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground, background and font properties with values from the defaults.
publicstatic void installProperty (JComponent c, String propertyName, Object propertyValue) [Inherited From LookAndFeel]
  Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the developer.
publicabstract boolean isNativeLookAndFeel () [Inherited From LookAndFeel]
  If the underlying platform has a "native" look and feel, and this is an implementation of it, return true.
publicabstract boolean isSupportedLookAndFeel () [Inherited From LookAndFeel]
  Return true if the underlying platform supports and or permits this look and feel.
publicstatic void loadKeyBindings (InputMap retMap, Object keys) [Inherited From LookAndFeel]
  Populates an InputMap with the specified bindings.
protected void loadSystemColors (UIDefaults table, String systemColors, boolean useNative)
  Populates table with the name-color pairs in systemColors.
publicstatic ComponentInputMap makeComponentInputMap (JComponent c, Object keys) [Inherited From LookAndFeel]
  Creates a ComponentInputMapUIResource from keys.
publicstatic Object makeIcon (Class<Object> baseClass, String gifFile) [Inherited From LookAndFeel]
  Creates and returns a UIDefault.LazyValue that loads an image.
publicstatic InputMap makeInputMap (Object keys) [Inherited From LookAndFeel]
  Creates a InputMapUIResource from keys.
publicstatic KeyBinding makeKeyBindings (Object keyBindingList) [Inherited From LookAndFeel]
  Convenience method for building an array of KeyBindings.
protected void playSound (Action audioAction)
  If necessary, invokes actionPerformed on audioAction to play a sound.
pack-privatestatic void playSound (JComponent c, Object actionKey)
  Helper method to play a named sound.
public void provideErrorFeedback (Component component) [Inherited From LookAndFeel]
  Invoked when the user attempts an invalid operation, such as pasting into an uneditable JTextField that has focus.
public String toString () [Inherited From LookAndFeel]
  Returns a string that displays and identifies this object's properties.
public void uninitialize () [Overrides LookAndFeel]
  Uninitializes the look and feel.
publicstatic void uninstallBorder (JComponent c) [Inherited From LookAndFeel]
  Convenience method for uninstalling a border.
Fields
Hide/Show inherited fields
pack-private AWTEventHelper invocator
pack-privatestatic boolean needsEventHelper
Whether or not the developer has created a JPopupMenu.
Nested Classes
  BasicLookAndFeel.AWTEventHelper
This class contains listener that watches for all the mouse events that can possibly invoke popup on the component
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar