private View getView(String id, Component c) { Collection<View> views = UIUtil.getComponentsExtending(c, View.class); for (View view : views) { if (view.getId().equals(id)) { return view; } } return null; }
public void dispose() { for (ViewContainer container : UIUtil.getComponentsExtending(this, ViewContainer.class)) { container.dispose(); } }