Class fever.app.theme.Theme

Description

Look'n Feel definition.

Example using AsWing Look'n Feel.

   var at : ThemeLocator = ThemeLocator.getInstance();
   at.register( "Office 2003", new Office2003LAF() );
   at.register( "WinXP 2003", new WinXPLAF() );
   at.addEventListener( ThemeLocator.onChangeEVENT, this, _onUIUpdate );
   at.load( "WinXP 2003" );
 

Look and Feel is really apply using custom process.
Associates Command to fever.events.FeverEventList.onApplyLookAndFeelEVENT event type.
A concrete command example is available in FvApplyLookAndFeel

See Also

Field Index

PREVIEW_REPOSITORY

Method Index

new Theme()
getClass(), getInstanceName(), getName(), getPreview(), hasPreview(), setPreview(), toString()

Constructor Detail

Theme

public function Theme(lafName:String, lafInstance:Object, preview:String)

Constructor.

Parameters

lafNameRegistration name
lafInstanceConcrete Look and Feel class

Field Detail

PREVIEW_REPOSITORY

static public PREVIEW_REPOSITORY:String
Bitmaps repository for theme image preview.

Method Detail

getName

public function getName():String

Returns Look'n Feel name.

getInstanceName

public function getInstanceName():String

Returns Look'n Feel instance name.

getClass

public function getClass():Object

Returns Look'n Feel class.

Return type is not typed to allow custom Look and Feel definition ( LookAndFeel instance for AsWing for example )

setPreview

public function setPreview(previewLink:String):Void

Sets preview image url.

hasPreview

public function hasPreview():Boolean

getPreview

public function getPreview():String

Returns Look'n Feel image preview.

toString

public function toString():String

Returns string representation.