|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.terminal.TerminalMenuHandler
Interface for terminal menu handlers. A terminal menu handler is expected to handle the menus associated with a terminal window.
TerminalWin
Constructor Summary | |
TerminalMenuHandler()
|
Method Summary | |
abstract void |
addBasicMenus(TerminalWin terminal,
java.awt.Frame frame)
Install the standard menus on the given frame. |
abstract void |
setPopupMenu(java.lang.Object menu)
Registers a popup menu. |
abstract void |
setTerminalMenuListener(TerminalMenuListener listener)
Register a listener which is interested in menu events |
abstract void |
setTerminalWin(TerminalWin term)
Attach to a terminal window. |
abstract void |
setTitleName(java.lang.String titleName)
Set the name of this application. |
abstract void |
showPopupMenu(int x,
int y)
Show the popup menu at the indicated position. |
abstract void |
update()
Gets called when the contents of the menus might need updating. |
abstract void |
updateSelection(boolean selectionAvailable)
Gets called when the selection state is changed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TerminalMenuHandler()
Method Detail |
public abstract void setTitleName(java.lang.String titleName)
titleName
- the application name for window titlespublic abstract void setTerminalWin(TerminalWin term)
term
- terminal window to attach topublic abstract void setTerminalMenuListener(TerminalMenuListener listener)
listener
- the interested listenerpublic abstract void addBasicMenus(TerminalWin terminal, java.awt.Frame frame)
terminal
- terminal window to attach toframe
- frame to install menus inpublic abstract void updateSelection(boolean selectionAvailable)
selectionAvailable
- true if some text is selectedpublic abstract void update()
public abstract void setPopupMenu(java.lang.Object menu)
menu
- the popup menu. This is passed as an Object since
it may be either a PopupMenu
or
JPopupMenu
.public abstract void showPopupMenu(int x, int y)
x
- x-coordinate of position to show menu ayy
- y-coordinate of position to show menu ay
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |