imagecontent.java
来自「《Java案例开发》源代码252KB大小」· Java 代码 · 共 58 行
JAVA
58 行
/* * ImageContent.java * * Created on 2003年11月5日, 下午4:38 */package romulus;/** * This class is used to present the image content item. * Such class will not be implemented in the Demo. * @author Romulus * @version 1.0 */public class ImageContent implements ContentItem { ImageContent(){ } /** * Such method is used to get the Int_Type of the content. * @return Int_Type_XXXContent. */ public int getIntContentType() { return ContentItem.Int_Type_ImageContent; } /** * Such method is used to get the Str_Type of the content. * @return Str_Type_XXXContent. */ public String getStrContentType() { return ContentItem.Str_Type_ImageContent; } /** * Such type is used to get the actual content Object. * @return The actual content object. Will be a java.awt.Image. */ public Object getContent() { return null; } /** * Get the String description of the Content. * @return The String can be used to detail the content. */ public String getString() { return null; } /** The method used to accept the Visitor to do something. */ public void Accept(Visitor v) throws java.sql.SQLException, RomulusException{ v.VisitContentItem(this); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?