public class VirtualCUserWindow extends VirtualControl
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
TOOLTIP_TEXT
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
Constructor and Description |
---|
VirtualCUserWindow(VirtualPanel panel,
PhantomCUserWindow data)
The constructor of the control always calls the superclass.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areTextPromptsAlwaysRefreshed()
If the class has a need to refresh the text prompt at all host
changed, it must reply
true to this method call. |
boolean |
callControl()
"Calls" the control in question.
|
void |
clientUpdated(Transaction trans)
This method is called from the VirtualPanel
to cause a client transaction to update the panels.
|
boolean |
deleteAll()
Deletes all lines in a list capable control.
|
boolean |
deleteLine(int line)
Deletes a line in a list capable control.
|
void |
dispose()
This method is called whenever a panel has been disposed of,
in order to remove listeners, etc, in order to free up memory.
|
void |
fireCreate(Transaction trans)
This method fires the creation data transaction to the client.
|
void |
fireUpdate(Transaction trans)
This method is used to fire an update message to the client by
a virtual class.
|
int |
getBackgroundColor()
Gets the background color of an item.
|
String |
getCell(int col,
int line)
Gets a single cell in a list capable control.
|
se.entra.phantom.geditor.NPPColor |
getColor()
Get color of an item.
|
int |
getFont()
Gets the font index of an item.
|
int |
getForegroundColor()
Gets the foreground color of an item.
|
String |
getId()
Gets the ID of the user window.
|
int |
getLength()
Gets the control length.
|
String |
getLine(int line)
Sets a line in a list capable control.
|
int |
getLineCount()
Gets the line count for a list capable control.
|
int |
getNextSelection(int line)
Gets the next selected line in a list capable control.
|
VirtualUserWindowInterface |
getPeer()
Gets the peer of the user window, i.e.
|
Object |
getProperty(String propertyName)
Gets a property of a virtual component.
|
String |
getText()
Gets the text of an item.
|
void |
hostScreenChanged(PhantomHostScreen screen)
The connected host screen has changed.
|
boolean |
insertLine(String data,
int line)
Inserts a line in a list capable control.
|
int |
isChecked()
Gets the check state of a control (e.g.
|
void |
issueAction(Transaction trans)
This method is invoked by the server kernel whenever a user window has issued an action
on the client side.
|
void |
refresh()
This method is used to refresh all virtual controls when e.g.
|
void |
refreshTextPrompts()
This method is used to refresh all virtual controls when e.g.
|
boolean |
selectField()
Performs a visual selection of the field.
|
boolean |
setBackgroundColor(int colorIndex)
Sets the background color of an item.
|
boolean |
setCell(int col,
int line,
String data)
Sets a single cell in a list capable control.
|
boolean |
setChecked(int state)
Sets the check state of a control (e.g.
|
boolean |
setColor(se.entra.phantom.geditor.NPPColor newcolor)
Set the color of an item.
|
boolean |
setEnabled(boolean state)
Sets the enabled state of an item.
|
boolean |
setFileFromList(PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFocus()
Sets the focus to this control.
|
boolean |
setFont(int font)
Sets the font index of an item.
|
boolean |
setForegroundColor(int colorIndex)
Sets the foreground color of an item.
|
boolean |
setLength(int length)
Sets the control length.
|
boolean |
setLine(String data,
int line)
Sets a line in a list capable control.
|
boolean |
setListFromFile(String fileName)
Sets the contents of a list capable control from a file.
|
boolean |
setProperty(String propertyName,
Object property)
Sets a property of a virtual component.
|
boolean |
setSelection(int line,
boolean select)
Sets a line as selected (or not) in a list capable control.
|
boolean |
setText(String text)
Sets the text of an item.
|
boolean |
setVisible(boolean state)
Sets the visibility state of an item.
|
appendCreateTransaction, appendFieldCheckTransaction, appendFontTransaction, appendUpdateTransaction, callObject, callObject, getBasicData, getClientSession, getComponentLockObject, getControlConnectedToHost, getControlID, getControlIDHostFieldID, getControlType, getCurrentHostSession, getExtraUpdateFlags, getHostField, getID, getIndex, getObject, getPanel, getPreviousConnectedControl, getSelectableControl, getTextData, getTooltipText, getVirtualSessionManager, hasChanged, isConnectToNextControlPropertySet, isDirectChecked, isEnabled, isNewGroup, issueControlAction, isTabSkipped, isVisible, parseRuntimeFont, refreshTextPrompts, requestFocus, setChanged, setFocus, setTooltipText, setupControlIDObject, setVirtualText, textFileChanged
public VirtualCUserWindow(VirtualPanel panel, PhantomCUserWindow data)
public void dispose()
dispose
in class VirtualControl
public VirtualUserWindowInterface getPeer()
public void hostScreenChanged(PhantomHostScreen screen)
hostScreenChanged
in class VirtualControl
public void refresh()
refresh
in interface VirtualClientMessages
refresh
in class VirtualControl
public void refreshTextPrompts()
refreshTextPrompts
in interface VirtualClientMessages
refreshTextPrompts
in class VirtualControl
public boolean areTextPromptsAlwaysRefreshed()
true
to this method call.
Otherwise return false
.
A class extending VirtualControl have to override this method and return true if the text prompts need a constant refresh.
areTextPromptsAlwaysRefreshed
in interface VirtualClientMessages
areTextPromptsAlwaysRefreshed
in class VirtualControl
public void fireCreate(Transaction trans)
fireCreate
in interface VirtualClientMessages
fireCreate
in class VirtualControl
public void fireUpdate(Transaction trans)
fireUpdate
in interface VirtualClientMessages
fireUpdate
in class VirtualControl
public void clientUpdated(Transaction trans)
clientUpdated
in class VirtualControl
trans
- A transaction that is already being processed.public void issueAction(Transaction trans)
issueAction
in class VirtualControl
trans
- A transaction that is already being processed.public boolean setProperty(String propertyName, Object property)
setProperty
in interface VirtualInterface
setProperty
in class VirtualControl
public Object getProperty(String propertyName)
getProperty
in interface VirtualInterface
getProperty
in class VirtualControl
public boolean setText(String text)
setText
in interface VirtualInterface
setText
in class VirtualControl
public String getText()
getText
in interface VirtualInterface
getText
in class VirtualControl
public boolean setFocus()
setFocus
in interface VirtualInterface
setFocus
in class VirtualControl
public boolean setEnabled(boolean state)
setEnabled
in interface VirtualInterface
setEnabled
in class VirtualControl
public boolean setVisible(boolean state)
setVisible
in interface VirtualInterface
setVisible
in class VirtualControl
public boolean setColor(se.entra.phantom.geditor.NPPColor newcolor)
setColor
in interface VirtualInterface
setColor
in class VirtualControl
public se.entra.phantom.geditor.NPPColor getColor()
getColor
in interface VirtualInterface
getColor
in class VirtualControl
public boolean setForegroundColor(int colorIndex)
setForegroundColor
in interface VirtualInterface
setForegroundColor
in class VirtualControl
public int getForegroundColor()
getForegroundColor
in interface VirtualInterface
getForegroundColor
in class VirtualControl
public boolean setBackgroundColor(int colorIndex)
setBackgroundColor
in interface VirtualInterface
setBackgroundColor
in class VirtualControl
public int getBackgroundColor()
getBackgroundColor
in interface VirtualInterface
getBackgroundColor
in class VirtualControl
public boolean setFont(int font)
setFont
in interface VirtualInterface
setFont
in class VirtualControl
public int getFont()
getFont
in interface VirtualInterface
getFont
in class VirtualControl
public boolean selectField()
selectField
in interface VirtualInterface
selectField
in class VirtualControl
public int getLength()
getLength
in interface VirtualInterface
getLength
in class VirtualControl
public boolean setLength(int length)
setLength
in interface VirtualInterface
setLength
in class VirtualControl
public boolean setChecked(int state)
setChecked
in interface VirtualInterface
setChecked
in class VirtualControl
public int isChecked()
isChecked
in interface VirtualInterface
isChecked
in class VirtualControl
public int getLineCount()
getLineCount
in interface VirtualInterface
getLineCount
in class VirtualControl
public boolean insertLine(String data, int line)
insertLine
in interface VirtualInterface
insertLine
in class VirtualControl
public boolean setLine(String data, int line)
setLine
in interface VirtualInterface
setLine
in class VirtualControl
public String getLine(int line)
getLine
in interface VirtualInterface
getLine
in class VirtualControl
public boolean deleteLine(int line)
deleteLine
in interface VirtualInterface
deleteLine
in class VirtualControl
public boolean deleteAll()
deleteAll
in interface VirtualInterface
deleteAll
in class VirtualControl
public boolean setCell(int col, int line, String data)
setCell
in interface VirtualInterface
setCell
in class VirtualControl
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
getCell
in class VirtualControl
col
- The column for the cell.line
- The line for the column.public boolean setSelection(int line, boolean select)
setSelection
in interface VirtualInterface
setSelection
in class VirtualControl
public int getNextSelection(int line)
getNextSelection
in interface VirtualInterface
getNextSelection
in class VirtualControl
public boolean setFileFromList(PhantomOutputFile pFile)
setFileFromList
in interface VirtualInterface
setFileFromList
in class VirtualControl
public boolean setListFromFile(String fileName) throws IOException
setListFromFile
in interface VirtualInterface
setListFromFile
in class VirtualControl
fileName
- the file name.IOException
- for file failures.public boolean callControl()
callControl
in interface VirtualInterface
callControl
in class VirtualControl
public String getId()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.