protected boolean doSetViolations(Iterable<SimpleViolation> violations) { checkObject(); SimpleViolation.pushViolations(violations, asEditorDriver(), getViolationKeyMethod()); // Collect the errors, which will take care of co-editor chains. errors = new ArrayList<EditorError>(); accept(new ErrorCollector(errors)); return hasErrors(); }
protected void doEdit(T object) { checkEditor(); object = delegate.ensureMutable(object); this.object = object; delegate.setObject(object); accept(createInitializerVisitor()); DirtCollector c = new DirtCollector(); accept(c); leafValueMap = c.getLeafValues(); }
protected void doInitialize(E editor) { this.editor = editor; delegate = createDelegate(); configureDelegate(delegate); }
protected void doFlush() { checkObject(); errors = new ArrayList<EditorError>(); accept(new Flusher()); accept(new ErrorCollector(errors)); }
@Override public String toString() { if (GWT.isProdMode()) { return super.toString(); } else { return editor == null ? "Uninitialized" : EditorHierarchyPrinter.toString(asEditorDriver()); } }
protected void doInitialize(EventBus eventBus, RequestFactory requestFactory, E editor) { this.eventBus = eventBus; this.factory = requestFactory; super.doInitialize(editor); PathCollector c = new PathCollector(); accept(c); this.paths = c.getPaths(); }
public boolean isDirty() { DirtCollector c = new DirtCollector(); accept(c); return c.isDirty() || !leafValueMap.equals(c.getLeafValues()); }
public boolean setConstraintViolations(final Iterable<ConstraintViolation<?>> violations) { return doSetViolations(violations == null ? null : SimpleViolation .iterableFromConstrantViolations(violations)); }
protected void configureDelegate(AbstractEditorDelegate<T, E> rootDelegate) { rootDelegate.initialize("", getEditor()); }
protected void doFlush() { checkObject(); errors = new ArrayList<EditorError>(); accept(new Flusher()); accept(new ErrorCollector(errors)); }
@Override public String toString() { if (GWT.isProdMode()) { return super.toString(); } else { return editor == null ? "Uninitialized" : EditorHierarchyPrinter.toString(asEditorDriver()); } }
protected void doInitialize(EventBus eventBus, RequestFactory requestFactory, E editor) { this.eventBus = eventBus; this.factory = requestFactory; super.doInitialize(editor); PathCollector c = new PathCollector(); accept(c); this.paths = c.getPaths(); }
public boolean isDirty() { DirtCollector c = new DirtCollector(); accept(c); return c.isDirty() || !leafValueMap.equals(c.getLeafValues()); }
public boolean setConstraintViolations(final Iterable<ConstraintViolation<?>> violations) { return doSetViolations(violations == null ? null : SimpleViolation .iterableFromConstrantViolations(violations)); }
protected void configureDelegate(AbstractEditorDelegate<T, E> rootDelegate) { rootDelegate.initialize("", getEditor()); }
protected boolean doSetViolations(Iterable<SimpleViolation> violations) { checkObject(); SimpleViolation.pushViolations(violations, asEditorDriver(), getViolationKeyMethod()); // Collect the errors, which will take care of co-editor chains. errors = new ArrayList<EditorError>(); accept(new ErrorCollector(errors)); return hasErrors(); }
protected void doEdit(T object) { checkEditor(); object = delegate.ensureMutable(object); this.object = object; delegate.setObject(object); accept(createInitializerVisitor()); DirtCollector c = new DirtCollector(); accept(c); leafValueMap = c.getLeafValues(); }
protected void doFlush() { checkObject(); errors = new ArrayList<EditorError>(); accept(new Flusher()); accept(new ErrorCollector(errors)); }
protected void doInitialize(E editor) { this.editor = editor; delegate = createDelegate(); configureDelegate(delegate); }
@Override public String toString() { if (GWT.isProdMode()) { return super.toString(); } else { return editor == null ? "Uninitialized" : EditorHierarchyPrinter.toString(asEditorDriver()); } }