public class PhantomCComboBox extends PhantomControl
| 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.
|
boolean |
isHostConverted
Flag for list is host converted.
|
boolean |
isSorted
Flag indicating list requires sorting.
|
int |
length
Length of entry field data.
|
int |
listType
List type.
|
String |
objectName
Object name.
|
String |
text
Text prompt.
|
controlBase, 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_UNKNOWN, CTRLTYPE_USER, namesCTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT| Constructor and Description |
|---|
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 |
|---|---|
FileListContent |
getFileListContent()
Gets the file list contents instance, it is null if no
external file is used.
|
String |
getFileName()
Gets the filename for this control.
|
String |
getHostFieldID()
Gets the host field ID for this control.
|
Vector<String> |
getListContent()
Gets the current content list.
|
Vector<String> |
getListConversion()
Gets the current conversion list.
|
Vector<String>[] |
getLists(VirtualPanel panel)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
Object[] isChanged)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
String newFN)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
String newFN,
Object[] isChanged)
Gets the lists in a two-vector array.
|
void |
getReferencedFiles(ArrayList<String> files)
Adds all files that are referenced by this control.
|
int |
getSaveSize()
Get the size when saved to file.
|
boolean |
isActionConnectedEnabled()
Checks if a control is action connected to another.
|
boolean |
isCaseSensitive()
Is list case sensitive.
|
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.
|
addControlID, appendBaseTransaction, clone, create, getApplicationData, getBackgroundColor, getControlSize, getForegroundColor, getHostField, getID, getIndex, getObject, getObject, getPanelData, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, resolveComponentReferences, saveBase, setBackgroundColor, setForegroundColor, setIndexpublic 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 boolean isHostConverted
public int length
public boolean isSorted
public boolean isDirectChecked
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 [11]Then additional data for combobox is read (list content, from file or predefined).
IOException - if an I/O error occurs.public PhantomCComboBox(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, Vector<String> list, boolean isUneditable)
public FileListContent getFileListContent()
public void rebind()
rebind in class PhantomControlpublic void getReferencedFiles(ArrayList<String> files)
getReferencedFiles in class PhantomControlArrayList - 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 [11]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 int getSaveSize()
getSaveSize in class PhantomControlpublic 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 Vector<String> getListConversion()
public Vector<String> getListContent()
public Vector<String>[] getLists(VirtualPanel panel)
public Vector<String>[] getLists(VirtualPanel panel, Object[] isChanged)
The parameter "isChanged" should be null or an Object[1] array initiated with null as Object[0]. Upon return, the Object[0] member is non-null if the text is formatted according to the panel causing the file not to be able to be cached on the client.
public Vector<String>[] getLists(VirtualPanel panel, String newFN)
public Vector<String>[] getLists(VirtualPanel panel, String newFN, Object[] isChanged)
The parameter "isChanged" should be null or an Object[1] array initiated with null as Object[0]. Upon return, the Object[0] member is non-null if the text is formatted according to the panel causing the file not to be possible to cache on the client.
public boolean isNeverDisabled()
public boolean isCaseSensitive()
public String getHostFieldID()
getHostFieldID in class PhantomControlpublic String getFileName()
public boolean isActionConnectedEnabled()
isActionConnectedEnabled in class PhantomControlPhantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.