public class VirtualCEntryField extends VirtualControl
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DYNAMIC_HOST_FIELD
Property string for using a dynamic host field position and length.
|
static String |
PROPERTY_DYNAMIC_HOST_FIELD_NOWRAP
Property string to set the dynamic host field position and length not to
wrap line on the host screen.
|
static String |
PROPERTY_DYNAMIC_WIDTH
Property indicating that the size of the entry field is dynamic, i.e.
|
static String |
PROPERTY_HIDE_PROTECTED_EMPTY
Property string for hiding the entry field when the host field is protected and empty.
|
static String |
PROPERTY_READONLY
Property string read only.
|
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, 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, 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 |
|---|
VirtualCEntryField(VirtualPanel panel,
PhantomCEntryField data)
The constructor of the control always calls the superclass.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clientUpdated(Transaction trans)
This method is called from the VirtualPanel
to cause a client transaction to update the panels.
|
void |
fireCreate(Transaction trans)
This method fires the creation data transaction to the client.
|
void |
fireUpdate(Transaction trans)
Everything is handled by VirtualControl.
|
VirtualControl |
getControlConnectedToHost(PhantomHostScreen screen,
PhantomHostField hostField,
int flags)
Check if control is connected to host field.
|
protected int |
getExtraUpdateFlags()
Gets the extra flags used for the update transaction.
|
int |
getLength()
Gets the maximum editable length.
|
Object |
getProperty(String propertyName)
Gets a property of a virtual component.
|
VirtualControl |
getSelectableControl(int flags)
Check if this control can receive focus (is selectable).
|
String |
getText()
Gets the text of an item.
|
void |
hostScreenChanged(PhantomHostScreen screen)
The connected host screen has changed.
|
boolean |
isDirectChecked()
Is characters direct checked.
|
void |
issueAction(Transaction trans)
This method is invoked by the server kernel when an event has occured
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.
|
boolean |
selectField()
Performs a visual selection of the field.
|
boolean |
setBackgroundColor(int colorIndex)
This method is overriden so that original color (not disabled color)
is saved in this class.
|
boolean |
setEnabled(boolean isEnabled)
Call from API.
|
boolean |
setFocus()
Sets the focus to this control.
|
boolean |
setForegroundColor(int colorIndex)
This method is overriden so that original color (not disabled color)
is saved in this class.
|
boolean |
setLength(int newlength)
Sets the maximum editable length.
|
boolean |
setProperty(String propertyName,
Object property)
Sets a property of a virtual component.
|
appendCreateTransaction, appendFieldCheckTransaction, appendFontTransaction, appendUpdateTransaction, areTextPromptsAlwaysRefreshed, callControl, callObject, callObject, deleteAll, deleteLine, dispose, getBackgroundColor, getBasicData, getCell, getClientSession, getColor, getComponentLockObject, getControlID, getControlIDHostFieldID, getControlType, getCurrentHostSession, getFont, getForegroundColor, getHostField, getID, getIndex, getLine, getLineCount, getNextSelection, getObject, getPanel, getPreviousConnectedControl, getTextData, getTooltipText, getVirtualSessionManager, hasChanged, insertLine, isChecked, isConnectToNextControlPropertySet, isEnabled, isNewGroup, issueControlAction, isTabSkipped, isVisible, parseRuntimeFont, refreshTextPrompts, refreshTextPrompts, requestFocus, setCell, setChanged, setChecked, setColor, setFileFromList, setFocus, setFont, setLine, setListFromFile, setSelection, setText, setTooltipText, setupControlIDObject, setVirtualText, setVisible, textFileChangedpublic static final String PROPERTY_READONLY
public static final String PROPERTY_DYNAMIC_HOST_FIELD
public static final String PROPERTY_DYNAMIC_HOST_FIELD_NOWRAP
This property is used in conjuction with the property PROPERTY_DYNAMIC_HOST_FIELD and typically with protected host fields.
public static final String PROPERTY_HIDE_PROTECTED_EMPTY
public static final String PROPERTY_DYNAMIC_WIDTH
public VirtualCEntryField(VirtualPanel panel, PhantomCEntryField data)
public void hostScreenChanged(PhantomHostScreen screen)
hostScreenChanged in class VirtualControlpublic void refresh()
refresh in interface VirtualClientMessagesrefresh in class VirtualControlpublic boolean selectField()
selectField in interface VirtualInterfaceselectField in class VirtualControlpublic boolean setForegroundColor(int colorIndex)
setForegroundColor in interface VirtualInterfacesetForegroundColor in class VirtualControlpublic boolean setBackgroundColor(int colorIndex)
setBackgroundColor in interface VirtualInterfacesetBackgroundColor in class VirtualControlpublic boolean setEnabled(boolean isEnabled)
setEnabled in interface VirtualInterfacesetEnabled in class VirtualControlpublic void fireCreate(Transaction trans)
+ USHORT length + BYTE flags (bit 0:isRight, 1:border, 2:password, 3:notEmpty, 4:autoTab)
fireCreate in interface VirtualClientMessagesfireCreate in class VirtualControlpublic void fireUpdate(Transaction trans)
fireUpdate in interface VirtualClientMessagesfireUpdate in class VirtualControlprotected int getExtraUpdateFlags()
getExtraUpdateFlags in class VirtualControlpublic void clientUpdated(Transaction trans)
clientUpdated in class VirtualControltrans - A transaction that is already being processed.public String getText()
getText in interface VirtualInterfacegetText in class VirtualControlpublic 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 void issueAction(Transaction trans)
issueAction in class VirtualControltrans - A transaction that is already being processed.public int getLength()
getLength in interface VirtualInterfacegetLength in class VirtualControlpublic boolean setLength(int newlength)
setLength in interface VirtualInterfacesetLength in class VirtualControlpublic boolean isDirectChecked()
isDirectChecked in class VirtualControlpublic boolean setProperty(String propertyName, Object property)
setProperty in interface VirtualInterfacesetProperty in class VirtualControlpublic Object getProperty(String propertyName)
getProperty in interface VirtualInterfacegetProperty in class VirtualControlPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.