Class JediTermWidget
java.lang.Object
org.springframework.shell.test.jediterm.terminal.ui.JediTermWidget
- All Implemented Interfaces:
TerminalSession
,TerminalWidget
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
protected StyleState
protected TerminalPanel
createTerminalPanel
(StyleState styleState, TerminalTextBuffer terminalTextBuffer) createTerminalSession
(TtyConnector ttyConnector) protected TerminalStarter
createTerminalStarter
(JediTerminal terminal, TtyConnector connector) boolean
void
setTerminalPanelListener
(TerminalPanelListener terminalPanelListener) void
setTtyConnector
(TtyConnector ttyConnector) void
start()
void
stop()
-
Constructor Details
-
JediTermWidget
public JediTermWidget() -
JediTermWidget
public JediTermWidget(int columns, int lines)
-
-
Method Details
-
createDefaultStyle
-
createTerminalPanel
protected TerminalPanel createTerminalPanel(StyleState styleState, TerminalTextBuffer terminalTextBuffer) -
getTerminalDisplay
- Specified by:
getTerminalDisplay
in interfaceTerminalWidget
-
getTerminalPanel
-
setTtyConnector
-
createTerminalStarter
-
getTtyConnector
- Specified by:
getTtyConnector
in interfaceTerminalSession
-
getTerminal
- Specified by:
getTerminal
in interfaceTerminalSession
-
getSessionName
- Specified by:
getSessionName
in interfaceTerminalSession
-
start
public void start()- Specified by:
start
in interfaceTerminalSession
-
stop
public void stop() -
isSessionRunning
public boolean isSessionRunning() -
getTerminalTextBuffer
- Specified by:
getTerminalTextBuffer
in interfaceTerminalSession
-
canOpenSession
public boolean canOpenSession()- Specified by:
canOpenSession
in interfaceTerminalWidget
-
setTerminalPanelListener
- Specified by:
setTerminalPanelListener
in interfaceTerminalWidget
-
getCurrentSession
- Specified by:
getCurrentSession
in interfaceTerminalWidget
-
createTerminalSession
- Specified by:
createTerminalSession
in interfaceTerminalWidget
-
close
public void close()- Specified by:
close
in interfaceTerminalSession
-
getTerminalStarter
- Specified by:
getTerminalStarter
in interfaceTerminalSession
-