public class PhantomCEntryField extends PhantomControl
Modifier and Type | Field and Description |
---|---|
static int |
AMOUNT_CONTROL
Date and Amount: It's an amount control.
|
int |
clientFlags
The flags #1 passed on to the client.
|
static int |
DA_MOVESIGN
Date and Amount: Move sign to beginning.
|
static int |
DA_NOTHOUSANDSEP
Date and Amount: No thousand separator.
|
static int |
DA_USEAPIRAWDATA
Date and Amount: Use raw data for API funcs.
|
int |
daFlags
Date amount: flags.
|
static int |
DATE_CONTROL
Date and Amount: It's a date control.
|
int |
decimalDateSep
Amount: decimal separator, Date: date separator.
|
int |
decimals
Amount: 0-9=fixed 255=any number.
|
static int |
DEFAULT_LENGTH
Default Entry field length.
|
boolean |
doDisableBackground
Disable background when read-only.
|
boolean |
doDisableWhenReadOnly
Disable when read only (no tab stop).
|
boolean |
doSelectField
Select entire text data when entryfield selected.
|
int |
fieldType
Field type.
|
static int |
FLAG_BACKGROUND
Background color.
|
static int |
FLAG_CLEAR
Clear next entry field.
|
static int |
FLAG_CURSORFIRST
Cursor first in field.
|
static int |
FLAG_DYNAMICWIDTH
Flag in "clientFlags" sent to the client indicating that the size
of the entry field is dynamic, i.e.
|
static int |
FLAG_F_DATEAMOUNT
Date/amount control flag.
|
static int |
FLAG_FOREGROUND
Foreground color.
|
static int |
FLAG_HINDI
Hindi digits.
|
static int |
FLAG_NOCOLOR
No coloring when read only.
|
static int |
FLAG_NOSCROLL
Flag for no scroll.
|
static int |
FLAG_NOTABSTOP
No tab when read only.
|
static int |
FLAG_OUTPUTRO
Output text when read only.
|
static int |
FLAG_RTL
RTL.
|
static int |
FLAG_SELFIELD
Select all field.
|
static int |
FLAG_USERCHANGELIGHTEVENT
Should user change light-event be sent for each document change.
|
int |
flags
Flags.
|
int |
font
Field font.
|
boolean |
hasNoBorder
Flag for no border.
|
boolean |
hasNoColorWhenReadOnly
No color when read-only.
|
PhantomHostField |
hostField
The host field (may be null if the panel doesn't have a screen name).
|
String |
hostFieldName
The host field name.
|
boolean |
isAutoTab
Automatic TAB.
|
boolean |
isDirectChecked
Direct check of chars.
|
boolean |
isKeyPad
Key pad processing.
|
boolean |
isNotEmpty
Field may not be empty.
|
boolean |
isPrevEmpty
Field previously empty.
|
boolean |
isRightJustified
Flag for right justify.
|
boolean |
isUnreadable
Not readable field.
|
int |
length
Field length.
|
String |
objectName
Object name.
|
int |
pivot
Date: pivot year, used with subtype 2.
|
boolean |
setCursorFirst
Set cursor position first in field when entry field selected.
|
static int |
SIGN_ANY
Amount: plus or minus sign allowed.
|
static int |
SIGN_MINUS
Amount: minus sign only.
|
static int |
SIGN_NONE
Amount: no sign.
|
static int |
SIGN_PLUS
Amount: plus sign only.
|
int |
signDateType
Amount: SIGN_*.
|
int |
subType
Date: 0=6 digits, 1=8 digits, 2=expand to 8 digits.
|
int |
thousandSep
Amount: thousand separator, if zero (\x00) it's country setting.
|
boolean |
userChangeLightEvent
Should user change light-event be sent for each document change.
|
controlBase, controlColor, id, index, isBackgroundConverted, isForegroundConverted, object, panelData, popupMenu, tooltipText
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
Constructor and Description |
---|
PhantomCEntryField(PhantomFile data)
Designer control constructor.
|
PhantomCEntryField(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
PhantomCEntryField(PhantomPanelData panelData,
PhantomControlBase controlBase,
int length,
boolean isRightJustified,
boolean isUnreadable,
PhantomHostField hostField)
Creates a Gui-on-the-fly entry field.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNPObjects(ENPObject obj)
Gets the NPObject for the control.
|
protected boolean |
equalsControl(PhantomControl c)
Checks for control equality.
|
String |
getControlObjectID()
Needs override by the control if the
object instance if not resolved in this class instance. |
int |
getDataSize(PhantomOutputFile outputFile)
Get the size when saved to file.
|
String |
getHostFieldID()
Gets the host field ID for this control.
|
boolean |
isActionConnectedEnabled()
Checks if a control is action connected to another.
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
void |
save(PhantomOutputFile file)
Saves the instance of the control class to file.
|
void |
updateGuiOnTheFlyValue(CRC32 crc32)
Updates the CRC32 value of a Gui-on-the-fly value with the
control's base data.
|
void |
updateReferences(ApplicationReferences refs)
Updates the Applications References instance.
|
addControlID, addControlReference, addHostFieldReference, appendBaseTransaction, checkTextPromptReferences, checkTextPromptReferences, clone, create, createNPObject, equals, getApplicationData, getBackgroundColor, getDesignerControl, getForegroundColor, getHostField, getID, getIndex, getNPObjectExtra, getNPObjectID, getObject, getObject, getPanelData, getReferencedFiles, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, resolveComponentReferences, saveBase, setBackgroundColor, setForegroundColor, setIndex
public static final int FLAG_NOSCROLL
public static final int FLAG_FOREGROUND
public static final int FLAG_BACKGROUND
public static final int FLAG_CURSORFIRST
public static final int FLAG_SELFIELD
public static final int FLAG_CLEAR
public static final int FLAG_NOTABSTOP
public static final int FLAG_NOCOLOR
public static final int FLAG_OUTPUTRO
public static final int FLAG_RTL
public static final int FLAG_HINDI
public static final int FLAG_F_DATEAMOUNT
public static final int FLAG_USERCHANGELIGHTEVENT
public static final int FLAG_DYNAMICWIDTH
public static final int DATE_CONTROL
public static final int AMOUNT_CONTROL
public static final int DA_MOVESIGN
public static final int DA_NOTHOUSANDSEP
public static final int DA_USEAPIRAWDATA
public static final int SIGN_NONE
public static final int SIGN_MINUS
public static final int SIGN_PLUS
public static final int SIGN_ANY
public static final int DEFAULT_LENGTH
public int length
public boolean isRightJustified
public String objectName
public int fieldType
public String hostFieldName
public PhantomHostField hostField
public int font
public boolean isUnreadable
public boolean isNotEmpty
public int flags
public boolean doDisableBackground
public boolean isKeyPad
public boolean isPrevEmpty
public boolean isAutoTab
public boolean hasNoBorder
public boolean isDirectChecked
public boolean doDisableWhenReadOnly
public boolean hasNoColorWhenReadOnly
public boolean doSelectField
public boolean setCursorFirst
public int daFlags
public int subType
public int pivot
public int decimals
public int signDateType
public int decimalDateSep
public int thousandSep
public int clientFlags
public boolean userChangeLightEvent
public PhantomCEntryField(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + length USHORT + isRightJustified BYTE + id BYTE [9] + object BYTE [9] + fieldType USHORT + hostField BYTE [9] + reserved BYTE [2] + font USHORT + foregroundColor BYTE + isUnreadable BYTE + isNotEmpty BYTE + flags USHORT + reserved BYTE + backgroundColor BYTE + doDisableBackground BYTE + isKeyPad BYTE + isPrevEmpty BYTE + isAutoTab BYTE + hasNoBorder BYTE + isDirectChecked BYTEIf the control has the DateAmount flag set, the following data is also read:
+ daFlags ULONG + subType BYTE + pivot BYTE + decimals BYTE + signDateType BYTE + decimalDateSep BYTE + thousandSep BYTE + reserved BYTE [34]
IOException
- if an I/O error occurs.public PhantomCEntryField(PhantomFile data) throws IOException
IOException
- For I/O errors.public PhantomCEntryField(PhantomPanelData panelData, PhantomControlBase controlBase, int length, boolean isRightJustified, boolean isUnreadable, PhantomHostField hostField)
public void rebind()
rebind
in class PhantomControl
public void save(PhantomOutputFile file) throws IOException
Base: + length USHORT + isRightJustified BYTE + id BYTE [9] + object BYTE [9] + fieldType USHORT + hostField BYTE [9] + reserved BYTE [2] + font USHORT + foregroundColor BYTE + isUnreadable BYTE + isNotEmpty BYTE + flags USHORT + reserved BYTE + backgroundColor BYTE + doDisableBackground BYTE + isKeyPad BYTE + isPrevEmpty BYTE + isAutoTab BYTE + hasNoBorder BYTE + isDirectChecked BYTEIf the control has the DateAmount flag set, the following data is also read:
+ daFlags ULONG + subType BYTE + pivot BYTE + decimals BYTE + signDateType BYTE + decimalDateSep BYTE + thousandSep BYTE + reserved BYTE [34]
save
in class PhantomControl
file
- IOException
- if an I/O error occurs.public int getDataSize(PhantomOutputFile outputFile)
getDataSize
in class PhantomControl
public void updateGuiOnTheFlyValue(CRC32 crc32)
All controls that implements a Gui-on-the-fly constructor
must always override this method and start by calling
super.updateGuiOnTheFlyCRC32(crc32)
before
adding control specific data.
updateGuiOnTheFlyValue
in class PhantomControl
public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
public boolean isActionConnectedEnabled()
isActionConnectedEnabled
in class PhantomControl
public String getHostFieldID()
getHostFieldID
in class PhantomControl
public void updateReferences(ApplicationReferences refs)
updateReferences
in class PhantomControl
protected void addNPObjects(ENPObject obj)
addNPObjects
in class PhantomControl
public String getControlObjectID()
object
instance if not resolved in this class instance.getControlObjectID
in class PhantomControl
protected boolean equalsControl(PhantomControl c)
equalsControl
in class PhantomControl
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.