icqtransport.java.svn-base
来自「开源项目openfire的完整源程序」· SVN-BASE 代码 · 共 71 行
SVN-BASE
71 行
/**
* $Revision: $
* $Date: $
*
* Copyright (C) 2006 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.Res;
import org.jivesoftware.resource.SparkRes;
import javax.swing.Icon;
/**
*
*/
public class ICQTransport implements Transport {
private String serviceName;
public ICQTransport(String serviceName){
this.serviceName = serviceName;
}
public String getTitle(){
return Res.getString("title.icq.registration");
}
public String getInstructions() {
return Res.getString("message.enter.icq");
}
public Icon getIcon() {
return SparkRes.getImageIcon(SparkRes.ICQ_TRANSPORT_ACTIVE_IMAGE);
}
public Icon getInactiveIcon() {
return SparkRes.getImageIcon(SparkRes.ICQ_TRANSPORT_INACTIVE_IMAGE);
}
public String getName(){
return "ICQ";
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public Boolean requiresUsername() {
return true;
}
public Boolean requiresPassword() {
return true;
}
public Boolean requiresNickname() {
return false;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?