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, isSorted
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 |
---|
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, updateReferences
addControlID, 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, setIndex
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColor, getFileListContent, getForegroundColor, getLists, isSorted, processColorConversion
public 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 PhantomListCapableControl
protected int getBaseDataSize()
getBaseDataSize
in class PhantomListCapableControl
public void rebind()
rebind
in class PhantomControl
public 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 PhantomControl
file
- 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 PhantomControl
public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
public boolean isNeverDisabled()
isNeverDisabled
in interface IListCapableControl
public boolean isCaseSensitive()
isCaseSensitive
in interface IListCapableControl
public String getHostFieldID()
getHostFieldID
in class PhantomControl
public String getFileName()
public boolean isActionConnectedEnabled()
isActionConnectedEnabled
in class PhantomControl
public String getID()
getID
in interface IListCapableControl
getID
in class PhantomControl
public int getLength()
getLength
in interface IListCapableControl
public int getFieldType()
getFieldType
in interface IListCapableControl
public boolean isDirectChecked()
isDirectChecked
in interface IListCapableControl
public PhantomObject getObject()
getObject
in interface IListCapableControl
getObject
in class PhantomControl
public int getFont()
getFont
in interface IListCapableControl
public PhantomHostField getHostField()
getHostField
in interface IListCapableControl
public String getHostFieldName()
getHostFieldName
in interface IListCapableControl
public boolean hasValueRange()
hasValueRange
in interface IListCapableControl
public void updateReferences(ApplicationReferences refs)
updateReferences
in class PhantomControl
protected void addNPObjects(ENPObject obj)
addNPObjects
in class PhantomListCapableControl
public String getControlObjectID()
object
instance if not resolved in this class instance.getControlObjectID
in class PhantomControl
protected boolean equalsControl(PhantomControl c)
equalsControl
in class PhantomListCapableControl
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.