public class PhantomCCheckBox extends PhantomControl
| Modifier and Type | Field and Description |
|---|---|
int | bitmapFlagsBitmap image flags. |
String | doubleClickIDControl ID to activate when double clicked. |
int | doubleClickIndexControl ID index to activate when double clicked. |
static int | FLAG_ALWAYSUPDATEAlways update text prompt. |
static int | FLAG_BACKGROUNDBackground color conversion. |
static int | FLAG_FOREGROUNDForeground color conversion. |
static int | FLAG_NODISABLEDon't disable for host field. |
static int | FLAG_RTLRight-to-left layout. |
static int | FLAG_SELNOMATCHSelect when no match. |
static int | FLAG_TEXTIDSTRINGText ID is text string. |
static int | FLAG_UNSELNOMATCHUnselect when no match. |
int | flagsControl flags. |
int | fontFont index. |
PhantomHostField | hostFieldThe host field (may be null if the panel doesn't have a screen name). |
String | hostFieldNameThe host field name. |
boolean | isSelectedFlag for control selected at start. |
boolean | isStringTextIDFlag indicates that the selected string is a text ID. |
String | objectNameObject name. |
String | selectedStringThe selected string for the control. |
static int | STATE_NOTSELECTED |
static int | STATE_SELECTED |
static int | STATE_UNDETERMINED |
String | textText prompt. |
String | unSelectedStringThe unselected string for the control. |
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_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 |
|---|
PhantomCCheckBox(PhantomFile data)Check box data reading Creates an instance of the control class. |
PhantomCCheckBox(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase)Creates an instance of the control class. |
PhantomCCheckBox(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, String selStr, String unselStr, boolean isChecked)Creates a check 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. |
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. |
int | getDefaultSelectionState(int prevSelectionState)Compare current text with selection/unselection text and return current selection state. |
String | getHostFieldID()Gets the host field ID for this control. |
protected String | getNPObjectExtra()Gets the "Extra" String for the NPObject. |
String | getSelectedText(VirtualRuntime runtime)Get selected text, eventually from text file. |
String | getUnselectedText(VirtualRuntime runtime)Get unselected text, eventually from text file. |
boolean | isNeverDisabled()Should checkbox never be disabled. |
boolean | isTextPromptRefreshRequired()Checks if the static text always needs updates. |
void | rebind()Re-bind the panel data. |
void | reloadObject()Reload object reference. |
void | resolveComponentReferences()Resolves double click reference of this control to other panel component, after the panel has been loaded. |
void | save(PhantomOutputFile file)Saves the instance to the indicated 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, getNPObjectID, getObject, getObject, getPanelData, getReferencedFiles, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, isActionConnectedEnabled, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, saveBase, setBackgroundColor, setForegroundColor, setIndexpublic static final int FLAG_FOREGROUND
public static final int FLAG_BACKGROUND
public static final int FLAG_UNSELNOMATCH
public static final int FLAG_NODISABLE
public static final int FLAG_TEXTIDSTRING
public static final int FLAG_RTL
public static final int FLAG_SELNOMATCH
public static final int FLAG_ALWAYSUPDATE
public static final int STATE_NOTSELECTED
public static final int STATE_SELECTED
public static final int STATE_UNDETERMINED
public String text
public String objectName
public boolean isSelected
public String hostFieldName
public PhantomHostField hostField
public String selectedString
public String unSelectedString
public int font
public String doubleClickID
public int doubleClickIndex
public int bitmapFlags
public int flags
public boolean isStringTextID
public PhantomCCheckBox(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + text BYTE [97] + id BYTE [9] + object BYTE [9] + isSelected BYTE + reserved BYTE + hostField BYTE [9] + selectedString BYTE [11] + unSelectedString BYTE [11] + reserved BYTE + font USHORT + foregroundColor BYTE + doubleClickID BYTE [9] + bitmapFlags BYTE + flags BYTE + reserved BYTE
IOException - if an I/O error occurs.public PhantomCCheckBox(PhantomFile data) throws IOException
IOException - if an I/O error occurs.public PhantomCCheckBox(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, String selStr, String unselStr, boolean isChecked)
public void rebind()
rebind in class PhantomControlpublic void save(PhantomOutputFile file) throws IOException
Base: + text BYTE [97] + id BYTE [9] + object BYTE [9] + isSelected BYTE + reserved BYTE + hostField BYTE [9] + selectedString BYTE [11] + unSelectedString BYTE [11] + reserved BYTE + font USHORT + foregroundColor BYTE + doubleClickID BYTE [9] + bitmapFlags BYTE + flags BYTE + reserved BYTE
save in class PhantomControlfile -IOException - if an I/O error occurs.public int getDataSize(PhantomOutputFile outputFile)
getDataSize 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 String getSelectedText(VirtualRuntime runtime)
public void reloadObject()
throws IOExceptionreloadObject in class PhantomControlIOExceptionpublic String getUnselectedText(VirtualRuntime runtime)
public int getDefaultSelectionState(int prevSelectionState)
public boolean isNeverDisabled()
public boolean isTextPromptRefreshRequired()
public void resolveComponentReferences()
resolveComponentReferences in class PhantomControlpublic String getHostFieldID()
getHostFieldID in class PhantomControlpublic void updateReferences(ApplicationReferences refs)
updateReferences in class PhantomControlprotected void addNPObjects(ENPObject obj)
addNPObjects in class PhantomControlprotected String getNPObjectExtra()
getNPObjectExtra in class PhantomControlpublic String getControlObjectID()
object instance if not resolved in this class instance.getControlObjectID in class PhantomControlprotected boolean equalsControl(PhantomControl c)
equalsControl in class PhantomControlPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.