|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.terminal.TerminalInputAdapter
com.mindbright.terminal.TerminalFrameTitle
public class TerminalFrameTitle
A terminal listener which handles the title of the window and makes sure that the current size is always displayed therein (as [COLSxROWS]).
TerminalWindow
Constructor Summary | |
---|---|
TerminalFrameTitle(java.awt.Frame frame,
java.lang.String titleName)
Creates a new instance tied to a specified Frame and with a give starting title. |
Method Summary | |
---|---|
void |
attach(TerminalWindow terminal)
Attach this to the given terminal |
void |
detach()
Detach from the terminal window |
void |
setTitleName(java.lang.String titleName)
Set the title text. |
void |
signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
Called when the size of the terminal window has changed. |
Methods inherited from class com.mindbright.terminal.TerminalInputAdapter |
---|
sendBreak, sendBytes, sendBytesDirect, signalTermTypeChanged, typedChar, typedChar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminalFrameTitle(java.awt.Frame frame, java.lang.String titleName)
frame
- the frame whose title should be updatedtitleName
- initial titleMethod Detail |
---|
public void attach(TerminalWindow terminal)
terminal
- terminal window to check for size changespublic void detach()
public void setTitleName(java.lang.String titleName)
titleName
- title textpublic void signalWindowChanged(int rows, int cols, int vpixels, int hpixels)
TerminalInputListener
signalWindowChanged
in interface TerminalInputListener
signalWindowChanged
in class TerminalInputAdapter
rows
- new number of rowscols
- new number of columnsvpixels
- new number of vertical pixelshpixels
- new number of horizontal pixels
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |