public class PhantomCComboBox extends PhantomListCapableControl implements IListCapableControl
| Modifier and Type | Field and Description |
|---|---|
int |
fieldType
Field type.
|
static int |
FLAG_AUTOCOMPLETE_NO
Auto-complete entry field: NO.
|
static int |
FLAG_AUTOCOMPLETE_YES
Auto-complete entry field: YES.
|
static int |
FLAG_BACKGROUND
Background color.
|
static int |
FLAG_FILENAME
Use file name in contents.
|
static int |
FLAG_FOREGROUND
Foreground color.
|
static int |
FLAG_HINDI
Hindi digits.
|
static int |
FLAG_NOCASE
Not case sensitive list.
|
static int |
FLAG_NODISABLE
Don't disable for host field.
|
static int |
FLAG_RTL
RTL.
|
static int |
FLAG_USERCHGLIGHTEVENT
User change light event on all document changes.
|
int |
flags
Control flags.
|
int |
font
Font index.
|
PhantomHostField |
hostField
The host field (may be null if the panel doesn't have a screen name).
|
String |
hostFieldName
The host field name.
|
boolean |
isDirectChecked
Indicates if every character pressed is checked.
|
int |
length
Length of entry field data.
|
int |
listType
List type.
|
int |
maxDropDownRows
Row count for drop-down list, zero for old-style.
|
String |
objectName
Object name.
|
String |
text
Text prompt.
|
isHostConverted, isSortedcontrolBase, controlColor, id, index, isBackgroundConverted, isForegroundConverted, object, panelData, popupMenu, tooltipTextCTRLTYPE_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, namesCTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT| Constructor and Description |
|---|
PhantomCComboBox(PhantomFile data)
Constructor for Designer control.
|
PhantomCComboBox(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
PhantomCComboBox(PhantomPanelData panelData,
PhantomControlBase controlBase,
PhantomHostField hostField,
Vector<String> list,
boolean isUneditable)
Creates a combo box control for Gui-on-the-fly.
|
| 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.
|
protected int |
getBaseDataSize()
Gets the base data size of the extending control.
|
String |
getControlObjectID()
Needs override by the control if the
object instance if not resolved in this class instance. |
int |
getFieldType()
Gets the field type.
|
String |
getFileName()
Gets the filename for this control.
|
int |
getFont()
Gets the font.
|
PhantomHostField |
getHostField()
Gets the host field.
|
String |
getHostFieldID()
Gets the host field ID for this control.
|
String |
getHostFieldName()
Gets the host field name.
|
String |
getID()
Gets the ID.
|
int |
getLength()
Gets the length of the entry field.
|
PhantomObject |
getObject()
Gets the object, null for none.
|
boolean |
hasFileName()
Checks for filename.
|
boolean |
hasValueRange()
Checks for value range, spin button only.
|
boolean |
isActionConnectedEnabled()
Checks if a control is action connected to another.
|
boolean |
isCaseSensitive()
Is list case sensitive.
|
boolean |
isDirectChecked()
Check for direct-checked when user types a character.
|
boolean |
isNeverDisabled()
Should combobox never be disabled.
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
void |
save(PhantomOutputFile file)
Saves the instance 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.
|
getContentSize, getDataSize, getFileListContent, getListContent, getListConversion, getLists, getLists, getLists, getLists, getReferencedFiles, isSorted, loadContents, saveContents, updateReferencesaddControlID, addControlReference, addHostFieldReference, appendBaseTransaction, checkTextPromptReferences, checkTextPromptReferences, clone, create, createNPObject, equals, getApplicationData, getBackgroundColor, getDesignerControl, getForegroundColor, getHostField, getIndex, getNPObjectExtra, getNPObjectID, getObject, getPanelData, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, resolveComponentReferences, saveBase, setBackgroundColor, setForegroundColor, setIndexfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColor, getFileListContent, getForegroundColor, getLists, isSorted, processColorConversionpublic static final int FLAG_NOCASE
public static final int FLAG_FOREGROUND
public static final int FLAG_BACKGROUND
public static final int FLAG_NODISABLE
public static final int FLAG_USERCHGLIGHTEVENT
public static final int FLAG_FILENAME
public static final int FLAG_RTL
public static final int FLAG_HINDI
public static final int FLAG_AUTOCOMPLETE_YES
public static final int FLAG_AUTOCOMPLETE_NO
public String text
public String objectName
public String hostFieldName
public PhantomHostField hostField
public int font
public int flags
public int fieldType
public int listType
public int length
public boolean isDirectChecked
public int maxDropDownRows
public PhantomCComboBox(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + id BYTE [9] + object BYTE [9] + fieldType USHORT + fieldName BYTE [9] + reserved BYTE [3] + listType BYTE + hostConversion BYTE + preDefinedSize USHORT + length USHORT + font USHORT + foregroundColor BYTE + sortListFlag BYTE + directCheckFlag BYTE + flags BYTE + newFlags USHORT + reserved BYTE [10]Then additional data for combobox is read (list content, from file or predefined).
IOException - if an I/O error occurs.public PhantomCComboBox(PhantomFile data) throws IOException
IOException - For I/O errors.public PhantomCComboBox(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, Vector<String> list, boolean isUneditable)
public boolean hasFileName()
hasFileName in class PhantomListCapableControlprotected int getBaseDataSize()
getBaseDataSize in class PhantomListCapableControlpublic void rebind()
rebind in class PhantomControlpublic void save(PhantomOutputFile file) throws IOException
Base: + id BYTE [9] + object BYTE [9] + fieldType USHORT + fieldName BYTE [9] + reserved BYTE [3] + listType BYTE + hostConversion BYTE + preDefinedSize USHORT + length USHORT + font USHORT + foregroundColor BYTE + sortListFlag BYTE + directCheckFlag BYTE + flags BYTE + newFlags USHORT + reserved BYTE [10]Then additional data for combobox is read (list content, from file or predefined).
save in class PhantomControlfile - IOException - if an I/O error occurs.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 PhantomControlpublic void reloadObject()
throws IOException
reloadObject in class PhantomControlIOExceptionpublic boolean isNeverDisabled()
isNeverDisabled in interface IListCapableControlpublic boolean isCaseSensitive()
isCaseSensitive in interface IListCapableControlpublic String getHostFieldID()
getHostFieldID in class PhantomControlpublic String getFileName()
public boolean isActionConnectedEnabled()
isActionConnectedEnabled in class PhantomControlpublic String getID()
getID in interface IListCapableControlgetID in class PhantomControlpublic int getLength()
getLength in interface IListCapableControlpublic int getFieldType()
getFieldType in interface IListCapableControlpublic boolean isDirectChecked()
isDirectChecked in interface IListCapableControlpublic PhantomObject getObject()
getObject in interface IListCapableControlgetObject in class PhantomControlpublic int getFont()
getFont in interface IListCapableControlpublic PhantomHostField getHostField()
getHostField in interface IListCapableControlpublic String getHostFieldName()
getHostFieldName in interface IListCapableControlpublic boolean hasValueRange()
hasValueRange in interface IListCapableControlpublic void updateReferences(ApplicationReferences refs)
updateReferences in class PhantomControlprotected void addNPObjects(ENPObject obj)
addNPObjects in class PhantomListCapableControlpublic String getControlObjectID()
object instance if not resolved in this class instance.getControlObjectID in class PhantomControlprotected boolean equalsControl(PhantomControl c)
equalsControl in class PhantomListCapableControlPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.