com.mindbright.application
public abstract class ModuleBaseTerminal extends java.awt.event.WindowAdapter implements MindTermModule, java.lang.Runnable, TerminalMenuListener
Modifier and Type | Field and Description |
---|---|
protected MindTermApp |
mindterm |
Constructor and Description |
---|
ModuleBaseTerminal() |
Modifier and Type | Method and Description |
---|---|
void |
activate(MindTermApp mindterm) |
void |
close(TerminalMenuHandler originMenu)
Called when the user has selected close in the menu
|
protected abstract boolean |
closeOnDisconnect() |
void |
connected(MindTermApp mindterm) |
java.lang.String |
description(MindTermApp mindterm) |
void |
disconnected(MindTermApp mindterm) |
protected abstract void |
doClose() |
protected abstract java.lang.String |
getTitle() |
protected boolean |
haveMenus() |
void |
init(MindTermApp mindterm) |
protected abstract ModuleBaseTerminal |
newInstance() |
void |
run() |
protected abstract void |
runTerminal(MindTermApp mindterm,
TerminalWindow terminal,
java.awt.Frame frame,
TerminalFrameTitle frameTitle) |
void |
update()
Called when the menu is updated
|
protected boolean |
useChaff() |
void |
windowClosing(java.awt.event.WindowEvent e) |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAvailable
protected MindTermApp mindterm
public void init(MindTermApp mindterm)
init
in interface MindTermModule
protected boolean haveMenus()
protected boolean useChaff()
public void activate(MindTermApp mindterm)
activate
in interface MindTermModule
public void run()
run
in interface java.lang.Runnable
public void connected(MindTermApp mindterm)
connected
in interface MindTermModule
public void disconnected(MindTermApp mindterm)
disconnected
in interface MindTermModule
public java.lang.String description(MindTermApp mindterm)
description
in interface MindTermModule
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
windowClosing
in class java.awt.event.WindowAdapter
public void close(TerminalMenuHandler originMenu)
TerminalMenuListener
close
in interface TerminalMenuListener
originMenu
- the menu where close was selectedpublic void update()
TerminalMenuListener
update
in interface TerminalMenuListener
protected abstract void runTerminal(MindTermApp mindterm, TerminalWindow terminal, java.awt.Frame frame, TerminalFrameTitle frameTitle)
protected abstract boolean closeOnDisconnect()
protected abstract java.lang.String getTitle()
protected abstract void doClose()
protected abstract ModuleBaseTerminal newInstance()