org.apache.wicket.markup.html.basic.Label.modelChanged()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(116)

本文整理了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

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;
 }
};

相关文章