How to reference a gui control in java methods?

I am trying to set values for the gui controls inside java methods (action) so as to make the portal dynamic. But controls are often referenced thru binding expression in properties view. How can they be referenced in a Java methods?