public class ConsoleDockable
extends bibliothek.gui.dock.common.DefaultSingleCDockable
| 构造器 | 说明 |
|---|---|
ConsoleDockable(FrmMain parent,
java.lang.String startupPath,
java.lang.String id,
java.lang.String title,
bibliothek.gui.dock.common.action.CAction... actions) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
enter() |
Do Enter key
|
void |
exec(java.lang.String command) |
Run a command line
|
void |
execfile(java.lang.String fn) |
Run a python file
|
JConsole |
getConsole() |
Get console
|
PythonInteractiveInterpreter |
getInterpreter() |
Get interactive interpreter
|
void |
run(java.lang.String command) |
Run a command line
|
void |
runfile(java.lang.String code) |
Run a Jython file text
|
void |
runPythonScript(java.lang.String code) |
Run Jython script
|
void |
setParent(FrmMain parent) |
Set parent frame
|
void |
setStartupPath(java.lang.String path) |
Set startup path
|
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, toStringaddCDockableLocationListener, 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, setWorkingAreaadd, 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, setTitleToolTippublic ConsoleDockable(FrmMain parent, java.lang.String startupPath, java.lang.String id, java.lang.String title, bibliothek.gui.dock.common.action.CAction... actions)
public PythonInteractiveInterpreter getInterpreter()
public JConsole getConsole()
public void setStartupPath(java.lang.String path)
path - Startup pathpublic void setParent(FrmMain parent)
parent - Parent framepublic void run(java.lang.String command)
command - Command linepublic void enter()
public void exec(java.lang.String command)
command - Command linepublic void execfile(java.lang.String fn)
fn - Python file namepublic void runfile(java.lang.String code)
code - Jython file textpublic void runPythonScript(java.lang.String code)
throws java.lang.InterruptedException
code - java.lang.InterruptedExceptionCopyright © 2019. All rights reserved.