Files
narya/src/java/com/threerings/presents/tools/dobject_field.tmpl
T
Andrzej Kapolka ee74481cad Much work on generalizing the notion of message "transport" and
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
2008-05-16 01:47:33 +00:00

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