gnu.javax.swing.plaf.gnu

Class GNULookAndFeel

Implemented Interfaces:
Serializable

public class GNULookAndFeel
extends BasicLookAndFeel

See Also:
Serialized Form

Method Summary

UIDefaults
getDefaults()
Creates and returns a new instance of the default resources for this look and feel.
String
getDescription()
Returns a description of the look and feel.
String
getID()
Returns an identifier for the look and feel.
String
getName()
Returns the name for the look and feel.
boolean
isNativeLookAndFeel()
Returns true if the look-and-feel is the "native" look-and-feel for the current platform, and false otherwise.
boolean
isSupportedLookAndFeel()
Returns true if the look-and-feel is supported on the current operating system, and false otherwise.

Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel

createAudioAction, getAudioActionMap, getDefaults, initClassDefaults, initComponentDefaults, initSystemColorDefaults, initialize, loadSystemColors, playSound, uninitialize

Methods inherited from class javax.swing.LookAndFeel

getDefaults, getDescription, getDesktopPropertyValue, getID, getName, getSupportsWindowDecorations, initialize, installBorder, installColors, installColorsAndFont, installProperty, isNativeLookAndFeel, isSupportedLookAndFeel, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninitialize, uninstallBorder

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getDefaults

public UIDefaults getDefaults()
Creates and returns a new instance of the default resources for this look and feel.
Overrides:
getDefaults in interface BasicLookAndFeel
Returns:
The UI defaults.

getDescription

public String getDescription()
Returns a description of the look and feel.
Overrides:
getDescription in interface LookAndFeel
Returns:
A description of the look and feel.

getID

public String getID()
Returns an identifier for the look and feel.
Overrides:
getID in interface LookAndFeel
Returns:
An identifier for the look and feel.

getName

public String getName()
Returns the name for the look and feel.
Overrides:
getName in interface LookAndFeel
Returns:
The name for the look and feel.

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Returns true if the look-and-feel is the "native" look-and-feel for the current platform, and false otherwise. A native look-and-feel emulates the appearance and behaviour of the default windowing system on the host operating system.
Overrides:
isNativeLookAndFeel in interface LookAndFeel
Returns:
A flag indicating whether or not this is the native look and feel for the current platform.

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
Returns true if the look-and-feel is supported on the current operating system, and false otherwise. This mechanism is provided so that it is possible to prevent a look-and-feel from being used on some operating systems (usually for legal, not technical, reasons).
Overrides:
isSupportedLookAndFeel in interface LookAndFeel
Returns:
A flag indicating whether or not the look-and-feel is supported on the current platform.

GNULookAndFeel.java -- An example of using the javax.swing UI. Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath examples. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.