org.sakaiproject.tool.api.Placement.getTitle()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(107)

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

Placement.getTitle介绍

[英]Access the tool placement title.
[中]访问工具放置标题。

代码示例

代码示例来源:origin: sakaiproject/sakai

public String getTitle()
{
  if (m_placement != null)
  {
    return m_placement.getTitle();
  }
  return "";
}

代码示例来源:origin: org.sakaiproject.velocity/sakai-velocity-tool

public String getTitle()
{
  if (m_placement != null)
  {
    return m_placement.getTitle();
  }
  return "";
}

代码示例来源:origin: sakaiproject/sakai

private String placementDisplay()
{
  ResourceBundle rb = rbDefault;
  StringBuilder sb = new StringBuilder();
  try
  {
    Placement p = ToolManager.getCurrentPlacement();
    if (p != null)
    {
      sb.append(rb.getString("bugreport.placement")).append("\n");
      sb.append(rb.getString("bugreport.placement.id")).append(p.getToolId())
          .append("\n");
      sb.append(rb.getString("bugreport.placement.context")).append(
          p.getContext()).append("\n");
      sb.append(rb.getString("bugreport.placement.title")).append(p.getTitle())
          .append("\n");
    }
    else
    {
      sb.append(rb.getString("bugreport.placement")).append("\n");
      sb.append(rb.getString("bugreport.placement.none")).append("\n");
    }
  }
  catch (Exception ex)
  {
    log.error("Failed to generate placement display", ex);
    sb.append("Error " + ex.getMessage());
  }
  return sb.toString();
}

代码示例来源:origin: sakaiproject/sakai

public static boolean sakaiInfo(Properties props, Placement placement, ResourceLoader rb) {
  log.debug("placement={}", placement.getId());
  log.debug("placement title={}", placement.getTitle());
  String context = placement.getContext();
  log.debug("ContextID={}", context);
  return sakaiInfo(props, context, placement.getId(), rb);
}

代码示例来源:origin: org.sakaiproject.basiclti/basiclti-common

public static boolean sakaiInfo(Properties props, Placement placement, ResourceLoader rb)
{
  log.debug("placement={}", placement.getId());
  log.debug("placement title={}", placement.getTitle());
  String context = placement.getContext();
  log.debug("ContextID={}", context);
  return sakaiInfo(props, context, placement.getId(), rb);
}

相关文章