org.gwtbootstrap3.client.ui.base.mixin
Class ErrorHandlerMixin<V>

java.lang.Object
  extended by org.gwtbootstrap3.client.ui.base.mixin.ErrorHandlerMixin<V>
Type Parameters:
V - the type of editor value.
All Implemented Interfaces:
Editor<V>, HasEditorErrors<V>, HasErrorHandler

public class ErrorHandlerMixin<V>
extends Object
implements HasEditorErrors<V>, HasErrorHandler

Mixin to handle error handler support.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor
Editor.Ignore, Editor.Path
 
Constructor Summary
ErrorHandlerMixin(Widget widget)
          Mixin for the ErrorHandler implementation.
 
Method Summary
 void clearErrors()
          Clear the errors.
 ErrorHandler getErrorHandler()
          Gets the error handler.
 ErrorHandlerType getErrorHandlerType()
          Gets the error handler type.
 void setErrorHandler(ErrorHandler handler)
          Sets the error handler.
 void setErrorHandlerType(ErrorHandlerType type)
          Sets the error handler type.
 void showErrors(List<EditorError> errors)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandlerMixin

public ErrorHandlerMixin(Widget widget)
Mixin for the ErrorHandler implementation.

Parameters:
widget - the widget
Method Detail

clearErrors

public void clearErrors()
Clear the errors.


getErrorHandler

public ErrorHandler getErrorHandler()
Gets the error handler.

Specified by:
getErrorHandler in interface HasErrorHandler
Returns:
the error handler

getErrorHandlerType

public ErrorHandlerType getErrorHandlerType()
Gets the error handler type.

Specified by:
getErrorHandlerType in interface HasErrorHandler
Returns:
the error handler type

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
Sets the error handler.

Specified by:
setErrorHandler in interface HasErrorHandler
Parameters:
handler - the new error handler

setErrorHandlerType

public void setErrorHandlerType(ErrorHandlerType type)
Sets the error handler type.

Specified by:
setErrorHandlerType in interface HasErrorHandler
Parameters:
type - the new error handler type

showErrors

public void showErrors(List<EditorError> errors)

Specified by:
showErrors in interface HasEditorErrors<V>


Copyright © 2015. All rights reserved.