109110111112113114115116117118119
throw new IllegalStateException("box must implement HasSource.."); } this.box = box; box.addStyleName(appearance.css().box()); main = new TouchPanel(); initWidget(main); main.add(box); ((HasSource) box).setSource(this);
105106107108109110111112113114115
if (!(box instanceof HasSource)) { throw new IllegalStateException("box must implement HasSource.."); } this.box = box; box.addStyleName(appearance.css().box()); main = new TouchPanel(); initWidget(main); setEnabled(true); setInvalid(false);