This interface defines a client property mechanism.
Client property is a concept in TWaver that can carry
any property with any type data and can be installed
on any classes implements this interface. As the
subclass of this interface,
Element
and
Alarm
are all able to carry client
properties.
clientProperties:ICollection
[read-only]
Get a ICollection that contians all client proerty name.
Implementation public function get clientProperties():ICollection
public function getClient(clientProp:String):*
Get the specified client property.
Parameters
| clientProp:String — name of the client property want to get.
|
Returns | * — the client property value.
|
public function setClient(clientProp:String, newValue:*):IClient
Set a client property by specified property name and property value.
Parameters
| clientProp:String — the name of client property
|
|
| newValue:* — value of the client property
|
Returns | IClient — the IClient itself. So we can write code
in a way like: client.setClient("a", a).setClient("b", b).setClient("c", c);
|
Thu Jun 30 2011, 03:49 PM +08:00