Update Widget.java

More efficiently.. containsAction(), getChildren()