public abstract class PromptPane extends Object implements UIComponent<JTextArea>
Modifier and Type | Class and Description |
---|---|
class |
PromptPane.TextArea
Trivial extension of
JTextArea to expose its getRowHeight()
method. |
Constructor and Description |
---|
PromptPane(ScriptREPL repl,
VarsPane vars,
OutputPane output) |
Modifier and Type | Method and Description |
---|---|
JTextArea |
getComponent()
Gets the user interface component housing this object.
|
Class<JTextArea> |
getComponentType()
Gets the type of the UI component housing the object.
|
abstract void |
quit()
A callback method which is invoked when the REPL quits.
|
public PromptPane(ScriptREPL repl, VarsPane vars, OutputPane output)
public abstract void quit()
public JTextArea getComponent()
UIComponent
getComponent
in interface UIComponent<JTextArea>
public Class<JTextArea> getComponentType()
UIComponent
This method is useful in case UIComponent.getComponent()
returns null in some
circumstances. In this way, it is still possible to query the type of the
UI component without forcing the conditions that instantiate it.
getComponentType
in interface UIComponent<JTextArea>
Copyright © 2015–2022 SciJava. All rights reserved.