irctransport.java
来自「开源项目openfire的完整源程序」· Java 代码 · 共 70 行
JAVA
70 行
/** * $Revision: $ * $Date: $ * * Copyright (C) 2007 Jive Software. All rights reserved. * * This software is published under the terms of the GNU Lesser Public License (LGPL), * a copy of which is included in this distribution. */package org.jivesoftware.sparkimpl.plugin.gateways.transports;import org.jivesoftware.resource.SparkRes;import org.jivesoftware.resource.Res;import javax.swing.Icon;/** * */public class IRCTransport implements Transport { private String serviceName; public IRCTransport(String serviceName){ this.serviceName = serviceName; } public String getTitle(){ return Res.getString("title.irc.registration"); } public String getInstructions() { return Res.getString("message.enter.irc"); } public Icon getIcon() { return SparkRes.getImageIcon(SparkRes.IRC_TRANSPORT_ACTIVE_IMAGE); } public Icon getInactiveIcon() { return SparkRes.getImageIcon(SparkRes.IRC_TRANSPORT_INACTIVE_IMAGE); } public String getServiceName() { return serviceName; } public String getName(){ return "IRC"; } public void setServiceName(String serviceName) { this.serviceName = serviceName; } public Boolean requiresUsername() { return true; } public Boolean requiresPassword() { return false; } public Boolean requiresNickname() { return true; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?