Scope Model ObjectsThe Model Objects have variables to hold data from the screen components and methods to act on the data:
public class Hello2Model { private String name; public void setName(String inName) { name = inName; } public String getName() { return name; } public void changeNameToFred() { setName("Fred"); } } |