trackbacklinkview.java
来自「pebble-blog 博客源码博客源码博客源码」· Java 代码 · 共 37 行
JAVA
37 行
package net.sourceforge.pebble.web.view.impl;
import net.sourceforge.pebble.web.view.HtmlView;
import net.sourceforge.pebble.domain.BlogEntry;
import net.sourceforge.pebble.Constants;
import java.util.List;
import java.util.Collections;
/**
* Represents the page that displays the TrackBack link for a blog entry.
*
* @author Simon Brown
*/
public class TrackBackLinkView extends HtmlView {
/**
* Gets the title of this view.
*
* @return the title as a String
*/
public String getTitle() {
BlogEntry blogEntry = (BlogEntry)getModel().get(Constants.BLOG_ENTRY_KEY);
return blogEntry.getTitle();
}
/**
* Gets the URI that this view represents.
*
* @return the URI as a String
*/
public String getUri() {
return "/WEB-INF/jsp/trackBackLink.jsp";
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?