He just set value for an Icon field using ruby. You can get these values from the Properties of UI element.
One such eg.
Most of the std. events are self explanatory. There is not much documentation available for UI Designer functions. You can do trials to know more about it. That's how you even practice things. Right?