ProgramixGenericLib v5.0.1

com.programix.gui.plaf
Class LookAndFeelChanger.MetalView

java.lang.Object
  extended by com.programix.gui.plaf.LookAndFeelChanger.MetalView
All Implemented Interfaces:
LookAndFeelChanger.View
Enclosing class:
LookAndFeelChanger

public class LookAndFeelChanger.MetalView
extends Object
implements LookAndFeelChanger.View

An implementation of LookAndFeelChanger.View that is useful for times when all that needs to change is the MetalTheme of the MetalLookAndFeel.

Author:
Paul Hyde

Constructor Summary
LookAndFeelChanger.MetalView(MetalTheme theme, String displayName)
           
 
Method Summary
 void activate()
          Changes the current MetalTheme and then assures that the current look and feel is the MetalLookAndFeel.
 String getDisplayName()
          Returns a name that describes this view in a format suitable for display to the user.
 boolean useWindowDecorations()
          Returns true if this view is backed by a LookAndFeel that wants to decorate the windows entirely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAndFeelChanger.MetalView

public LookAndFeelChanger.MetalView(MetalTheme theme,
                                    String displayName)
Method Detail

activate

public void activate()
              throws Exception
Changes the current MetalTheme and then assures that the current look and feel is the MetalLookAndFeel.

Specified by:
activate in interface LookAndFeelChanger.View
Throws:
Exception - if this View can not be activated. The stack trace will generally be sent to System.err and the look and feel changer will attempt to activate the next view.

getDisplayName

public String getDisplayName()
Description copied from interface: LookAndFeelChanger.View
Returns a name that describes this view in a format suitable for display to the user.

Specified by:
getDisplayName in interface LookAndFeelChanger.View

useWindowDecorations

public boolean useWindowDecorations()
Description copied from interface: LookAndFeelChanger.View
Returns true if this view is backed by a LookAndFeel that wants to decorate the windows entirely.

Specified by:
useWindowDecorations in interface LookAndFeelChanger.View

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.