本文整理汇总了Java中org.apache.wicket.feedback.FeedbackMessage.isLevel方法的典型用法代码示例。如果您正苦于以下问题:Java FeedbackMessage.isLevel方法的具体用法?Java FeedbackMessage.isLevel怎么用?Java FeedbackMessage.isLevel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.feedback.FeedbackMessage
的用法示例。
在下文中一共展示了FeedbackMessage.isLevel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasMessages
import org.apache.wicket.feedback.FeedbackMessage; //导入方法依赖的package包/类
public final boolean hasMessages(int level) {
List<FeedbackMessage> messages = getFeedbackListView().getModelObject();
for (FeedbackMessage msg : messages) {
if (msg.isLevel(level)) {
return true;
}
}
return false;
}
示例2: anyMessage
import org.apache.wicket.feedback.FeedbackMessage; //导入方法依赖的package包/类
public boolean anyMessage(int level) {
List<FeedbackMessage> msgs = getCurrentMessages();
for (FeedbackMessage msg : msgs) {
if (msg.isLevel(level)) {
return true;
}
}
return false;
}
示例3: anyMessage
import org.apache.wicket.feedback.FeedbackMessage; //导入方法依赖的package包/类
/**
* Search messages that this panel will render, and see if there is any
* message of the given level.
*
* @param level
* the level, see FeedbackMessage
* @return whether there is any message for this panel of the given level
*/
private boolean anyMessage(int level) {
List<FeedbackMessage> msgs = getCurrentMessages();
for (FeedbackMessage msg : msgs) {
if (msg.isLevel(level)) {
return true;
}
}
return false;
}
示例4: anyMessage
import org.apache.wicket.feedback.FeedbackMessage; //导入方法依赖的package包/类
/**
* Search messages that this panel will render, and see if there is any message of the given level.
*
* @param level
* the level, see FeedbackMessage
* @return whether there is any message for this panel of the given level
*/
public final boolean anyMessage(int level) {
List<FeedbackMessage> msgs = getCurrentMessages();
for (FeedbackMessage msg : msgs) {
if (msg.isLevel(level)) {
return true;
}
}
return false;
}