public class VirtualPanel extends Object implements NetPhantomConstants, ObjectMessages, PhantomControlType, PhantomControlFlags, VirtualInterface, VirtualChangeEvent
ACTION_CLOSEWINDOW, ACTION_CONTROL, ACTION_HOSTKEY, ACTION_MENU, ACTION_NONE, ACTION_NOTEBOOKPAGE, ACTION_POPUPMENU, CC_BACKGROUND, CC_BOTH, CC_FOREGROUND, CC_NONE, CLIPBOARD_GET, CLIPBOARD_SET, DATEF_DMY, DATEF_MDY, DATEF_SYSTEM, DATEF_YMD, DDE_ADVISE, DDE_EXECUTE, DDE_INITIATE, DDE_POKE, DDE_REQUEST, DDE_TERMINATE, DDE_UNADVISE, DDE_UPDATE, DDEVAR_DISABLE, DDEVAR_ENABLE, DDEVAR_REQUEST, DDEVAR_SET, DDEVAR_VALIDATE, EFT_AMOUNT, EFT_DATE, EFT_DATEAMOUNT, EFT_NORMAL, EFT_PASSWORD, EVENT_CHAR, EVENT_CHECK, EVENT_CLICK, EVENT_COMMAND, EVENT_DBLCLICK, EVENT_DDECONNECTION, EVENT_DDEDATA, EVENT_DDEERROR, EVENT_DDEEXECUTE, EVENT_DDEINVALIDATE, EVENT_DDEPOKE, EVENT_DDEREQUEST, EVENT_DEFOCUS, EVENT_FOCUS, EVENT_PAGEDOWN, EVENT_PAGEUP, EVENT_SELECT, EVENT_UNKNOWN, EVENT_USERCHANGE, EXTENDEDINFO_IDS_TO_CLIENT, FOCUSTYPE_CLIENTTARGET, FOCUSTYPE_CONTROL, FOCUSTYPE_NONE, ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_WARNING, J_AUTO, J_BOTTOM, J_BOTTOMLEFT, J_BOTTOMRIGHT, J_CENTER, J_LEFT, J_RIGHT, J_TOP, J_TOPLEFT, J_TOPRIGHT, MAX_PANELS_PER_SESSION, MAX_SESSIONS, 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, MS_MOVE, MS_NONE, MS_SIZE, NETPHANTOM_COPYRIGHT, NETPHANTOM_COPYRIGHT2, NETPHANTOM_VERSION, OBJEVENT_CHECK, OBJEVENT_CLICK, OBJEVENT_DBLCLICK, OBJEVENT_DEFOCUS, OBJEVENT_FOCUS, OBJEVENT_SELECT, OBJEVENT_USERCHANGE, PANELCREATE_APPPANEL, PANELCREATE_DANGLINGPANEL, PANELCREATE_DLGFRAME, PANELCREATE_EXTENDEDINFO, PANELCREATE_ICON, PANELCREATE_INDIVIDUALSIZE, PANELCREATE_POPUP, REPLYTYPE_CLIENTEXECUTE, REPLYTYPE_CLIPBOARD, REPLYTYPE_DDE, REPLYTYPE_FFONTLIST, REPLYTYPE_MESSAGEBOX, REPLYTYPE_REPORT, REPLYTYPE_SAVEPROPS, REPLYTYPE_TERMMARK, RPRT_CANCELPRINTJOB, RPRT_CLOSEPRINTJOB, RPRT_CONTPRINTJOB, RPRT_OPENPRINTJOB, RPRT_PRINTJOBCANCLD, RPRT_PRINTJOBCLOSED, RPRT_PRINTJOBCONT, RPRT_PRINTJOBOPENED, RPRT_PRINTJOBSTARTED, RPRT_STARTPRINTJOB, SELMODE_NORMAL, SELMODE_NOTALLOWED, SELMODE_REQUIRED, SELTYPE_MULTIPLE, SELTYPE_SINGLE, SEPARATOR, SEPARATORCHAR, TRANS_APPLICATIONCHANGE, TRANS_CALLOBJECT, TRANS_CANCELEXIT, TRANS_CLEARLOCK, TRANS_CLIENTEXECUTE, TRANS_CLIENTJARS, TRANS_CLIENTTEXTTABLE, TRANS_CLIENTUPDATED, TRANS_CLIENTUPDATEDNOLOCK, TRANS_CLIPBOARD, TRANS_CLIPBOARDCOMPONENT, TRANS_CLOSETERMINALWINDOW, TRANS_CONNECTIONREFUSED, TRANS_COUNTRYINFO, TRANS_CREATEPANEL, TRANS_CREATESESSION, TRANS_DDE, TRANS_DDEEVENT, TRANS_DDEEVENTREPLY, TRANS_DDEVAREVENT, TRANS_DISPLAYHELP, TRANS_DISPLAYTERMINAL, TRANS_DISPLAYTOOLTIPS, TRANS_ENDCONVERSATION, TRANS_EXIT, TRANS_FONTSUBSTITUTION, TRANS_HOSTCOLORTABLE, TRANS_HOSTPRINT, TRANS_HWND, TRANS_INACTIVESESSION, TRANS_INITIATE, TRANS_KEEPALIVE, TRANS_LOCALE, TRANS_LOGEVENT, TRANS_MESSAGEBOX, TRANS_MESSAGEBOXWITHREPLY, TRANS_MODALREPLY, TRANS_MULTTERM, TRANS_PING, TRANS_PRINTCOMPONENT, TRANS_PRINTPANEL, TRANS_PRINTREPORT, TRANS_PRTWINKEY, TRANS_RECONNECT, TRANS_REDIRECTION, TRANS_REMOVEPANELATLEVEL, TRANS_REMOVETERMINAL, TRANS_RENEGOTIATESSL, TRANS_REQUESTHELP, TRANS_RESOURCEURL, TRANS_SELECTSESSION, TRANS_SESSIONACTIVE, TRANS_SESSIONSELECTED, TRANS_SETCOLORS, TRANS_SETFOCUS, TRANS_SETLOCK, TRANS_SETPANELNESTLEVEL, TRANS_SETUPPARAMS, TRANS_SHOWDOCUMENT, TRANS_SOCKET, TRANS_SOUNDALARM, TRANS_STARTUPINFO, TRANS_STOPSESSION, TRANS_TERMINALDATA, TRANS_TERMINALUPDATE, TRANS_TERMINALWINDOW, TRANS_TERMWINTEXT, TRANS_UPDATEAPPLICATION, TRANS_UPDATEPANEL, TRANS_USEREXITPRTKEY, TRANSACTION_VERSION, TS_CLOSE, TS_DATA, TS_ERROR, TS_OPEN, VSIGN_MINUS, VSIGN_NONE, VSIGN_PLUSMINUS, YEARF_6DIG, YEARF_8DIG, YEARF_EXP8
OBJACT_CHAR, OBJACT_CHECK, OBJACT_CLICK, OBJACT_CLOSE, OBJACT_COMMAND, OBJACT_CREATE, OBJACT_DBLCLICK, OBJACT_DDECONNECTION, OBJACT_DDEDATA, OBJACT_DDEERROR, OBJACT_DDEEXECUTE, OBJACT_DDEPOKE, OBJACT_DDEREQUEST, OBJACT_DDEVALIDATE, OBJACT_DEFOCUS, OBJACT_DESTROY, OBJACT_FOCUS, OBJACT_HIDDEN, OBJACT_HOSTCHANGE, OBJACT_LAST_MESSAGE_HANDLED, OBJACT_QUERYMSG, OBJACT_RECREATE, OBJACT_SELECT, OBJACT_SHOW, OBJACT_START, OBJACT_TRANSLATE, OBJACT_USERCHANGE, PHA_ICO_INFO, PHA_ICO_NOICON, PHA_ICO_QUESTION, PHA_ICO_STOP, PHA_ICO_WARNING, PHA_MSG_CANCEL, PHA_MSG_ENTER, PHA_MSG_ENTERCANCEL, PHA_MSG_OK, PHA_MSG_OKCANCEL, PHA_MSG_RETIGNCANCEL, PHA_MSG_RETRYCANCEL, PHA_MSG_YESNO, PHA_MSG_YESNOCANCEL
CTRLTYPE_BUTTON, CTRLTYPE_CHECK, CTRLTYPE_COMBO, CTRLTYPE_FRAME, CTRLTYPE_GRAPH, CTRLTYPE_GROUP, CTRLTYPE_INOUT, CTRLTYPE_LIST, CTRLTYPE_MLE, CTRLTYPE_NOTE, CTRLTYPE_OUT, CTRLTYPE_RADIO, CTRLTYPE_RECT, CTRLTYPE_SPIN, CTRLTYPE_SUB, CTRLTYPE_TEXT, CTRLTYPE_TREE, CTRLTYPE_UNKNOWN, CTRLTYPE_USER, CTRLTYPES_COUNT, names
CTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT
TOOLTIP_TEXT
Modifier and Type | Method and Description |
---|---|
void |
addPanelEventListener(VirtualPanelEventListener listener)
Adds a panel event listener.
|
void |
addPanelListener(VirtualPanelListener listener)
Adds a listener for this panel.
|
void |
appendFocusTransaction(Transaction trans)
Appends the required data focus a focus transaction.
|
void |
callAllControlObjects(int action)
Calls all virtual control objects.
|
void |
callAllControlObjects(int action,
boolean callNbObjs)
Calls all virtual control objects.
|
void |
callAllControlObjects(int action,
boolean callNonNbObjs,
boolean callNbObjs)
Calls all virtual control objects.
|
boolean |
callControl()
"Calls" the control in question.
|
boolean |
callControl(int id)
"Calls" the control in question.
|
boolean |
callControl(String id)
"Calls" the control in question.
|
void |
callCreate()
Call all objects with create and hidden events.
|
void |
callCreateAfterHostCursor()
Call all objects in notebook panel pages with create
and hidden events.
|
void |
callCreateBeforeHostCursor()
Call all objects with create and hidden events.
|
void |
callNBPanelAndControls(VirtualCNoteBook nb,
int action)
Call NB panel object and all underlaying control objects.
|
void |
callObject(int action)
Calls the Phantom panel Object.
|
void |
callObject(int action,
String text)
Calls the Phantom panel Object.
|
void |
clientUpdated(Transaction trans)
This method is called from the VirtualSessionManager
to cause a client transaction to update the panels.
|
void |
clipboardComponent(int ii,
int action)
Copies(0)/cut(1)/pastes(2)/clears(3) the component content to clipboard.
|
void |
create()
Call this method after the virtual panel instance has been created.
|
static VirtualPanel |
createApplicationPanel(VirtualRuntime runtime,
PhantomPanelData panel,
VirtualSessionManager vsm)
Creates an application panel.
|
static VirtualPanel |
createNormalPanel(VirtualRuntime runtime,
PhantomPanelData panel,
VirtualPanelSession vs,
PhantomHostScreen screen,
int index)
Creates a normal panel.
|
static VirtualPanel |
createNormalPanel(VirtualRuntime runtime,
PhantomPanelData panel,
VirtualPanelSession vs,
PhantomHostScreen screen,
int index,
VirtualPanelListener listener)
Creates a normal panel.
|
static VirtualPanel |
createNormalPanel(VirtualRuntime runtime,
PhantomPanelData panel,
VirtualPanelSession vs,
PhantomHostScreen screen,
int index,
VirtualPanelListener listener,
Transaction extraPanelTransaction)
Creates a normal panel.
|
static VirtualPanel |
createNoteBookPagePanel(VirtualRuntime runtime,
PhantomPanelData panel,
VirtualCNoteBookPage noteBookPage,
PhantomHostScreen screen)
Creates a notebook page panel.
|
boolean |
deleteAll()
Deletes all lines in a list capable control.
|
boolean |
deleteAll(int id)
Deletes all lines in a list capable control.
|
boolean |
deleteAll(String id)
Deletes all lines in a list capable control.
|
boolean |
deleteLine(int line)
Deletes a line in a list capable control.
|
boolean |
deleteLine(int id,
int line)
Deletes a line in a list capable control.
|
boolean |
deleteLine(String id,
int line)
Deletes a line in a list capable control.
|
void |
destroy()
Destroys this panel.
|
boolean |
dismissPanel(int rc)
Dismisses this modal panel.
|
void |
enablePopupMenuItem(String id,
boolean set)
Enable/disable the identified pop-up menu item for this panel.
|
void |
fireCreate(Transaction trans)
Fires the create transaction to the client.
|
void |
fireHostMessageBoxes()
Fires host message boxes to the client.
|
void |
fireUpdatesToClient()
Causes pending updates of the panels in the session
to be sent to the client.
|
PhantomApplicationData |
getApplication()
Gets the phantom application.
|
int |
getBackgroundColor()
Gets the background color of an item.
|
int |
getBackgroundColor(int id)
Gets the background color of an item.
|
int |
getBackgroundColor(String id)
Gets the background color of an item.
|
String |
getCell(int col,
int line)
Gets a single cell in a list capable control.
|
String |
getCell(int id,
int col,
int line)
Gets a single cell in a list capable control.
|
String |
getCell(String id,
int col,
int line)
Gets a single cell in a list capable control.
|
ClientSessionInterface |
getClientSession()
Gets the reference to the client session.
|
se.entra.phantom.geditor.NPPColor |
getColor()
Get color of an item.
|
se.entra.phantom.geditor.NPPColor |
getColor(int id)
Gets the color of an item.
|
se.entra.phantom.geditor.NPPColor |
getColor(String id)
Gets the color of an item.
|
Object |
getComponentLockObject()
Gets the lock object for synchronization for Control Components.
|
VirtualControl |
getControl(int index)
Gets a control from an index.
|
VirtualControl |
getControlConnectedToHost(PhantomHostScreen screen,
PhantomHostField hostField,
int flags)
Get the VirtualControl that is connected to a specified host field.
|
int |
getControlCount()
Gets the count of Phantom controls.
|
VirtualControl |
getControlFromID(String id)
Search for VirtualControl using Control ID.
|
HostSession |
getCurrentHostSession()
Gets the current host session.
|
VirtualCNoteBook |
getFirstNoteBook()
Gets the first notebook in this panel.
|
VirtualPanel |
getFirstNoteBookPagePanel(int index)
Gets the VirtualPanel associated with the notebook page index
of the first notebook in this panel.
|
VirtualPanel |
getFirstNoteBookPagePanel(String pageID)
Gets the VirtualPanel associated with the notebook page ID
of the first notebook in this panel.
|
VirtualControl |
getFirstSelectableControl(int flags)
Find the first control in panel that can receive focus.
|
int |
getFont()
Gets the font index of an item.
|
int |
getFont(int id)
Gets the font index of an item.
|
int |
getFont(String id)
Gets the font index of an item.
|
int |
getForegroundColor()
Gets the foreground color of an item.
|
int |
getForegroundColor(int id)
Gets the foreground color of an item.
|
int |
getForegroundColor(String id)
Gets the foreground color of an item.
|
HostScreen |
getHostScreen()
Gets the single host screen instance per client session.
|
String |
getHostScreenName()
Gets the name of the connected host screen.
|
int |
getIndex()
Gets the index of this panel in the panel session.
|
int |
getLength()
Gets the control length.
|
int |
getLength(int id)
Gets the control length.
|
int |
getLength(String id)
Gets the control length.
|
String |
getLine(int line)
Sets a line in a list capable control.
|
String |
getLine(int id,
int line)
Sets a line in a list capable control.
|
String |
getLine(String id,
int line)
Sets a line in a list capable control.
|
int |
getLineCount()
Gets the line count for a list capable control.
|
int |
getLineCount(int id)
Gets the line count for a list capable control.
|
int |
getLineCount(String id)
Gets the line count for a list capable control.
|
VirtualPanelListener |
getListener()
Gets the listener of this panel.
|
VirtualMenu |
getMenu()
Gets the menu bar.
|
VirtualInterface |
getMenuFromID(String id)
Search for menu using menu ID.
|
VirtualInterface |
getMenuFromIndex(int index)
Gets a menu item VirtualInterface from an index (>=1000).
|
VirtualInterface |
getMenuOrControlFromID(int id)
Search panel for a control or a menu item.
|
VirtualInterface |
getMenuOrControlFromID(String id)
Search panel for a control or a menu item.
|
VirtualInterface |
getNbCtlInfo(String panelID,
String ctrlID)
Get control/menu item info in a notebook in a panel.
|
VirtualCNoteBook |
getNextNoteBook(int fromIndex)
Gets the first notebook in this panel.
|
int |
getNextSelection(int line)
Gets the next selected line in a list capable control.
|
int |
getNextSelection(int id,
int line)
Gets the next selected line in a list capable control.
|
int |
getNextSelection(String id,
int line)
Gets the next selected line in a list capable control.
|
VirtualCNoteBook |
getNoteBook(int id)
Gets the notebook of specified Numbered ID in this panel.
|
VirtualCNoteBook |
getNoteBook(String id)
Gets the notebook of specified String ID in this panel.
|
VirtualPanel |
getNoteBookPagePanel(String id,
int index)
Gets the VirtualPanel associated with the notebook page index
of the notebook with a String ID in this panel.
|
VirtualPanel |
getNoteBookPagePanel(String id,
String pageID)
Gets the VirtualPanel associated with the notebook page ID
of the notebook with a String ID in this panel.
|
PhantomPanelData |
getPanelData()
Gets the PhantomPanelData for this panel.
|
String |
getPanelID()
Gets the ID of this panel.
|
VirtualPanelSession |
getPanelSession()
Gets the panel session for this panel.
|
VirtualPanel |
getParentPanel()
Gets the parent panel if this page is a notebook page.
|
VirtualPopupMenu |
getPopupMenu(String id)
Gets the identified pop-up menus for this panel.
|
VirtualMenuItem |
getPopupMenuItem(String id)
Gets the identified pop-up menu item for this panel.
|
VirtualPopupMenu[] |
getPopupMenus()
Gets the pop-up menus for this panel.
|
Object |
getProperty(int id,
String propertyName)
Gets a property of a virtual component.
|
Object |
getProperty(String propertyName)
Gets a property of a virtual component.
|
Object |
getProperty(String id,
String propertyName)
Gets a property of a virtual component.
|
VirtualRuntime |
getRuntime()
Gets the runtime from which this panel is created.
|
PhantomHostScreen |
getScreen()
Gets the single host screen.
|
VirtualHostMessageBox |
getSystemMessageBox()
Gets the 5250 system message box, or null if none.
|
String |
getText()
Gets the text of an item.
|
String |
getText(int id)
Gets the text of an item.
|
String |
getText(String id)
Gets the text of an item.
|
String |
getTextID(String id)
Gets a text ID from the text file of the panel.
|
String |
getTooltipText(String id)
Gets the tool tip text of this component.
|
VirtualSessionManager |
getVirtualSessionManager()
Gets the VirtualSessionManager instance.
|
boolean |
hasChanged()
Checks if an update transaction to the client is required.
|
boolean |
hasListener()
Checks if a panel has a listener.
|
boolean |
insertLine(int id,
String data,
int line)
Inserts a line in a list capable control.
|
boolean |
insertLine(String data,
int line)
Inserts a line in a list capable control.
|
boolean |
insertLine(String id,
String data,
int line)
Inserts a line in a list capable control.
|
boolean |
isApplicationPanel()
Checks if this is an application panel.
|
int |
isChecked()
Gets the check state of a control (e.g.
|
int |
isChecked(int id)
Gets the check state of a control (e.g.
|
int |
isChecked(String id)
Gets the check state of a control (e.g.
|
boolean |
isChecked2(String id)
Gets the check state of a control (e.g.
|
boolean |
isCreateRequired()
Checks if create transaction is required to update the client.
|
boolean |
isCursorPositionedAtHostUnlock()
Checks if the cursor position should be set when the panel is
unlocked.
|
boolean |
isDestroyed()
Checks if a panel is destroyed.
|
boolean |
isEnabled()
Gets the enabled state of an item.
|
boolean |
isEnabled(int id)
Gets the enabled state of an item.
|
boolean |
isEnabled(String id)
Gets the enabled state of an item.
|
boolean |
isGuiOnTheFlyPanel()
Checks if this virtual panel is created by the Gui-on-the-fly
algorithm.
|
boolean |
isHostConnectedToCurrentScreen()
Checks if this panel is connected to the current host screen.
|
boolean |
isModal()
Checks the panel modality flag.
|
boolean |
isNoteBookPage()
Checks if this panel is a notebook page.
|
boolean |
isPanelHostConnected()
Checks if this panel has a direct host connection or not.
|
boolean |
isReCreateRequired()
Checks if the panel has been recreated, and therefore needs to refresh
all text prompts.
|
void |
issueAction(Transaction trans)
Called after all virtual components are updated with the data
from the client.
|
boolean |
isVisible()
Gets the visibility state of an item.
|
boolean |
isVisible(int id)
Gets the visibility state of an item.
|
boolean |
isVisible(String id)
Gets the visibility state of an item.
|
int |
messageBox(int type,
int icon,
String message)
Same as "messageBox(int type,int icon,String message,String title)", but without
the title: it is taken from the panel title.
|
int |
messageBox(int type,
int icon,
String message,
String title)
Requests and displays a message to the user.
|
void |
onCheckedChange(VirtualControl control,
int state)
Check boxes and radio buttons generates this event when state is changed on the client side.
|
void |
onContentChanged(VirtualControl control,
String text)
Entry fields and multiple line entry fields generates this message.
|
void |
onContentChanged(VirtualControl control,
String text,
int line)
Combination boxes and spin buttons generates this message.
|
void |
onControlEvent(VirtualControl control,
int event)
The general notification event for "normal" controls.
|
void |
onFocusGained(VirtualControl control)
Controls that can receive input focus generates this event when they gain focus.
|
void |
onFocusLost(VirtualControl control)
Controls that can receive input focus generates this event when they lose focus.
|
void |
onModalPanelCreated(JDialog dialog)
Called when the modal dialog is created.
|
void |
onPropertyChange(VirtualControl control,
String propertyName,
Object property)
A control notifies the listener using this event when custom properties
needs to be handled.
|
void |
onSelectionChanged(VirtualCListBox list,
int line,
int column)
List boxes generates this message.
|
boolean |
performAction(VirtualInterface vi,
PhantomHostField hostField,
String sendString,
int phantomSendKey,
PhantomObject object,
String objArgStr,
String nextPanel,
String controlID,
boolean doLockPanel,
int connectedControlIndex)
Performs actions for action items such as menu items, pop-up menu items,
and push buttons.
|
boolean |
performNextPanel(String nextPanel,
int connectedControlIndex)
Perform next panel connection from pushbutton or menu item.
|
void |
printComponent(int ii)
Prints the component at index on the client side.
|
void |
printPanel()
Prints the current panel on the client as a bitmap.
|
void |
processHelpRequestTransaction(Transaction trans)
The user has pressed the F1 key in a control (or menu item).
|
int |
processPanel()
Processes this panel modally until a call to
dismissPanel(rc)
is called. |
void |
removePanelEventListener(VirtualPanelEventListener listener)
Removes a panel event listener.
|
void |
removePanelListener(VirtualPanelListener listener)
Removes a listener for this panel.
|
void |
requestFocus(int controlIndex,
int focusType)
A control wants focus.
|
boolean |
requestFocus(String controlID)
A control wants focus.
|
void |
requestFocus(VirtualControl vc,
int focusType)
A control wants focus.
|
void |
resetHostMessageBoxes()
This method calls the reset method in the VirtualHostMessageBox classes
of this panel because new message boxes needs to be displayed.
|
boolean |
selectField()
Performs a visual selection of the field.
|
boolean |
selectField(int id)
Performs a visual selection of the field.
|
boolean |
selectField(String id)
Performs a visual selection of the field.
|
boolean |
setBackgroundColor(int colorIndex)
Sets the background color of an item.
|
boolean |
setBackgroundColor(int id,
int colorIndex)
Sets the background color of an item.
|
boolean |
setBackgroundColor(String id,
int index)
Sets the background color of an item.
|
boolean |
setCell(int id,
int col,
int line,
String data)
Sets a single cell in a list capable control.
|
boolean |
setCell(int col,
int line,
String data)
Sets a single cell in a list capable control.
|
boolean |
setCell(String id,
int col,
int line,
String data)
Sets a single cell in a list capable control.
|
void |
setChanged()
Sets this virtual panel or one of its virtual components as changed.
|
boolean |
setChecked(int state)
Sets the check state of a control (e.g.
|
boolean |
setChecked(int id,
int state)
Sets the check state of a control (e.g.
|
boolean |
setChecked(String id,
boolean state)
Sets the check state of a control (e.g.
|
boolean |
setChecked(String id,
int state)
Sets the check state of a control (e.g.
|
boolean |
setColor(int id,
se.entra.phantom.geditor.NPPColor color)
Sets the color of an item.
|
boolean |
setColor(se.entra.phantom.geditor.NPPColor color)
Set the color of an item.
|
boolean |
setColor(String id,
se.entra.phantom.geditor.NPPColor color)
Sets the color of an item.
|
boolean |
setEnabled(boolean state)
Sets the enabled state of an item.
|
boolean |
setEnabled(int id,
boolean state)
Sets the enabled state of an item.
|
boolean |
setEnabled(String id,
boolean state)
Sets the enabled state of an item.
|
boolean |
setFileFromList(int id,
PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFileFromList(PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFileFromList(String id,
PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFocus()
Sets focus in the panel to this item.
|
boolean |
setFocus(int id)
Sets focus in the panel to this item.
|
boolean |
setFocus(int id,
PhantomHostFieldLocation hostFieldLocation)
Sets focus in the panel to this item according
to a host field location.
|
boolean |
setFocus(PhantomHostFieldLocation hostFieldLocation)
Sets focus in the panel to this item according
to a host field location.
|
boolean |
setFocus(String id)
Sets focus in the panel to this item.
|
boolean |
setFocus(String id,
PhantomHostFieldLocation hostFieldLocation)
Sets focus in the panel to this item according
to a host field location.
|
boolean |
setFont(int font)
Sets the font index of an item.
|
boolean |
setFont(int id,
int font)
Sets the font index of an item.
|
boolean |
setFont(String id,
int font)
Sets the font index of an item.
|
boolean |
setForegroundColor(int colorIndex)
Sets the foreground color of an item from index.
|
boolean |
setForegroundColor(int id,
int colorIndex)
Sets the foreground color of an item.
|
boolean |
setForegroundColor(String id,
int index)
Sets the foreground color of an item.
|
boolean |
setLength(int length)
Sets the control length.
|
boolean |
setLength(int id,
int length)
Sets the control length.
|
boolean |
setLength(String id,
int length)
Sets the control length.
|
boolean |
setLine(int id,
String data,
int line)
Sets a line in a list capable control.
|
boolean |
setLine(String data,
int line)
Sets a line in a list capable control.
|
boolean |
setLine(String id,
String data,
int line)
Sets a line in a list capable control.
|
void |
setListener(VirtualPanelListener listener)
Sets the listener of this panel.
|
boolean |
setListFromFile(int id,
String fileName)
Sets the contents of a list capable control from a file.
|
boolean |
setListFromFile(String fileName)
Sets the contents of a list capable control from a file.
|
boolean |
setListFromFile(String id,
String fileName)
Sets the contents of a list capable control from a file.
|
void |
setLockState(boolean lock)
Changes the lock state for the client session.
|
boolean |
setProperty(int id,
String propertyName,
Object property)
Sets a property of a virtual component.
|
boolean |
setProperty(String propertyName,
Object property)
Sets a property of a virtual component.
|
boolean |
setProperty(String id,
String propertyName,
Object property)
Sets a property of a virtual component.
|
boolean |
setScreen(PhantomHostScreen screen)
Set connected host screen.
|
boolean |
setSelection(int line,
boolean select)
Sets a line as selected (or not) in a list capable control.
|
boolean |
setSelection(int id,
int line,
boolean select)
Sets a line as selected (or not) in a list capable control.
|
boolean |
setSelection(String id,
int line,
boolean select)
Sets a line as selected (or not) in a list capable control.
|
boolean |
setText(int id,
String text)
Sets the text of an item.
|
boolean |
setText(String text)
Sets the text of an item.
|
boolean |
setText(String id,
String text)
Sets the text of an item.
|
boolean |
setTooltipText(String id,
String text)
Sets the tool tip text to a value for a component or menu item.
|
void |
setUpdateTextPromptRequired()
Sets update of text prompts required for the panel.
|
boolean |
setVisible(boolean state)
Sets the visibility state of an item.
|
boolean |
setVisible(int id,
boolean state)
Sets the visibility state of an item.
|
boolean |
setVisible(String id,
boolean state)
Sets the visibility state of an item.
|
void |
textFileChanged()
Text file is changed, format title and notify all controls.
|
void |
update()
Refreshes the contents of this virtual panel with all its
virtual components.
|
public static VirtualPanel createApplicationPanel(VirtualRuntime runtime, PhantomPanelData panel, VirtualSessionManager vsm)
public static VirtualPanel createNormalPanel(VirtualRuntime runtime, PhantomPanelData panel, VirtualPanelSession vs, PhantomHostScreen screen, int index)
public static VirtualPanel createNormalPanel(VirtualRuntime runtime, PhantomPanelData panel, VirtualPanelSession vs, PhantomHostScreen screen, int index, VirtualPanelListener listener)
public static VirtualPanel createNormalPanel(VirtualRuntime runtime, PhantomPanelData panel, VirtualPanelSession vs, PhantomHostScreen screen, int index, VirtualPanelListener listener, Transaction extraPanelTransaction)
public static VirtualPanel createNoteBookPagePanel(VirtualRuntime runtime, PhantomPanelData panel, VirtualCNoteBookPage noteBookPage, PhantomHostScreen screen)
public Object getComponentLockObject()
public boolean isCreateRequired()
public boolean isReCreateRequired()
public void setUpdateTextPromptRequired()
public boolean isNoteBookPage()
public int getControlCount()
public PhantomHostScreen getScreen()
public String getPanelID()
public boolean isGuiOnTheFlyPanel()
public boolean isPanelHostConnected()
public ClientSessionInterface getClientSession()
public VirtualSessionManager getVirtualSessionManager()
public VirtualRuntime getRuntime()
public PhantomApplicationData getApplication()
public PhantomPanelData getPanelData()
public VirtualHostMessageBox getSystemMessageBox()
public HostScreen getHostScreen()
public String getHostScreenName()
public boolean setScreen(PhantomHostScreen screen)
public VirtualPanelSession getPanelSession()
public VirtualControl getControl(int index)
public boolean isCursorPositionedAtHostUnlock()
public VirtualControl getControlFromID(String id)
public VirtualMenu getMenu()
public VirtualInterface getMenuFromID(String id)
public VirtualInterface getMenuFromIndex(int index)
public VirtualInterface getMenuOrControlFromID(String id)
public VirtualInterface getMenuOrControlFromID(int id)
Note: The ID must be registered with
VirtualRuntime.registerStringID
.
public VirtualControl getControlConnectedToHost(PhantomHostScreen screen, PhantomHostField hostField, int flags)
public VirtualControl getFirstSelectableControl(int flags)
public boolean hasChanged()
hasChanged
in interface VirtualChangeEvent
public boolean setProperty(String propertyName, Object property)
setProperty
in interface VirtualInterface
public Object getProperty(String propertyName)
getProperty
in interface VirtualInterface
public boolean setTooltipText(String id, String text)
id
- The component ID (menu item or control).text
- The text to set, or null
to clear tool tip.id
not found.public String getTooltipText(String id)
id
- The component ID (menu item or control).null
is returned.
null
is also returned if the component id
is not found.public boolean setText(String text)
setText
in interface VirtualInterface
public String getText()
getText
in interface VirtualInterface
public int getIndex()
public void create()
public void callCreateBeforeHostCursor()
public void callCreateAfterHostCursor()
public void callCreate()
public boolean isHostConnectedToCurrentScreen()
public void update()
The routine will update the following items:
- title bar (if any),
- menu bar,
- pop-up menus,
- controls.
If the panel is created or recreated, or if a component
returns true
to the method call
areTextPromptsAlwaysRefreshed()
, then the
components refreshTextPrompt
method is called.
public void fireUpdatesToClient()
public void fireHostMessageBoxes()
public void fireCreate(Transaction trans)
public void clientUpdated(Transaction trans)
Error
- when panel hashCode doesn't match.public void issueAction(Transaction trans)
public void callObject(int action)
public void callObject(int action, String text)
public void callAllControlObjects(int action)
public void callAllControlObjects(int action, boolean callNbObjs)
public void callAllControlObjects(int action, boolean callNonNbObjs, boolean callNbObjs)
public void callNBPanelAndControls(VirtualCNoteBook nb, int action)
public void resetHostMessageBoxes()
public void setChanged()
setChanged
in interface VirtualChangeEvent
public boolean setEnabled(boolean state)
setEnabled
in interface VirtualInterface
public boolean isEnabled()
isEnabled
in interface VirtualInterface
public boolean setVisible(boolean state)
setVisible
in interface VirtualInterface
public boolean isVisible()
isVisible
in interface VirtualInterface
public boolean setColor(se.entra.phantom.geditor.NPPColor color)
setColor
in interface VirtualInterface
public se.entra.phantom.geditor.NPPColor getColor()
getColor
in interface VirtualInterface
public boolean setForegroundColor(int colorIndex)
setForegroundColor
in interface VirtualInterface
public int getForegroundColor()
getForegroundColor
in interface VirtualInterface
public boolean setBackgroundColor(int colorIndex)
setBackgroundColor
in interface VirtualInterface
public int getBackgroundColor()
getBackgroundColor
in interface VirtualInterface
public boolean setFont(int font)
setFont
in interface VirtualInterface
public int getFont()
getFont
in interface VirtualInterface
public boolean setFocus()
setFocus
in interface VirtualInterface
public boolean setFocus(PhantomHostFieldLocation hostFieldLocation)
setFocus
in interface VirtualInterface
public boolean selectField()
selectField
in interface VirtualInterface
public int getLength()
getLength
in interface VirtualInterface
public boolean setLength(int length)
setLength
in interface VirtualInterface
public boolean setChecked(int state)
setChecked
in interface VirtualInterface
public int isChecked()
isChecked
in interface VirtualInterface
public int getLineCount()
getLineCount
in interface VirtualInterface
public boolean insertLine(String data, int line)
insertLine
in interface VirtualInterface
public boolean setLine(String data, int line)
setLine
in interface VirtualInterface
public String getLine(int line)
getLine
in interface VirtualInterface
public boolean deleteLine(int line)
deleteLine
in interface VirtualInterface
public boolean deleteAll()
deleteAll
in interface VirtualInterface
public boolean setCell(int col, int line, String data)
setCell
in interface VirtualInterface
col
- The column for the cell.line
- The line for the column.data
- The data for the cell.public String getCell(int col, int line)
getCell
in interface VirtualInterface
col
- The column for the cell.line
- The line for the column.public boolean setSelection(int line, boolean select)
setSelection
in interface VirtualInterface
public int getNextSelection(int line)
getNextSelection
in interface VirtualInterface
public boolean setFileFromList(PhantomOutputFile pFile)
setFileFromList
in interface VirtualInterface
public boolean setListFromFile(String fileName)
setListFromFile
in interface VirtualInterface
fileName
- the file name.public boolean callControl()
If a control supports being called, it must override this method and return true.
callControl
in interface VirtualInterface
public HostSession getCurrentHostSession()
public void textFileChanged()
public VirtualInterface getNbCtlInfo(String panelID, String ctrlID)
public boolean performAction(VirtualInterface vi, PhantomHostField hostField, String sendString, int phantomSendKey, PhantomObject object, String objArgStr, String nextPanel, String controlID, boolean doLockPanel, int connectedControlIndex)
public boolean performNextPanel(String nextPanel, int connectedControlIndex)
public void printPanel()
public void printComponent(int ii)
public void clipboardComponent(int ii, int action)
public boolean requestFocus(String controlID)
public void requestFocus(int controlIndex, int focusType)
public void requestFocus(VirtualControl vc, int focusType)
public void appendFocusTransaction(Transaction trans)
public void processHelpRequestTransaction(Transaction trans)
public VirtualPanel getParentPanel()
public VirtualPopupMenu[] getPopupMenus()
public VirtualPopupMenu getPopupMenu(String id)
public VirtualMenuItem getPopupMenuItem(String id)
public void enablePopupMenuItem(String id, boolean set)
public boolean setProperty(String id, String propertyName, Object property)
public Object getProperty(String id, String propertyName)
public boolean setText(String id, String text)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public String getText(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setEnabled(String id, boolean state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean isEnabled(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setVisible(String id, boolean state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean isVisible(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setColor(String id, se.entra.phantom.geditor.NPPColor color)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setForegroundColor(String id, int index)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setBackgroundColor(String id, int index)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public se.entra.phantom.geditor.NPPColor getColor(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getForegroundColor(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getBackgroundColor(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setFont(String id, int font)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getFont(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setFocus(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setFocus(String id, PhantomHostFieldLocation hostFieldLocation)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean selectField(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getLength(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setLength(String id, int length)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setChecked(String id, int state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setChecked(String id, boolean state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int isChecked(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean isChecked2(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getLineCount(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean insertLine(String id, String data, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setLine(String id, String data, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public String getLine(String id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean deleteLine(String id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean deleteAll(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setCell(String id, int col, int line, String data)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
col
- The column for the cell.line
- The line for the column.data
- The data for the cell.public String getCell(String id, int col, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
col
- The column for the cell.line
- The line for the column.public boolean setSelection(String id, int line, boolean select)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public int getNextSelection(String id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setFileFromList(String id, PhantomOutputFile pFile)
This item must exist in the panel with the specified
control ID (and not in a notebook inside the panel).
true for successful operation.
false for failure or control menu item not found.
public boolean setListFromFile(String id, String fileName) throws IOException
This item must exist in the panel with the specified
control ID (and not in a notebook inside the panel).
true for successful operation.
false for failure or control menu item not found.
IOException
- for file failures.public boolean callControl(String id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setProperty(int id, String propertyName, Object property)
public Object getProperty(int id, String propertyName)
public boolean setText(int id, String text)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public String getText(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setEnabled(int id, boolean state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean isEnabled(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setVisible(int id, boolean state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean isVisible(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setColor(int id, se.entra.phantom.geditor.NPPColor color)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public se.entra.phantom.geditor.NPPColor getColor(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
public boolean setForegroundColor(int id, int colorIndex)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getForegroundColor(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setBackgroundColor(int id, int colorIndex)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getBackgroundColor(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setFont(int id, int font)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getFont(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setFocus(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setFocus(int id, PhantomHostFieldLocation hostFieldLocation)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean selectField(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getLength(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setLength(int id, int length)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setChecked(int id, int state)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int isChecked(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getLineCount(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean insertLine(int id, String data, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setLine(int id, String data, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public String getLine(int id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean deleteLine(int id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean deleteAll(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setCell(int id, int col, int line, String data)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
col
- The column for the cell.line
- The line for the column.data
- The data for the cell.public String getCell(int id, int col, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
col
- The column for the cell.line
- The line for the column.public boolean setSelection(int id, int line, boolean select)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public int getNextSelection(int id, int line)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public boolean setFileFromList(int id, PhantomOutputFile pFile)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
true for successful operation.
false for failure or control menu item not found.
public boolean setListFromFile(int id, String fileName) throws IOException
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
true for successful operation.
false for failure or control menu item not found.
IOException
- for file failures.public boolean callControl(int id)
This item must exist in the panel with the specified control ID (and not in a notebook inside the panel).
The id
must be a registered string with
an ID in the VirtualRuntime class instance.
public void onModalPanelCreated(JDialog dialog)
public int processPanel()
dismissPanel(rc)
is called.dismissPanel(int)
public boolean dismissPanel(int rc)
processPanel()
public void destroy()
VirtualSessionManager.create[Modal]Panel
.public VirtualPanelListener getListener()
public void setListener(VirtualPanelListener listener)
public void addPanelListener(VirtualPanelListener listener)
public void removePanelListener(VirtualPanelListener listener)
public boolean hasListener()
public VirtualCNoteBook getFirstNoteBook()
public VirtualCNoteBook getNextNoteBook(int fromIndex)
public VirtualCNoteBook getNoteBook(String id)
public VirtualCNoteBook getNoteBook(int id)
public VirtualPanel getFirstNoteBookPagePanel(int index)
public VirtualPanel getFirstNoteBookPagePanel(String pageID)
public VirtualPanel getNoteBookPagePanel(String id, int index)
public VirtualPanel getNoteBookPagePanel(String id, String pageID)
public int messageBox(int type, int icon, String message, String title)
A message box will be displayed to the user containing the message. This function can also be used to ask the user simple questions. Type and Icon above refer to the desired message type and message icon, respectively (see below).
Note: At this time, only a Java application (i.e. running in a separate thread can be used to retrieve the return value. This is due to the fact that the client can respond to the message at a later time. This limitation may be removed in the future.
Type: VirtualPanelListener.MB_* values
MB_CANCEL Message with Cancel button. MB_OK Message with OK button. MB_OKCANCEL Message with OK/Cancel question. MB_ENTER Message with Enter button. MB_ENTERCANCEL Message with Enter/Cancel question. MB_YESNO Message with Yes/No question. MB_YESNOCANCEL Message with Yes/No/Cancel question. MB_RETRYCANCEL Message with Retry/Cancel question. MB_ABORTRETRYIGNORE Message with Retry/Ignore/Cancel question.Icon: VirtualPanelListener.ICON_* values
ICON_NOICON No icon ICON_INFORMATION Information code ICON_QUERY Question mark ICON_WARNING Warning code ICON_CRITICAL Stop code, or criticalReturn value: VirtualPanelListener.MBID_* values
MBID_DEFAULT Incorrect parameters (cancel in general). MBID_CANCEL Response: Cancel. MBID_OK Response: OK. MBID_ENTER Response: Enter. MBID_YES Response: Yes. MBID_NO Response: No. MBID_RETRY Response: Retry. MBID_IGNORE Response: Ignore.
public int messageBox(int type, int icon, String message)
public void onSelectionChanged(VirtualCListBox list, int line, int column)
line
and column
parameter are individually set to -1 if no line or column is selected respectively.public void onCheckedChange(VirtualControl control, int state)
The state is 0=unchecked, 1=checked and 2=third state (only for check boxes, or PhantomCCheckBox.STATE_UNDETERMINED).
public void onContentChanged(VirtualControl control, String text)
public void onContentChanged(VirtualControl control, String text, int line)
line
parameter is set to -1 if no line is selected.public void onPropertyChange(VirtualControl control, String propertyName, Object property)
The object is in general dependent of the property change event string.
public void onFocusGained(VirtualControl control)
public void onFocusLost(VirtualControl control)
public void onControlEvent(VirtualControl control, int event)
public boolean isApplicationPanel()
public void addPanelEventListener(VirtualPanelEventListener listener)
public void removePanelEventListener(VirtualPanelEventListener listener)
public boolean isModal()
public void setLockState(boolean lock)
public boolean isDestroyed()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.