Packageorg.aswing
Classpublic class LookAndFeel
SubclassesBasicLookAndFeel

Reserved for look and feel implementation.



Public Methods
 MethodDefined by
  
Should override in sub-class to return a defaults.
LookAndFeel
  
installBasicProperties(c:Component, componentUIPrefix:String, defaultOpaquerName:String = "opaque", defaultFocusableName:String = "focusable"):void
[static] Convenience method for initializing a component's basic properties values from the current defaults table.
LookAndFeel
  
installBorderAndBFDecorators(c:Component, componentUIPrefix:String, defaultBorderName:String = "border", defaultBGDName:String = "bg", defaultFGDName:String = "fg"):void
[static] Convenience method for installing a component's default Border , background decorator and foreground decorator object on the specified component if either the border is currently null or already an instance of UIResource.
LookAndFeel
  
installColors(c:Component, componentUIPrefix:String, defaultBgName:String = "background", defaultFgName:String = "foreground"):void
[static] Convenience method for initializing a component's foreground and background color properties with values from the current defaults table.
LookAndFeel
  
installColorsAndFont(c:Component, componentUIPrefix:String, defaultBgName:String = "background", defaultFgName:String = "foreground", defaultFontName:String = "font"):void
[static]
LookAndFeel
  
installFont(c:Component, componentUIPrefix:String, defaultFontName:String = "font"):void
[static] Convenience method for initializing a component's font with value from the current defaults table.
LookAndFeel
  
[static] Convenience method for un-installing a component's default border, background decorator and foreground decorator on the specified component if the border is currently an instance of UIResource.
LookAndFeel
Method detail
getDefaults()method
public function getDefaults():UIDefaults

Should override in sub-class to return a defaults.

Returns
UIDefaults
installBasicProperties()method 
public static function installBasicProperties(c:Component, componentUIPrefix:String, defaultOpaquerName:String = "opaque", defaultFocusableName:String = "focusable"):void

Convenience method for initializing a component's basic properties values from the current defaults table.

Parameters
c:Component — the target component for installing default color properties
 
componentUIPrefix:String — the key for the default component UI Prefix
 
defaultOpaquerName:String (default = "opaque")
 
defaultFocusableName:String (default = "focusable")

See also

installBorderAndBFDecorators()method 
public static function installBorderAndBFDecorators(c:Component, componentUIPrefix:String, defaultBorderName:String = "border", defaultBGDName:String = "bg", defaultFGDName:String = "fg"):void

Convenience method for installing a component's default Border , background decorator and foreground decorator object on the specified component if either the border is currently null or already an instance of UIResource.

Parameters
c:Component — the target component for installing default border
 
componentUIPrefix:String — the key specifying the default border
 
defaultBorderName:String (default = "border")
 
defaultBGDName:String (default = "bg")
 
defaultFGDName:String (default = "fg")
installColors()method 
public static function installColors(c:Component, componentUIPrefix:String, defaultBgName:String = "background", defaultFgName:String = "foreground"):void

Convenience method for initializing a component's foreground and background color properties with values from the current defaults table. The properties are only set if the current value is either null or a UIResource.

Parameters
c:Component — the target component for installing default color properties
 
componentUIPrefix:String — the key for the default background
 
defaultBgName:String (default = "background") — the key for the default foreground
 
defaultFgName:String (default = "foreground")

See also

installColorsAndFont()method 
public static function installColorsAndFont(c:Component, componentUIPrefix:String, defaultBgName:String = "background", defaultFgName:String = "foreground", defaultFontName:String = "font"):void

Parameters
c:Component
 
componentUIPrefix:String
 
defaultBgName:String (default = "background")
 
defaultFgName:String (default = "foreground")
 
defaultFontName:String (default = "font")

See also

installFont()method 
public static function installFont(c:Component, componentUIPrefix:String, defaultFontName:String = "font"):void

Convenience method for initializing a component's font with value from the current defaults table. The property are only set if the current value is either null or a UIResource.

Parameters
c:Component — the target component for installing default font property
 
componentUIPrefix:String — the key for the default font
 
defaultFontName:String (default = "font")

See also

uninstallBorderAndBFDecorators()method 
public static function uninstallBorderAndBFDecorators(c:Component):void

Convenience method for un-installing a component's default border, background decorator and foreground decorator on the specified component if the border is currently an instance of UIResource.

Parameters
c:Component — the target component for uninstalling default border