org.apache.wicket.markup.html.WebPage.getMarkup()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.apache.wicket.markup.html.WebPage.getMarkup()方法的一些代码示例,展示了WebPage.getMarkup()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPage.getMarkup()方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebPage
类名称:WebPage
方法名:getMarkup

WebPage.getMarkup介绍

[英]Gets the markup type for a WebPage, which is "html" by default. Support for pages in another markup language, such as VXML, would require the creation of a different Page subclass in an appropriate package under org.apache.wicket.markup. To support VXML (voice markup), one might create the package org.apache.wicket.markup.vxml and a subclass of Page called VoicePage.
[中]获取网页的标记类型,默认为“html”。支持另一种标记语言(如VXML)中的页面,需要在org下的适当包中创建不同的页面子类。阿帕奇。维克特。加成为了支持VXML(语音标记),可以创建包org。阿帕奇。维克特。加成vxml和Page的一个子类VoicePage。

代码示例

代码示例来源:origin: apache/wicket

@Override
public IMarkupFragment getMarkup()
{
  IMarkupFragment calculatedMarkup = null;
  if (pageMarkup == null)
  {
    IMarkupFragment markup = super.getMarkup();
    if (markup != null && markup != Markup.NO_MARKUP)
    {
      calculatedMarkup = markup;
      pageMarkup = markup;
    }
  }
  else
  {
    calculatedMarkup = pageMarkup;
  }
  return calculatedMarkup;
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
public IMarkupFragment getMarkup()
{
  IMarkupFragment calculatedMarkup = null;
  if (pageMarkup == null)
  {
    IMarkupFragment markup = super.getMarkup();
    if (markup != null && markup != Markup.NO_MARKUP)
    {
      calculatedMarkup = markup;
      pageMarkup = markup;
    }
  }
  else
  {
    calculatedMarkup = pageMarkup;
  }
  return calculatedMarkup;
}

代码示例来源:origin: com.premiumminds/pm-wicket-utils

@Override
public IMarkupFragment getMarkup()
{
  IMarkupFragment calculatedMarkup = null;
  if (pageMarkup == null)
  {
    IMarkupFragment markup = super.getMarkup();
    if (markup != null && markup != Markup.NO_MARKUP)
    {
      calculatedMarkup = markup;
      pageMarkup = markup;
    }
  }
  else
  {
    calculatedMarkup = pageMarkup;
  }
  return calculatedMarkup;
}

相关文章