public class VirtualHostField extends VirtualTextData
Modifier and Type | Field and Description |
---|---|
boolean |
isFound
The real host field found flag.
|
boolean |
isHidden
The hidden flag.
|
boolean |
isProtected
The protected flag.
|
VirtualSessionManager |
manager
The virtual session manager.
|
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.
|
int |
vioColor
The VIO color of the field.
|
Constructor and Description |
---|
VirtualHostField(VirtualControl control,
PhantomHostField hostField)
The constructor saves the host field and references to the host session.
|
VirtualHostField(VirtualControl control,
PhantomHostField hostField,
String hostFieldName)
The constructor saves the host field and references to the host session.
|
VirtualHostField(VirtualPanel panel,
PhantomHostField hostField)
The constructor saves the host field and references to the host session.
|
VirtualHostField(VirtualPanel panel,
PhantomHostField hostField,
String hostFieldName)
The constructor saves the host field and references to the host session.
|
Modifier and Type | Method and Description |
---|---|
boolean |
format()
Formats this string and possibly changes the text contents.
|
boolean |
format(boolean attributesOnly)
Formats this string and possibly changes the text contents.
|
Object |
getProperty(String propertyName)
Gets a property of this host field.
|
int |
getRealHostFieldLength()
Returns the length of the connected host field.
|
boolean |
hasRealHostField()
Checks if there is a real host field in the virtual host field.
|
void |
hostScreenChanged(PhantomHostScreen screen,
PhantomHostField hostField,
String hostFieldName)
The connected host screen has changed.
|
boolean |
isDynamic()
Checks if the host field is dynamic or not.
|
boolean |
isHostFieldCurrentlyProtected()
Checks if the connected host field is protected or not.
|
boolean |
isHostFieldPresent()
Checks if the host field is currently present on this screen or not.
|
void |
setCursor()
Sets the host cursor to this hostfield.
|
void |
setDynamic(boolean on)
Sets this host field to be dynamic or not.
|
boolean |
setProperty(String propertyName,
Object property)
Sets a property of this host field.
|
boolean |
setText(String t)
Sets the text of an item.
|
boolean |
update(String text)
Use this method to update the text prompt and host field with any new text contents.
|
boolean |
update(String text,
boolean alwaysUpdateHost)
Use this method to update the text prompt and host field with any new text contents.
|
boolean |
update(Transaction trans)
Use this method to update the text and host field with any new text contents of an
inbound transaction from the client.
|
appendTransaction, appendUpdateTransaction, getLength, getText, getTextResetChange, hasChanged, resetChange, setChanged, setText
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 VirtualSessionManager manager
public boolean isProtected
public boolean isHidden
public boolean isFound
public int vioColor
public VirtualHostField(VirtualControl control, PhantomHostField hostField)
public VirtualHostField(VirtualControl control, PhantomHostField hostField, String hostFieldName)
The hostField may be null, in which case the current host screen is searched to find the matching hostFieldName. If hostFieldName is null, no search will be performed.
public VirtualHostField(VirtualPanel panel, PhantomHostField hostField)
public VirtualHostField(VirtualPanel panel, PhantomHostField hostField, String hostFieldName)
The hostField may be null, in which case the current host screen is searched to find the matching hostFieldName. If hostFieldName is null, no search will be performed.
public void hostScreenChanged(PhantomHostScreen screen, PhantomHostField hostField, String hostFieldName)
public boolean hasRealHostField()
public boolean isHostFieldPresent()
public int getRealHostFieldLength()
public boolean format()
public boolean format(boolean attributesOnly)
public boolean isHostFieldCurrentlyProtected()
public boolean update(Transaction trans)
public boolean update(String text)
public boolean update(String text, boolean alwaysUpdateHost)
public boolean setText(String t)
setText
in class VirtualTextData
public void setCursor()
public boolean setProperty(String propertyName, Object property)
public Object getProperty(String propertyName)
public void setDynamic(boolean on)
public boolean isDynamic()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.