📄 sampleitem.java
字号:
/*
* SSL-Explorer
*
* Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package com.sslexplorer.sample;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.sslexplorer.navigation.AbstractFavoriteItem;
/**
* <p>
* The SampleItem which is used for sorting and viewing.
*
* @author James D Robinson <a href="mailto:james@3sp.com"><james@3sp.com></a>
*
*/
public class SampleItem extends AbstractFavoriteItem {
/**
* @param sample The sample object.
* @param policies The List of policies.
*/
public SampleItem(Sample sample, List policies) {
super(sample, policies);
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.navigation.FavoriteItem#getId()
*/
public String getFavoriteId() {
return String.valueOf(((Sample) this.getResource()).getResourceId());
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.navigation.FavoriteItem#getOnClick()
*/
public String getOnClick() {
return "NO ON CLICK";
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.navigation.FavoriteItem#getLink()
*/
public String getLink(String referer) {
return "NO CLICK";
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.navigation.FavoriteItem#getTarget()
*/
public String getTarget() {
return "_self";
}
/* (non-Javadoc)
* @see com.sslexplorer.navigation.AbstractFavoriteItem#getFavoriteName()
*/
public String getFavoriteName() {
return getResource().getResourceName();
}
/* (non-Javadoc)
* @see com.sslexplorer.navigation.AbstractFavoriteItem#getFavoriteSubType()
*/
public String getFavoriteSubType() {
return "";
}
/* (non-Javadoc)
* @see com.sslexplorer.navigation.AbstractFavoriteItem#getSmallIconPath(javax.servlet.http.HttpServletRequest)
*/
public String getSmallIconPath(HttpServletRequest request) {
return null;
}
/* (non-Javadoc)
* @see com.sslexplorer.navigation.AbstractFavoriteItem#getLargeIconPath(javax.servlet.http.HttpServletRequest)
*/
public String getLargeIconPath(HttpServletRequest request) {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -