public class PhantomCSpinButton extends PhantomListCapableControl implements IListCapableControl
| Modifier and Type | Field and Description |
|---|---|
int | createSBFlagCreation flags for client. |
int | fieldTypefield type. |
static int | FLAG_BACKGROUNDBackground color conversion. |
static int | FLAG_FILENAMEFile name flag. |
static int | FLAG_FOREGROUNDForeground color conversion. |
static int | FLAG_SORTLISTList is sorted. |
static int | FLAG_USERCHGLIGHTEVENTUser change light event on all document changes. |
int | flagsflags. |
int | fontfont |
boolean | hasNoBorderNo border for spin button flag |
boolean | hasNoUserInputNo user input flag. |
boolean | hasValueRangeHas value Range flag. |
PhantomHostField | hostFieldThe host field name. |
String | hostFieldNameThe host field (may be null if the panel doesn't have a screen name). |
boolean | isDirectCheckedDirect Checked flag. |
boolean | isFastSpinFast Spin Button flag. |
boolean | isNumericOnlyNumeric only flag. |
boolean | isRightJustifiedis Right Justified flag. |
boolean | isZeroPadZero Padding flag. |
int | lengthlength. |
String | masterIDMaster ID field ID. |
int | masterIndexThe Master ID control index (or -1 if not found). |
int | maxValuemaximum Value. |
int | minValueminimum Value. |
int | newFlagsnew flags. |
String | objectNameObject name. |
int | stepValueStepping value. |
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 |
|---|
PhantomCSpinButton(PhantomFile data)Constructor for the Designer control. |
PhantomCSpinButton(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase)Creates an instance of the control class. |
PhantomCSpinButton(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, int[] range)GUI-on-the-fly constructor. |
| 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. |
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()Case sensitive sorting (always true). |
boolean | isDirectChecked()Check for direct-checked when user types a character. |
boolean | isNeverDisabled()Should control never be disabled (always false). |
void | rebind()Re-bind the panel data. |
void | reloadObject()Reload object reference. |
void | resolveComponentReferences()Resolves reference of this control to spin button master, after the panel has been loaded. |
void | save(PhantomOutputFile file)Saves the instance of the control 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, saveBase, setBackgroundColor, setForegroundColor, setIndexfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColor, getFileListContent, getForegroundColor, getLists, isSorted, processColorConversionpublic static final int FLAG_FOREGROUND
public static final int FLAG_BACKGROUND
public static final int FLAG_FILENAME
public static final int FLAG_USERCHGLIGHTEVENT
public static final int FLAG_SORTLIST
public PhantomHostField hostField
public String hostFieldName
public String objectName
public String masterID
public int masterIndex
public boolean isRightJustified
public boolean hasNoUserInput
public boolean hasValueRange
public boolean isFastSpin
public boolean hasNoBorder
public boolean isZeroPad
public boolean isNumericOnly
public int minValue
public int maxValue
public int stepValue
public int length
public int font
public boolean isDirectChecked
public int fieldType
public int flags
public int newFlags
public int createSBFlag
public PhantomCSpinButton(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + id BYTE[9] + object BYTE[9] + hostField BYTE[9] + masterID BYTE[9] + reserved BYTE[2] + isRightJustified BYTE + hasNoUserInput BYTE + hasValueRange BYTE + isFastSpin BYTE + useHostConversion BYTE + hasNoBorder BYTE + isZeroPad BYTE + isNumericOnly BYTE + listSize USHORT + minValue LONG + maxValue LONG + stepValue LONG + length USHORT + font USHORT + foregroundColor BYTE + isDirectChecked BYTE + fieldType USHORT + flags BYTE + newFlags USHORT + reserved BYTE[10]
IOException - if an I/O error occurs.public PhantomCSpinButton(PhantomFile data) throws IOException
IOException - For I/O errors.public PhantomCSpinButton(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, int[] range)
public boolean hasFileName()
hasFileName in class PhantomListCapableControlprotected int getBaseDataSize()
getBaseDataSize in class PhantomListCapableControlpublic void rebind()
rebind 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 resolveComponentReferences()
resolveComponentReferences in class PhantomControlpublic String getHostFieldID()
getHostFieldID in class PhantomControlpublic boolean isActionConnectedEnabled()
isActionConnectedEnabled in class PhantomControlpublic void save(PhantomOutputFile file) throws IOException
Base: + id BYTE[9] + object BYTE[9] + hostField BYTE[9] + masterID BYTE[9] + reserved BYTE[2] + isRightJustified BYTE + hasNoUserInput BYTE + hasValueRange BYTE + isFastSpin BYTE + useHostConversion BYTE + hasNoBorder BYTE + isZeroPad BYTE + isNumericOnly BYTE + listSize USHORT + minValue LONG + maxValue LONG + stepValue LONG + length USHORT + font USHORT + foregroundColor BYTE + isDirectChecked BYTE + fieldType USHORT + flags BYTE + newFlags USHORT + reserved BYTE[10]
save in class PhantomControlfile -IOException - if an I/O error occurs.public void reloadObject()
throws IOExceptionreloadObject in class PhantomControlIOExceptionpublic 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 isCaseSensitive()
isCaseSensitive in interface IListCapableControlpublic boolean hasValueRange()
hasValueRange in interface IListCapableControlpublic boolean isNeverDisabled()
isNeverDisabled 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.
© 2026 Mindus SARL. All rights reserved.