org.apertereports.ui
Class ErrorLabelHandler

java.lang.Object
  extended by org.apertereports.ui.ErrorLabelHandler

public class ErrorLabelHandler
extends Object

Class defines simple handler for error messages presented on label component

Author:
Tomasz Serafin, BlueSoft sp. z o. o.

Constructor Summary
ErrorLabelHandler(com.vaadin.ui.Label label)
          Creates handler
 
Method Summary
 void clearMessage()
          Clears error message and causes the label to be invisible
 void setMessage(String msgId)
          Sets error message and causes the label to be visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorLabelHandler

public ErrorLabelHandler(com.vaadin.ui.Label label)
Creates handler

Parameters:
label - Label on which error messages are presented
Method Detail

setMessage

public void setMessage(String msgId)
Sets error message and causes the label to be visible

Parameters:
msgId - Error message id or message. The message shouldn't contain any HTML tags or HTML special characters

clearMessage

public void clearMessage()
Clears error message and causes the label to be invisible



Copyright © 2011-2013. All Rights Reserved.