WARNING: This class should typically NOT be used directly.
@author Eelco Hillenius @author Jonathan Locke
194319441945194619471948194919501951195219531954
/** * @return True if this component has an error message */ public final boolean hasErrorMessage() { FeedbackMessages messages = getMetaData(FEEDBACK_KEY); if (messages == null) { return false; } return messages.hasMessage(FeedbackMessage.ERROR); }
195719581959196019611962196319641965196619671968
* @return True if this component has some kind of feedback message * */ public final boolean hasFeedbackMessage() { FeedbackMessages messages = getMetaData(FEEDBACK_KEY); if (messages == null) { return false; } return messages.size() > 0; }
120312041205120612071208120912101211121212131214121512161217121812191220122112221223
} } private void detachFeedback() { FeedbackMessages feedback = getMetaData(FEEDBACK_KEY); if (feedback != null) { feedback.clear(getApplication().getApplicationSettings() .getFeedbackMessageCleanupFilter()); if (feedback.isEmpty()) { setMetaData(FEEDBACK_KEY, null); } else { feedback.detach(); } } }
1922192319241925192619271928192919301931193219331934
* * @return feedback messages instance */ public FeedbackMessages getFeedbackMessages() { FeedbackMessages messages = getMetaData(FEEDBACK_KEY); if (messages == null) { messages = new FeedbackMessages(); setMetaData(FEEDBACK_KEY, messages); } return messages; }
193619371938193919401941194219431944194519461947
195019511952195319541955195619571958195919601961
119311941195119611971198119912001201120212031204120512061207120812091210121112121213
} } private void detachFeedback() { FeedbackMessages feedback = getMetaData(FEEDBACK_KEY); if (feedback != null) { final int removed = feedback.clear(getApplication().getApplicationSettings() .getFeedbackMessageCleanupFilter()); if (feedback.isEmpty()) { setMetaData(FEEDBACK_KEY, null); } else { feedback.detach(); } } }
1954195519561957195819591960196119621963196419651966
196819691970197119721973197419751976197719781979
198219831984198519861987198819891990199119921993