Packageorg.aswing
Classpublic class UIDefaults
InheritanceUIDefaults Inheritance HashMap

A table of defaults for AsWing components. Applications can set/get default values via the UIManager.

See also

UIManager


Public Methods
 MethodDefined by
  
UIDefaults
 Inherited
clear():void
Clears this HashMap so that it contains no keys no values.
HashMap
 Inherited
Return a same copy of HashMap object
HashMap
 Inherited
containsKey(key:*):Boolean
Tests if the specified object is a key in this HashMap.
HashMap
 Inherited
containsValue(value:*):Boolean
Tests if some key maps into the specified value in this HashMap.
HashMap
 Inherited
eachKey(func:Function):void
Call func(key) for each key.
HashMap
 Inherited
eachValue(func:Function):void
Call func(value) for each value.
HashMap
 Inherited
get(key:*):*
Returns the value to which the specified key is mapped in this HashMap.
HashMap
  
getBoolean(key:String):Boolean
UIDefaults
  
getBorder(key:String):Border
UIDefaults
  
getColor(key:String):ASColor
UIDefaults
  
getConstructor(key:String):Class
UIDefaults
  
getFont(key:String):ASFont
UIDefaults
  
UIDefaults
  
getIcon(key:String):Icon
UIDefaults
  
getInsets(key:String):Insets
UIDefaults
  
getInstance(key:String):*
UIDefaults
  
getInt(key:String):int
UIDefaults
  
getNumber(key:String):Number
UIDefaults
  
getString(key:String):String
UIDefaults
  
Returns the component LookAndFeel specified UI object
UIDefaults
  
getUint(key:String):uint
UIDefaults
 Inherited
getValue(key:*):*
Same functionity method with different name to get.
HashMap
 Inherited
isEmpty():Boolean
Returns if this HashMap maps no keys to values.
HashMap
 Inherited
keys():Array
Returns an Array of the keys in this HashMap.
HashMap
  
put(key:*, value:*):*
Sets the value of key to value.
UIDefaults
  
putDefaults(keyValueList:Array):void
Puts all of the key/value pairs in the database.
UIDefaults
 Inherited
remove(key:*):*
Removes the mapping for this key from this map if present.
HashMap
 Inherited
size():int
Returns the number of keys in this HashMap.
HashMap
 Inherited
toString():String
HashMap
 Inherited
values():Array
Returns an Array of the values in this HashMap.
HashMap
Constructor detail
UIDefaults()constructor
public function UIDefaults()
Method detail
getBoolean()method
public function getBoolean(key:String):BooleanParameters
key:String

Returns
Boolean
getBorder()method 
public function getBorder(key:String):BorderParameters
key:String

Returns
Border
getColor()method 
public function getColor(key:String):ASColorParameters
key:String

Returns
ASColor
getConstructor()method 
public function getConstructor(key:String):ClassParameters
key:String

Returns
Class
getFont()method 
public function getFont(key:String):ASFontParameters
key:String

Returns
ASFont
getGroundDecorator()method 
public function getGroundDecorator(key:String):GroundDecoratorParameters
key:String

Returns
GroundDecorator
getIcon()method 
public function getIcon(key:String):IconParameters
key:String

Returns
Icon
getInsets()method 
public function getInsets(key:String):InsetsParameters
key:String

Returns
Insets
getInstance()method 
public function getInstance(key:String):*Parameters
key:String

Returns
*
getInt()method 
public function getInt(key:String):intParameters
key:String

Returns
int
getNumber()method 
public function getNumber(key:String):NumberParameters
key:String

Returns
Number
getString()method 
public function getString(key:String):StringParameters
key:String

Returns
String
getUI()method 
public function getUI(target:Component):ComponentUI

Returns the component LookAndFeel specified UI object

Parameters
target:Component

Returns
ComponentUI — target's UI object, or null if there is not his UI object
getUint()method 
public function getUint(key:String):uintParameters
key:String

Returns
uint
put()method 
public override function put(key:*, value:*):*

Sets the value of key to value. If value is null, the key is removed from the table.

Parameters
key:* — the unique Object who's value will be used to retrieve the data value associated with it
 
value:* — the new Object to store as data under that key

Returns
* — the previous Object value, or null

See also

putDefaults()
org.aswing.utils.HashMap.put()
putDefaults()method 
public function putDefaults(keyValueList:Array):void

Puts all of the key/value pairs in the database.

Parameters
keyValueList:Array — an array of key/value pairs

See also

put()
org.aswing.utils.Hashtable.put()