public class VirtualCComboBox 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_UNKNOWN, CTRLTYPE_USER, namesTOOLTIP_TEXTACTION_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, fillerByte, 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_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, SEGMENT_SIZE, 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_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 |
|---|
VirtualCComboBox(VirtualPanel panel,
PhantomCComboBox data)
The constructor of the control always calls the superclass.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clientUpdated(String updateString)
This method is called from the VirtualPanel to cause a client transaction
to update the panels.
|
void |
clientUpdated(Transaction trans)
This method is called from the VirtualPanel to cause a client transaction
to update the panels.
|
String |
convertFromHost(String hostData,
boolean setLine)
Convert host text to combobox text.
|
String |
convertToHost(String clientData,
boolean setLine)
Convert combobox text to host text.
|
String |
convertToHost(String clientData,
boolean setLine,
boolean setChanged)
Convert combobox text to host text.
|
boolean |
deleteAll()
Deletes the whole ComboBox.
|
boolean |
deleteLine(int line)
Deletes a single line in the ComboBox.
|
void |
fireCreate(Transaction trans)
This method fires the creation data transaction to the client.
|
void |
fireUpdate(Transaction trans)
Fires the update data transaction to the client.
|
VirtualControl |
getControlConnectedToHost(PhantomHostScreen screen,
PhantomHostField hostField,
int flags)
Check if control is connected to host field.
|
String |
getHostStringFromIndex(int line,
boolean setLine,
boolean setChanged)
Get host string from index in combobox.
|
int |
getLength()
Gets the maximum editable length.
|
String |
getLine(int line)
Gets the data from an existing line in the listbox.
|
int |
getLineCount()
Gets the number of lines in the listbox.
|
int |
getNextSelection(int line)
Gets the next selected line, starting from a specified line.
|
VirtualControl |
getSelectableControl(int flags)
Check if this control can receive focus (is selectable).
|
void |
hostScreenChanged(PhantomHostScreen screen)
The connected host screen has changed.
|
boolean |
insertLine(String text,
int line)
Inserts a line in a combobox.
|
boolean |
isDirectChecked()
Is characters direct checked.
|
void |
issueAction(Transaction trans)
This method is invoked by the server kernel when an event has occurred on
the client side (such as a push button has been pressed).
|
void |
refresh()
This method is used to refresh the contents of the virtual classes.
|
int |
searchListData(String text)
Search list data for text.
|
boolean |
setFileFromList(PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFocus()
Sets the focus to this control.
|
void |
setHostField(VirtualHostField hf)
Set the host field reference.
|
boolean |
setLine(String text,
int line)
Sets the data in a existing line in the listbox.
|
boolean |
setListFromFile(String fileName)
Sets the contents of a list capable control from a file.
|
boolean |
setSelection(int line,
boolean isSelect)
Changes the selection state on a line.
|
boolean |
setText(boolean setSelection,
String text,
boolean setChanged)
Sets the text of an item.
|
boolean |
setText(String text)
Sets the text of an item.
|
appendCreateTransaction, appendFieldCheckTransaction, appendFontTransaction, appendUpdateTransaction, areTextPromptsAlwaysRefreshed, callControl, callObject, callObject, dispose, getBackgroundColor, getBasicData, getCell, getClientSession, getColor, getComponentLockObject, getControlID, getControlIDHostFieldID, getControlType, getCurrentHostSession, getExtraUpdateFlags, getFont, getForegroundColor, getHostField, getID, getIndex, getObject, getPanel, getPreviousConnectedControl, getProperty, getText, getTextData, getVirtualSessionManager, hasChanged, isChecked, isConnectToNextControlPropertySet, isEnabled, isNewGroup, issueControlAction, isTabSkipped, isVisible, parseRuntimeFont, refreshTextPrompts, refreshTextPrompts, requestFocus, selectField, setBackgroundColor, setCell, setChanged, setChecked, setColor, setEnabled, setFocus, setFont, setForegroundColor, setLength, setProperty, setTooltipText, setupControlIDObject, setVirtualText, setVisible, textFileChangedpublic VirtualCComboBox(VirtualPanel panel, PhantomCComboBox data)
public void hostScreenChanged(PhantomHostScreen screen)
hostScreenChanged in class VirtualControlpublic void refresh()
refresh in interface VirtualClientMessagesrefresh in class VirtualControlpublic void fireCreate(Transaction trans)
+ STRING id
+ USHORT fieldType
+ BYTE listType
+ USHORT length
+ USHORT flags
nnnn nnnn nnnn nnn1 = Not case sensitive list
nnnn nnnn nnnn nn1n = Foreground color
nnnn nnnn nnnn n1nn = Background color
nnnn nnnn nnnn 1nnn = Don't disable host field
nnnn nnnn nnn1 nnnn = Undefined
nnnn nnnn nn1n nnnn = Undefined
nnnn nnnn n1nn nnnn = Use file name in contents
nnnn nnnn 1nnn nnnn = Spacial flag repaint
nnnn nnn1 nnnn nnnn = Sort list
nnnn nn1n nnnn nnnn = Right to left
nnnn n1nn nnnn nnnn = Hindi digits
fireCreate in interface VirtualClientMessagesfireCreate in class VirtualControlpublic int getLength()
getLength in interface VirtualInterfacegetLength in class VirtualControlpublic void fireUpdate(Transaction trans)
+ USHORT size + STRING list items (as many items as is defined in size) + SHORT selected line (-1 if set by host field)
fireUpdate in interface VirtualClientMessagesfireUpdate in class VirtualControlpublic void clientUpdated(Transaction trans)
The only thing required to update is changes in the list and the selection. The entry field is updated by VirtualControl because it is registered.
clientUpdated in class VirtualControlpublic void clientUpdated(String updateString)
The only thing required to update is changes in the list and the selection. The entry field is updated by VirtualControl because it is registered.
public VirtualControl getControlConnectedToHost(PhantomHostScreen screen, PhantomHostField hostField, int flags)
getControlConnectedToHost in class VirtualControlpublic VirtualControl getSelectableControl(int flags)
getSelectableControl in class VirtualControlpublic boolean setFocus()
setFocus in interface VirtualInterfacesetFocus in class VirtualControlpublic boolean deleteAll()
deleteAll in interface VirtualInterfacedeleteAll in class VirtualControltrue if successful.false if not.public boolean deleteLine(int line)
deleteLine in interface VirtualInterfacedeleteLine in class VirtualControlline - The line to delete.true if successful, false if not.public boolean insertLine(String text, int line)
insertLine in interface VirtualInterfaceinsertLine in class VirtualControltext - The lines data.line - The line number for the new line. If -1 then append to end of
list.true if successful.false if failure.public boolean setLine(String text, int line)
setLine in interface VirtualInterfacesetLine in class VirtualControltext - The lines data.line - The line to update.public String getLine(int line)
getLine in interface VirtualInterfacegetLine in class VirtualControlline - The line to fetch.public int getLineCount()
getLineCount in interface VirtualInterfacegetLineCount in class VirtualControlpublic boolean setText(String text)
setText in interface VirtualInterfacesetText in class VirtualControlpublic boolean setText(boolean setSelection,
String text,
boolean setChanged)
public boolean setSelection(int line,
boolean isSelect)
setSelection in interface VirtualInterfacesetSelection in class VirtualControlline - The line on which to change the selection state.isSelect - The new selection state.true if successful, false if not.public int getNextSelection(int line)
getNextSelection in interface VirtualInterfacegetNextSelection in class VirtualControlline - The line to start search from.public boolean setListFromFile(String fileName) throws IOException
setListFromFile in interface VirtualInterfacesetListFromFile in class VirtualControlfileName - the file name.IOException - for file failures.public boolean setFileFromList(PhantomOutputFile pFile)
setFileFromList in interface VirtualInterfacesetFileFromList in class VirtualControlpFile - The Phantom-file to write to.true for successful operation.false for failure.public void setHostField(VirtualHostField hf)
hostField - public void issueAction(Transaction trans)
issueAction in class VirtualControlpublic String convertFromHost(String hostData, boolean setLine)
public String convertToHost(String clientData, boolean setLine)
public String convertToHost(String clientData, boolean setLine, boolean setChanged)
public String getHostStringFromIndex(int line, boolean setLine, boolean setChanged)
public int searchListData(String text)
public boolean isDirectChecked()
isDirectChecked in class VirtualControlPhantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.