类 EditorDockable

  • 所有已实现的接口:
    bibliothek.gui.dock.common.intern.CDockable, bibliothek.gui.dock.common.SingleCDockable

    public class EditorDockable
    extends bibliothek.gui.dock.common.DefaultSingleCDockable
    作者:
    yaqiang
    • 嵌套类概要

      • 从类继承的嵌套类/接口 bibliothek.gui.dock.common.intern.DefaultCDockable

        bibliothek.gui.dock.common.intern.DefaultCDockable.Permissions
    • 字段概要

      • 从类继承的字段 bibliothek.gui.dock.common.intern.AbstractCDockable

        listenerCollection
      • 从接口继承的字段 bibliothek.gui.dock.common.intern.CDockable

        ACTION_KEY_CLOSE, ACTION_KEY_EXTERNALIZE, ACTION_KEY_MAXIMIZE, ACTION_KEY_MINIMIZE, ACTION_KEY_MINIMIZE_HOLD, ACTION_KEY_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      TextEditor addNewTextEditor​(String title)
      Add a new text editor
      void closeAllFiles()
      Close all files
      void closeFile()
      Close file
      void Comment()
      Toggle comment to the selected lines
      void delTab()
      Delete first 4 spaces to the seleted lines
      void doOpen_Jython()
      Open Jython script file
      boolean doSave​(TextEditor editor)
      Save file
      boolean doSaveAs_Jython​(TextEditor editor)
      Save as
      TextEditor getActiveTextEditor()
      Get active text editor
      List<TextEditor> getAllTextEditor()
      Get all text editors
      List<String> getOpenedFiles()
      Get opened file names
      JTabbedPane getTabbedPane()
      Get tabbed pane
      Font getTextFont()
      Get font
      org.fife.ui.rsyntaxtextarea.Theme getTheme()
      Get theme of the editor
      void insertTab()
      Insert first 4 spaces to the seleted lines
      void openFile​(File file)
      Open script file
      void openFiles​(File[] files)
      Open script files
      void openFiles​(List<String> fileNames)
      Open files
      void runPythonScript​(JTextArea jTextArea_Output)
      Run Jython script
      void setActiveTextEditor​(TextEditor te)
      Set active text editor
      void setInterp​(org.python.util.PythonInterpreter value)
      Set python interpreter
      void setTextFont​(Font font)
      Set font
      void setTheme​(org.fife.ui.rsyntaxtextarea.Theme value)
      Set theme of the editor
      • 从类继承的方法 bibliothek.gui.dock.common.DefaultSingleCDockable

        getUniqueId
      • 从类继承的方法 bibliothek.gui.dock.common.intern.DefaultCDockable

        add, add, addAction, addSeparator, asStation, createCommonDockable, getAction, getActionCount, getContentPane, getTitleIcon, getTitleIconHandling, getTitleText, getTitleToolTip, insertAction, insertSeparator, intern, isCloseable, isExternalizable, isMaximizable, isMinimizable, isStackable, remove, removeAction, removeAction, setCloseable, setExternalizable, setLayout, setMaximizable, setMinimizable, setStackable, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTip
      • 从类继承的方法 bibliothek.gui.dock.common.intern.AbstractCDockable

        addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, control, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getClose, getColors, getControl, getControlAccess, getDefaultLocation, getDockableUniqueId, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, init, isDockableVisible, isEnabled, isNormalizeable, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, propertyListeners, putAction, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setDefaultLocation, setEnabled, setExtendedMode, setFocusComponent, setGrouping, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setSingleTabShown, setSticky, setStickySwitchable, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront, toString
      • 从接口继承的方法 bibliothek.gui.dock.common.intern.CDockable

        addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, asStation, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getColors, getControl, getControlAccess, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, intern, isCloseable, isDockableVisible, isEnabled, isExternalizable, isMaximizable, isMinimizable, isNormalizeable, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isStackable, isSticky, isStickySwitchable, isTitleShown, isVisible, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setExtendedMode, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setSticky, setStickySwitchable, setVisible, setWorkingArea
    • 构造器详细资料

      • EditorDockable

        public EditorDockable​(FrmMain parent,
                              String id,
                              String title,
                              bibliothek.gui.dock.common.action.CAction... actions)
    • 方法详细资料

      • getTabbedPane

        public JTabbedPane getTabbedPane()
        Get tabbed pane
        返回:
        Tabbed pane
      • getTextFont

        public Font getTextFont()
        Get font
        返回:
        Font
      • setTextFont

        public void setTextFont​(Font font)
        Set font
        参数:
        font - Font
      • getTheme

        public org.fife.ui.rsyntaxtextarea.Theme getTheme()
        Get theme of the editor
        返回:
        The theme
      • setTheme

        public void setTheme​(org.fife.ui.rsyntaxtextarea.Theme value)
        Set theme of the editor
        参数:
        value - The theme
      • setInterp

        public void setInterp​(org.python.util.PythonInterpreter value)
        Set python interpreter
        参数:
        value - Python interpreter
      • addNewTextEditor

        public final TextEditor addNewTextEditor​(String title)
        Add a new text editor
        参数:
        title - Title
        返回:
        Text editor
      • getActiveTextEditor

        public TextEditor getActiveTextEditor()
        Get active text editor
        返回:
        Active text editor
      • getAllTextEditor

        public List<TextEditor> getAllTextEditor()
        Get all text editors
        返回:
        All text editors
      • setActiveTextEditor

        public void setActiveTextEditor​(TextEditor te)
        Set active text editor
        参数:
        te - Text editor
      • closeFile

        public void closeFile()
        Close file
      • closeAllFiles

        public void closeAllFiles()
        Close all files
      • doSave

        public boolean doSave​(TextEditor editor)
        Save file
        参数:
        editor - The text editor
        返回:
        Boolean
      • doSaveAs_Jython

        public boolean doSaveAs_Jython​(TextEditor editor)
        Save as
        参数:
        editor - The text editor
        返回:
        Boolean
      • doOpen_Jython

        public void doOpen_Jython()
        Open Jython script file
      • openFiles

        public void openFiles​(List<String> fileNames)
        Open files
        参数:
        fileNames - File name list
      • openFiles

        public void openFiles​(File[] files)
        Open script files
        参数:
        files - The files
      • openFile

        public void openFile​(File file)
        Open script file
        参数:
        file - The file
      • getOpenedFiles

        public List<String> getOpenedFiles()
        Get opened file names
        返回:
        Opened file names
      • Comment

        public void Comment()
        Toggle comment to the selected lines
      • delTab

        public void delTab()
        Delete first 4 spaces to the seleted lines
      • insertTab

        public void insertTab()
        Insert first 4 spaces to the seleted lines
      • runPythonScript

        public void runPythonScript​(JTextArea jTextArea_Output)
        Run Jython script
        参数:
        jTextArea_Output -