类 EditorDockable
- java.lang.Object
-
- bibliothek.gui.dock.common.intern.AbstractCDockable
-
- bibliothek.gui.dock.common.intern.DefaultCDockable
-
- bibliothek.gui.dock.common.DefaultSingleCDockable
-
- org.meteoinfo.lab.gui.EditorDockable
-
- 所有已实现的接口:
bibliothek.gui.dock.common.intern.CDockable,bibliothek.gui.dock.common.SingleCDockable
public class EditorDockable extends bibliothek.gui.dock.common.DefaultSingleCDockable- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 EditorDockable(FrmMain parent, java.lang.String id, java.lang.String title, bibliothek.gui.dock.common.action.CAction... actions)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.meteoinfo.console.editor.TextEditoraddNewTextEditor(java.lang.String title)Add a new text editorvoidcloseAllFiles()Close all filesvoidcloseFile()Close filevoidComment()Toggle comment to the selected linesvoiddelTab()Delete first 4 spaces to the seleted linesvoiddoOpen_Jython()Open Jython script filebooleandoSave(org.meteoinfo.console.editor.TextEditor editor)Save filebooleandoSaveAs_Jython(org.meteoinfo.console.editor.TextEditor editor)Save asorg.meteoinfo.console.editor.TextEditorgetActiveTextEditor()Get active text editorjava.util.List<org.meteoinfo.console.editor.TextEditor>getAllTextEditor()Get all text editorsjava.util.List<java.lang.String>getOpenedFiles()Get opened file namesjavax.swing.JTabbedPanegetTabbedPane()Get tabbed panejava.awt.FontgetTextFont()Get fontvoidinsertTab()Insert first 4 spaces to the seleted linesvoidopenFile(java.io.File file)Open script filevoidopenFiles(java.io.File[] files)Open script filesvoidopenFiles(java.util.List<java.lang.String> fileNames)Open filesvoidrunPythonScript(javax.swing.JTextArea jTextArea_Output)Run Jython scriptvoidsetActiveTextEditor(org.meteoinfo.console.editor.TextEditor te)Set active text editorvoidsetInterp(org.python.util.PythonInterpreter value)Set python interpretervoidsetTextFont(java.awt.Font font)Set font-
从类继承的方法 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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 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, java.lang.String id, java.lang.String title, bibliothek.gui.dock.common.action.CAction... actions)
-
-
方法详细资料
-
getTabbedPane
public javax.swing.JTabbedPane getTabbedPane()
Get tabbed pane- 返回:
- Tabbed pane
-
getTextFont
public java.awt.Font getTextFont()
Get font- 返回:
- Font
-
setTextFont
public void setTextFont(java.awt.Font font)
Set font- 参数:
font- Font
-
setInterp
public void setInterp(org.python.util.PythonInterpreter value)
Set python interpreter- 参数:
value- Python interpreter
-
addNewTextEditor
public final org.meteoinfo.console.editor.TextEditor addNewTextEditor(java.lang.String title)
Add a new text editor- 参数:
title- Title- 返回:
- Text editor
-
getActiveTextEditor
public org.meteoinfo.console.editor.TextEditor getActiveTextEditor()
Get active text editor- 返回:
- Active text editor
-
getAllTextEditor
public java.util.List<org.meteoinfo.console.editor.TextEditor> getAllTextEditor()
Get all text editors- 返回:
- All text editors
-
setActiveTextEditor
public void setActiveTextEditor(org.meteoinfo.console.editor.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(org.meteoinfo.console.editor.TextEditor editor)
Save file- 参数:
editor- The text editor- 返回:
- Boolean
-
doSaveAs_Jython
public boolean doSaveAs_Jython(org.meteoinfo.console.editor.TextEditor editor)
Save as- 参数:
editor- The text editor- 返回:
- Boolean
-
doOpen_Jython
public void doOpen_Jython()
Open Jython script file
-
openFiles
public void openFiles(java.util.List<java.lang.String> fileNames)
Open files- 参数:
fileNames- File name list
-
openFiles
public void openFiles(java.io.File[] files)
Open script files- 参数:
files- The files
-
openFile
public void openFile(java.io.File file)
Open script file- 参数:
file- The file
-
getOpenedFiles
public java.util.List<java.lang.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(javax.swing.JTextArea jTextArea_Output)
Run Jython script- 参数:
jTextArea_Output-
-
-