public class TerminalApplication extends VirtualComponentAdapter
Modifier and Type | Field and Description |
---|---|
protected String |
allowedSessions
Terminal sessions allowed to change to (null when no change
of session allowed).
|
protected VirtualPanel |
panel
The panel.
|
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Constructor and Description |
---|
TerminalApplication() |
Modifier and Type | Method and Description |
---|---|
VirtualPanel |
createPanel(VirtualSessionManager vsm,
String panelID,
VirtualComponentListener listener)
Creates a dialog box for the application with a listener.
|
boolean |
displayEditProperties(VirtualSessionManager vsm)
Displays the "Edit properties" dialog box used when performing
Cut/Copy operations.
|
void |
enableTopMenuItems(boolean enable)
Enables or disables all top menu items in the main terminal window.
|
void |
onAction(VirtualPanel vp,
String controlID)
Push buttons and menu items generates this event when selected.
|
void |
onHostConnectChange(boolean connected)
Notifies the session of a connect state change.
|
boolean |
onHostSessionFailure(Throwable exception)
Called when a session has had a failure.
|
void |
onMenuAction(VirtualPanel vp,
VirtualMenuItem menuItem)
Menu items generates this event when selected.
|
void |
onPanelCreate(VirtualPanel vp)
Called to initialize the panel before it is displayed.
|
void |
performAbout(VirtualPanel vp)
Performs a print window of the terminal screen.
|
void |
performAppend(VirtualPanel vp)
Performs clipboard append.
|
void |
performChangeSession(VirtualPanel vp)
Performs change of host session.
|
void |
performConnect(VirtualPanel vp)
Performs connect/disconnect for the current host session.
|
void |
performCopy(VirtualPanel vp)
Performs clipboard copy.
|
void |
performCut(VirtualPanel vp)
Performs clipboard cut.
|
void |
performExit(VirtualPanel vp)
Performs application exit.
|
void |
performPaste(VirtualPanel vp)
Performs clipboard paste.
|
void |
performPrint(VirtualPanel vp)
Performs a print screen with a printer device font
in order to print it out nicely.
|
void |
performPrintWindow(VirtualPanel vp)
Performs a print window of the terminal screen.
|
void |
performProperties(VirtualPanel vp)
Performs the properties panel handling.
|
void |
performSelectAll(VirtualPanel vp)
Performs clipboard select all.
|
void |
setTitle()
Sets the title bar in the panel.
|
void |
updateConnectMenuItem()
Updates the states for the Connect/Disconnect menu item.
|
onAction, onAction, onCheckedChange, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onPropertyChange, onSelectionChanged
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelClosing, onPanelDestroy
protected String allowedSessions
protected VirtualPanel panel
public void onPanelCreate(VirtualPanel vp)
This function doesn't perform anything.
onPanelCreate
in interface VirtualPanelListener
onPanelCreate
in class VirtualPanelAdapter
vp
- The panel issuing the event.public void setTitle()
public void onAction(VirtualPanel vp, String controlID)
onAction
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public void enableTopMenuItems(boolean enable)
public void onMenuAction(VirtualPanel vp, VirtualMenuItem menuItem)
onMenuAction
in interface VirtualComponentListener
onMenuAction
in class VirtualComponentAdapter
public void performExit(VirtualPanel vp)
public VirtualPanel createPanel(VirtualSessionManager vsm, String panelID, VirtualComponentListener listener)
public void performChangeSession(VirtualPanel vp)
public void performCut(VirtualPanel vp)
public void performCopy(VirtualPanel vp)
public void performAppend(VirtualPanel vp)
public void performPaste(VirtualPanel vp)
public void performSelectAll(VirtualPanel vp)
public void performProperties(VirtualPanel vp)
public boolean displayEditProperties(VirtualSessionManager vsm)
public void updateConnectMenuItem()
public boolean onHostSessionFailure(Throwable exception)
public void onHostConnectChange(boolean connected)
public void performConnect(VirtualPanel vp)
public void performPrint(VirtualPanel vp)
public void performPrintWindow(VirtualPanel vp)
public void performAbout(VirtualPanel vp)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.