simpletransport.java.svn-base

来自「开源项目openfire的完整源程序」· SVN-BASE 代码 · 共 70 行

SVN-BASE
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 SimpleTransport implements Transport {    private String serviceName;    public SimpleTransport(String serviceName){        this.serviceName = serviceName;    }    public String getTitle(){        return Res.getString("title.simple.registration");    }    public String getInstructions() {        return Res.getString("message.enter.simple");    }    public Icon getIcon() {        return SparkRes.getImageIcon(SparkRes.SIMPLE_TRANSPORT_ACTIVE_IMAGE);    }    public Icon getInactiveIcon() {        return SparkRes.getImageIcon(SparkRes.SIMPLE_TRANSPORT_INACTIVE_IMAGE);    }    public String getServiceName() {        return serviceName;    }    public String getName(){        return "SIMPLE";    }    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 + -
显示快捷键?