类 Options


  • public class Options
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器概要

      构造器 
      构造器 说明
      Options()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addRecentFile​(java.lang.String fileName)
      Add a rencent opened file name
      java.lang.String getCurrentFolder()
      Get current folder
      java.lang.String getFileName()
      Get file name
      java.lang.String getLookFeel()
      Get look and feel
      java.awt.Point getMainFormLocation()
      Get main form location
      java.awt.Dimension getMainFormSize()
      Get main form size
      java.util.List<java.lang.String> getOpenedFiles()
      Get opened python files
      java.util.List<java.lang.String> getRecentFiles()
      Get recent python files
      java.util.List<java.lang.String> getRecentFolders()
      Get recent used folders
      java.awt.Font getTextFont()
      Get text font
      void loadConfigFile​(java.lang.String fileName)
      Load configure file
      void saveConfigFile​(java.lang.String fileName)
      Save configure file
      void setCurrentFolder​(java.lang.String value)
      Set current folder
      void setLookFeel​(java.lang.String value)
      Set look and feel
      void setMainFormLocation​(java.awt.Point value)
      Set main form location
      void setMainFormSize​(java.awt.Dimension value)
      Set main form size
      void setOpenedFiles​(java.util.List<java.lang.String> value)
      Set opened python files
      void setRecentFiles​(java.util.List<java.lang.String> value)
      Set recent python files
      void setRecentFolders​(java.util.List<java.lang.String> value)
      Set recent used folders
      void setTextFont​(java.awt.Font font)
      Set text font
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Options

        public Options()
    • 方法详细资料

      • getTextFont

        public java.awt.Font getTextFont()
        Get text font
        返回:
        Text Font
      • setTextFont

        public void setTextFont​(java.awt.Font font)
        Set text font
        参数:
        font - Text font
      • getFileName

        public java.lang.String getFileName()
        Get file name
        返回:
        File name
      • getMainFormLocation

        public java.awt.Point getMainFormLocation()
        Get main form location
        返回:
        Main form location
      • setMainFormLocation

        public void setMainFormLocation​(java.awt.Point value)
        Set main form location
        参数:
        value - Main form location
      • getMainFormSize

        public java.awt.Dimension getMainFormSize()
        Get main form size
        返回:
        Main form size
      • setMainFormSize

        public void setMainFormSize​(java.awt.Dimension value)
        Set main form size
        参数:
        value - Main form size
      • getCurrentFolder

        public java.lang.String getCurrentFolder()
        Get current folder
        返回:
        Current folder
      • setCurrentFolder

        public void setCurrentFolder​(java.lang.String value)
        Set current folder
        参数:
        value - Current folder
      • getRecentFolders

        public java.util.List<java.lang.String> getRecentFolders()
        Get recent used folders
        返回:
        Recent used folders
      • setRecentFolders

        public void setRecentFolders​(java.util.List<java.lang.String> value)
        Set recent used folders
        参数:
        value - Recent used folders
      • getOpenedFiles

        public java.util.List<java.lang.String> getOpenedFiles()
        Get opened python files
        返回:
        Opened files
      • setOpenedFiles

        public void setOpenedFiles​(java.util.List<java.lang.String> value)
        Set opened python files
        参数:
        value - Opened files
      • getRecentFiles

        public java.util.List<java.lang.String> getRecentFiles()
        Get recent python files
        返回:
        Recent files
      • setRecentFiles

        public void setRecentFiles​(java.util.List<java.lang.String> value)
        Set recent python files
        参数:
        value - Recent files
      • getLookFeel

        public java.lang.String getLookFeel()
        Get look and feel
        返回:
        Look and feel
      • setLookFeel

        public void setLookFeel​(java.lang.String value)
        Set look and feel
        参数:
        value - look and feel
      • addRecentFile

        public void addRecentFile​(java.lang.String fileName)
        Add a rencent opened file name
        参数:
        fileName - Recent opened file name
      • saveConfigFile

        public void saveConfigFile​(java.lang.String fileName)
                            throws javax.xml.parsers.ParserConfigurationException
        Save configure file
        参数:
        fileName - File name
        抛出:
        javax.xml.parsers.ParserConfigurationException
      • loadConfigFile

        public void loadConfigFile​(java.lang.String fileName)
                            throws javax.xml.parsers.ParserConfigurationException,
                                   org.xml.sax.SAXException,
                                   java.io.IOException
        Load configure file
        参数:
        fileName - File name
        抛出:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException