本文整理了Java中org.apache.wicket.markup.html.basic.Label.modelChanged()
方法的一些代码示例,展示了Label.modelChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.modelChanged()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:modelChanged
暂无
代码示例来源:origin: net.ontopia/ontopoly-editor
protected void onBeforeRender() {
super.onBeforeRender();
String lat = get(thetopic.getTopic().getTopicIF(), PSI.ON_LATITUDE);
if (lat == null)
lat = "59.92";
String lng = get(thetopic.getTopic().getTopicIF(), PSI.ON_LONGITUDE);
if (lng == null)
lng = "10.74";
// we can't call getCallbackUrl() in the constructor, but here it's
// possible, so we insert the URI into the label we created above,
// and everything is hunky dory.
String js = "var ajaxurl = '" + behave.getCallbackUrl() + "';\n";
js += "var latitude = " + lat + ";\n";
js += "var longitude = " + lng + ";\n";
ajaxurllabel.modelChanging();
ajaxurlmodel.setObject(js);
ajaxurllabel.modelChanged();
}
代码示例来源:origin: ontopia/ontopia
@Override
protected void onBeforeRender() {
super.onBeforeRender();
String lat = get(thetopic.getTopic().getTopicIF(), PSI.ON_LATITUDE);
if (lat == null)
lat = "59.92";
String lng = get(thetopic.getTopic().getTopicIF(), PSI.ON_LONGITUDE);
if (lng == null)
lng = "10.74";
// we can't call getCallbackUrl() in the constructor, but here it's
// possible, so we insert the URI into the label we created above,
// and everything is hunky dory.
String js = "var ajaxurl = '" + behave.getCallbackUrl() + "';\n";
js += "var latitude = " + lat + ";\n";
js += "var longitude = " + lng + ";\n";
ajaxurllabel.modelChanging();
ajaxurlmodel.setObject(js);
ajaxurllabel.modelChanged();
}
代码示例来源:origin: micromata/projectforge
/**
* @see org.projectforge.web.dialog.ModalQuestionDialog#onCloseButtonSubmit(org.apache.wicket.ajax.AjaxRequestTarget)
*/
@Override
protected boolean onCloseButtonSubmit(final AjaxRequestTarget target)
{
super.onCloseButtonSubmit(target);
if (isConfirmed() == true) {
file.setObject(null);
filename.setObject(null);
main.setVisible(true);
if (textLinkPanel != null) {
textLinkPanel.getLabel().modelChanged();
target.add(textLinkPanel.getLink());
}
target.add(deleteFileButton.getButton(), main, removeFileSelection);
}
return true;
}
};
内容来源于网络,如有侵权,请联系作者删除!