org.jtheque.core.managers.skin
Class SkinManager

java.lang.Object
  extended by org.jtheque.core.managers.AbstractManager
      extended by org.jtheque.core.managers.skin.SkinManager
All Implemented Interfaces:
IManager, ISkinManager

public final class SkinManager
extends AbstractManager
implements ISkinManager

This class manages the look and feel of the application.

Author:
Baptiste Wicht

Constructor Summary
SkinManager()
          Construct a new SkinManager.
 
Method Summary
 void addSkinListener(SkinListener listener)
          Add a skin listener.
 void close()
          Close the manager.
 Skin getCurrentSkin()
          Return the current look and feel.
 java.util.List<Skin> getSkins()
          Return all the look and feel loaded.
 void init()
          Init the manager.
 void preInit()
          Pre-init the manager.
 void removeSkinListener(SkinListener listener)
          Remove a skin listener.
 void setSkin(Skin skin)
          Apply the look and feel to the application.
 
Methods inherited from class org.jtheque.core.managers.AbstractManager
getErrors, getListeners, getLogger, getMessage, getMessage, getStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinManager

public SkinManager()
Construct a new SkinManager.

Method Detail

preInit

public void preInit()
Description copied from interface: IManager
Pre-init the manager. This operation is called before modules preplug.

Specified by:
preInit in interface IManager

init

public void init()
Description copied from interface: IManager
Init the manager. This operation is called after modules preplug but before module plug.

Specified by:
init in interface IManager

getSkins

public java.util.List<Skin> getSkins()
Description copied from interface: ISkinManager
Return all the look and feel loaded.

Specified by:
getSkins in interface ISkinManager
Returns:
The availables look and feels

setSkin

public void setSkin(Skin skin)
Description copied from interface: ISkinManager
Apply the look and feel to the application.

Specified by:
setSkin in interface ISkinManager
Parameters:
skin - The look and feel to apply

getCurrentSkin

public Skin getCurrentSkin()
Description copied from interface: ISkinManager
Return the current look and feel.

Specified by:
getCurrentSkin in interface ISkinManager
Returns:
The current look and feel

close

public void close()
Description copied from interface: IManager
Close the manager.

Specified by:
close in interface IManager

addSkinListener

public void addSkinListener(SkinListener listener)
Description copied from interface: ISkinManager
Add a skin listener.

Specified by:
addSkinListener in interface ISkinManager
Parameters:
listener - A skin listener.

removeSkinListener

public void removeSkinListener(SkinListener listener)
Description copied from interface: ISkinManager
Remove a skin listener.

Specified by:
removeSkinListener in interface ISkinManager
Parameters:
listener - The skin listener to remove.


Copyright © 2009 JTheque. All Rights Reserved.