WARNING: This class should typically NOT be used directly.
@author Eelco Hillenius @author Jonathan Locke
116711681169117011711172117311741175117611771178117911801181118211831184118511861187
} } 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(); } } }
1935193619371938193919401941194219431944194519461947
* * @return feedback messages instance */ public FeedbackMessages getFeedbackMessages() { FeedbackMessages messages = getMetaData(FEEDBACK_KEY); if (messages == null) { messages = new FeedbackMessages(); setMetaData(FEEDBACK_KEY, messages); } return messages; }
194919501951195219531954195519561957195819591960
/** * @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); }
196319641965196619671968196919701971197219731974
* @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; }
117611771178117911801181118211831184118511861187118811891190119111921193119411951196
1944194519461947194819491950195119521953195419551956
195819591960196119621963196419651966196719681969
197219731974197519761977197819791980198119821983
116111621163116411651166116711681169117011711172117311741175117611771178117911801181
1929193019311932193319341935193619371938193919401941