ee74481cad
allowing the use of annotations to customize transport for DObject fields and service/receiver methods. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5099 542714f4-19e9-0310-aa3c-eee0fc999fb1
37 lines
1.3 KiB
Cheetah
37 lines
1.3 KiB
Cheetah
/**
|
|
* Requests that the <code>$field</code> field be set to the
|
|
* specified value. The local value will be updated immediately and an
|
|
* event will be propagated through the system to notify all listeners
|
|
* that the attribute did change. Proxied copies of this object (on
|
|
* clients) will apply the value change when they received the
|
|
* attribute changed notification.
|
|
*/
|
|
public void set$upfield ($type value)
|
|
{
|
|
$type ovalue = this.$field;
|
|
requestAttributeChange(
|
|
$capfield, $wrapfield, $wrapofield,
|
|
$transport);
|
|
this.$field = $clonefield;
|
|
}
|
|
#if ($elemtype)
|
|
|
|
/**
|
|
* Requests that the <code>index</code>th element of
|
|
* <code>$field</code> field be set to the specified value.
|
|
* The local value will be updated immediately and an event will be
|
|
* propagated through the system to notify all listeners that the
|
|
* attribute did change. Proxied copies of this object (on clients)
|
|
* will apply the value change when they received the attribute
|
|
* changed notification.
|
|
*/
|
|
public void set${upfield}At ($elemtype value, int index)
|
|
{
|
|
$elemtype ovalue = this.$field[index];
|
|
requestElementUpdate(
|
|
$capfield, index, $wrapelem, $wrapoelem,
|
|
$transport);
|
|
this.$field[index] = value;
|
|
}
|
|
#end
|