settings.java

来自「一个JAVA做的FTP软件,带源码的,可以很好的进行二次开发,,并带有详细说明文」· Java 代码 · 共 503 行 · 第 1/2 页

JAVA
503
字号
    {        String what = p.getProperty("jftp.socksProxyHost", "");        return what;    }    public static String getSocksProxyPort()    {        String what = p.getProperty("jftp.socksProxyPort", "");        return what;    }    public static boolean getUseBackground()    {        String what = p.getProperty("jftp.useBackground", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getEnableResuming()    {        String what = p.getProperty("jftp.enableResuming", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getEnableDebug()    {        String what = p.getProperty("jftp.enableDebug", defaultEnableDebug);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getDisableLog()    {        String what = p.getProperty("jftp.disableLog", "false");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getEnableStatusAnimation()    {        String what = p.getProperty("jftp.gui.enableStatusAnimation", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getAskToDelete()    {        String what = p.getProperty("jftp.gui.askToDelete", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static String getLookAndFeel()    {        return p.getProperty("jftp.gui.look", null);    }    public static boolean getEnableMultiThreading()    {        String what = p.getProperty("jftp.enableMultiThreading",                                    enableMultiThreading);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getEnableSmbMultiThreading()    {        String what = p.getProperty("jftp.enableSmbMultiThreading",                                    enableSmbMultiThreading);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getEnableSftpMultiThreading()    {        String what = p.getProperty("jftp.enableSftpMultiThreading",                                    enableSftpMultiThreading);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getNoUploadMultiThreading()    {        String what = p.getProperty("jftp.noUploadMultiThreading",                                    noUploadMultiThreading);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getFtpPasvMode()    {        String what = p.getProperty("jftp.ftpPasvMode", defaultFtpPasvMode);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }    public static boolean getUseDefaultDir()    {        String what = p.getProperty("jftp.useDefaultDir", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }        public static boolean getEnableRSS()    {        String what = p.getProperty("jftp.enableRSS", "true");        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }        public static String getRSSFeed()    {        String what = p.getProperty("jftp.customRSSFeed",	"http://slashdot.org/rss/slashdot.rss");      	return what;    }    public static java.awt.Dimension getWindowSize()    {        int width = Integer.parseInt(p.getProperty("jftp.window.width",                                                   defaultWidth));        int height = Integer.parseInt(p.getProperty("jftp.window.height",                                                    defaultHeight));        return new java.awt.Dimension(width, height);    }    public static java.awt.Point getWindowLocation()    {        int x = Integer.parseInt(p.getProperty("jftp.window.x", defaultX));        int y = Integer.parseInt(p.getProperty("jftp.window.y", defaultY));        return new java.awt.Point(x, y);    }    public static int getSocketTimeout()    {        return 3000;    }    public static boolean getStorePasswords()    {        String what = p.getProperty("jftp.security.storePasswords",                                    storePasswords);        if(what.trim().equals("false"))        {            return false;        }        else        {            return true;        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?