类 ConsoleDockable
- java.lang.Object
-
- bibliothek.gui.dock.common.intern.AbstractCDockable
-
- bibliothek.gui.dock.common.intern.DefaultCDockable
-
- bibliothek.gui.dock.common.DefaultSingleCDockable
-
- org.meteoinfo.laboratory.gui.ConsoleDockable
-
- 所有已实现的接口:
bibliothek.gui.dock.common.intern.CDockable,bibliothek.gui.dock.common.SingleCDockable
public class ConsoleDockable extends bibliothek.gui.dock.common.DefaultSingleCDockable- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 ConsoleDockable(FrmMain parent, java.lang.String startupPath, java.lang.String id, java.lang.String title, bibliothek.gui.dock.common.action.CAction... actions)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidenter()Do Enter keyvoidexec(java.lang.String command)Run a command linevoidexecfile(java.lang.String fn)Run a python fileorg.meteoinfo.console.JConsolegetConsole()Get consolePythonInteractiveInterpretergetInterpreter()Get interactive interpretervoidrun(java.lang.String command)Run a command linevoidrunfile(java.lang.String code)Run a Jython file textvoidrunPythonScript(java.lang.String code)Run Jython scriptvoidsetLookFeel(java.lang.String laf)Set Look and feelvoidsetParent(FrmMain parent)Set parent framevoidsetStartupPath(java.lang.String path)Set startup path-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
ConsoleDockable
public ConsoleDockable(FrmMain parent, java.lang.String startupPath, java.lang.String id, java.lang.String title, bibliothek.gui.dock.common.action.CAction... actions)
-
-
方法详细资料
-
setLookFeel
public void setLookFeel(java.lang.String laf)
Set Look and feel- 参数:
laf- Look and feel
-
getInterpreter
public PythonInteractiveInterpreter getInterpreter()
Get interactive interpreter- 返回:
- Interactive interpreter
-
getConsole
public org.meteoinfo.console.JConsole getConsole()
Get console- 返回:
- Console
-
setStartupPath
public void setStartupPath(java.lang.String path)
Set startup path- 参数:
path- Startup path
-
setParent
public void setParent(FrmMain parent)
Set parent frame- 参数:
parent- Parent frame
-
run
public void run(java.lang.String command)
Run a command line- 参数:
command- Command line
-
enter
public void enter()
Do Enter key
-
exec
public void exec(java.lang.String command)
Run a command line- 参数:
command- Command line
-
execfile
public void execfile(java.lang.String fn)
Run a python file- 参数:
fn- Python file name
-
runfile
public void runfile(java.lang.String code)
Run a Jython file text- 参数:
code- Jython file text
-
runPythonScript
public void runPythonScript(java.lang.String code) throws java.lang.InterruptedExceptionRun Jython script- 参数:
code-- 抛出:
java.lang.InterruptedException
-
-