Java 类com.vaadin.server.ErrorHandler 实例源码

项目:garantia    文件:ReporteSiniestro.java   
@Override
protected void setErrorHandler() {
    nroSiniestro.setErrorHandler(new ErrorHandler() {

        private static final long serialVersionUID = 4325669635885170314L;

        @Override
        public void error(com.vaadin.server.ErrorEvent event) {
            log.debug("Ocurrio un error al levantar los parametros de busqueda.");

            nroSiniestro.setValue(null);
            tableSiniestros.removeAllItems();
            btnExportar.setEnabled(false);
        }
    });
}
项目:enterprise-app    文件:EnterpriseApplication.java   
/**
 * Adds a default transaction listener.
 */
@Override
public void init() {
    final LegacyApplication app = this;

    VaadinSession.getCurrent().setErrorHandler(new ErrorHandler() {
        private static final long serialVersionUID = 1L;

        @Override
        public void error(ErrorEvent event) {
            Utils.terminalError(event, app);
        }
    });

    if(!Db.isInitialized()) {
        logger.warn("No TransactionListener added: Database is not initialized. You can initialize a database configuring a new 'DefaultTransactionListener' in your web.xml and adding a 'configuration.properties' file to your classpath.");
    }

    VaadinSession.getCurrent().setAttribute("application", this);
}
项目:garantia    文件:AreasView.java   
private void setErrorHandler() {
    // TODO Auto-generated method stub
    txtNombre.setErrorHandler(new ErrorHandler() {

        private static final long serialVersionUID = -7866511259549430845L;

        @Override
        public void error(com.vaadin.server.ErrorEvent event) {
            txtNombre.setValue(null);
            btnExportar.setEnabled(false);
        }
    });
}
项目:garantia    文件:PerfilesView.java   
private void setErrorHandler() {
    // TODO Auto-generated method stub
    txtNombre.setErrorHandler(new ErrorHandler() {

        private static final long serialVersionUID = -7866511259549430845L;

        @Override
        public void error(com.vaadin.server.ErrorEvent event) {
            txtNombre.setValue(null);
            btnExportar.setEnabled(false);
        }
    });
}
项目:vaadin-vertx-samples    文件:VertxPushHandler.java   
/**
 * Call the session's {@link ErrorHandler}, if it has one, with the given
 * exception wrapped in an {@link ErrorEvent}.
 */
private void callErrorHandler(VaadinSession session, Exception e) {
    try {
        ErrorHandler errorHandler = ErrorEvent.findErrorHandler(session);
        if (errorHandler != null) {
            errorHandler.error(new ErrorEvent(e));
        }
    } catch (Exception ex) {
        // Let's not allow error handling to cause trouble; log fails
        getLogger().log(Level.WARNING, "ErrorHandler call failed", ex);
    }
}
项目:hypothesis    文件:AbstractRunningEvent.java   
protected AbstractRunningEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:FinishBranchEvent.java   
public FinishBranchEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:StartTestEvent.java   
public StartTestEvent(SimpleTest test, ErrorHandler errorHandler) {
    super(errorHandler);
    this.test = test;
}
项目:hypothesis    文件:ErrorTestEvent.java   
public ErrorTestEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:AfterFinishSlideEvent.java   
public AfterFinishSlideEvent(Direction direction, ErrorHandler errorHandler) {
    super(errorHandler);
    this.direction = direction;
}
项目:hypothesis    文件:AfterPrepareTestEvent.java   
public AfterPrepareTestEvent(SimpleTest test, ErrorHandler errorHandler) {
    super(errorHandler);
    this.test = test;
}
项目:hypothesis    文件:CloseTestEvent.java   
public CloseTestEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:AfterRenderContentEvent.java   
public AfterRenderContentEvent(Component component, ErrorHandler errorHandler) {
    super(component, errorHandler);
}
项目:hypothesis    文件:AbstractUserEvent.java   
protected AbstractUserEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:ActionEvent.java   
public ActionEvent(Action action, ErrorHandler errorHandler) {
    super(errorHandler);
    this.action = action;
}
项目:hypothesis    文件:ContinueTestEvent.java   
public ContinueTestEvent(SimpleTest test, ErrorHandler errorHandler) {
    super(errorHandler);
    this.test = test;
}
项目:hypothesis    文件:BreakTestEvent.java   
public BreakTestEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:NextBranchEvent.java   
public NextBranchEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:AbstractProcessEvent.java   
protected AbstractProcessEvent(ErrorHandler errorHandler) {
    this.timestamp = new Date();
    this.errorHandler = errorHandler;
}
项目:hypothesis    文件:AbstractProcessEvent.java   
public ErrorHandler getErrorHandler() {
    return errorHandler;
}
项目:hypothesis    文件:AbstractProcessEvent.java   
public void setErrorHandler(ErrorHandler errorHandler) {
    this.errorHandler = errorHandler;
}
项目:hypothesis    文件:FinishSlideEvent.java   
public FinishSlideEvent(Direction direction, ErrorHandler errorHandler) {
    super(errorHandler);
    this.direction = direction;
}
项目:hypothesis    文件:PriorSlideEvent.java   
public PriorSlideEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:AbstractTestEvent.java   
protected AbstractTestEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:NextTaskEvent.java   
public NextTaskEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:RenderContentEvent.java   
public RenderContentEvent(Component component, ErrorHandler errorHandler) {
    super(component, errorHandler);
}
项目:hypothesis    文件:AbstractContentEvent.java   
protected AbstractContentEvent(Component component, ErrorHandler errorHandler) {
    super(errorHandler);
    this.component = component;
}
项目:hypothesis    文件:NextSlideEvent.java   
public NextSlideEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:FinishTestEvent.java   
public FinishTestEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}
项目:hypothesis    文件:FinishTaskEvent.java   
public FinishTaskEvent(ErrorHandler errorHandler) {
    super(errorHandler);
}