?? link.java
字號:
package com.heaton.bot;/** * Very simple data class to hold HTML links. * This class holds both the actual link URL, * as well as the ALT tag. * * Copyright 2001-2003 by Jeff Heaton (http://www.jeffheaton.com) * * @author Jeff Heaton * @version 1.2 */public class Link { /** * The ALT attribute. */ protected String alt; /** * The link attribute. */ protected String href; /** * The link prompt text */ protected String prompt; /** * The constructor. * * @param alt The alt attribute for this link. * @param href The URL this link goes to. * @param prompt The prompt(if any) for this link. */ public Link(String alt,String href,String prompt) { this.alt = alt; this.href = href; this.prompt = prompt; } /** * Returns the ALT attribute. * * @return The ALT attribute. */ public String getALT() { return alt; } /** * Returns the link attribute. * * @return The link(HREF) attribute. */ public String getHREF() { return href; } /** * Returns the link attribute. * * @return The link(HREF) attribute. */ public String getPrompt() { return prompt; } /** * Returns the link URL. * * @return The link URL. */ public String toString() { return href; } /** * Set the prompt. * * @param prompt The prompt for this link. */ public void setPrompt(String prompt) { this.prompt = prompt; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -