public class PhantomCSpinButton extends PhantomListCapableControl implements IListCapableControl
| Modifier and Type | Field and Description |
|---|---|
int |
createSBFlag
Creation flags for client.
|
int |
fieldType
field type.
|
static int |
FLAG_BACKGROUND
Background color conversion.
|
static int |
FLAG_FILENAME
File name flag.
|
static int |
FLAG_FOREGROUND
Foreground color conversion.
|
static int |
FLAG_SORTLIST
List is sorted.
|
static int |
FLAG_USERCHGLIGHTEVENT
User change light event on all document changes.
|
int |
flags
flags.
|
int |
font
font
|
boolean |
hasNoBorder
No border for spin button flag
|
boolean |
hasNoUserInput
No user input flag.
|
boolean |
hasValueRange
Has value Range flag.
|
PhantomHostField |
hostField
The host field name.
|
String |
hostFieldName
The host field (may be null if the panel doesn't have a screen name).
|
boolean |
isDirectChecked
Direct Checked flag.
|
boolean |
isFastSpin
Fast Spin Button flag.
|
boolean |
isNumericOnly
Numeric only flag.
|
boolean |
isRightJustified
is Right Justified flag.
|
boolean |
isZeroPad
Zero Padding flag.
|
int |
length
length.
|
String |
masterID
Master ID field ID.
|
int |
masterIndex
The Master ID control index (or -1 if not found).
|
int |
maxValue
maximum Value.
|
int |
minValue
minimum Value.
|
int |
newFlags
new flags.
|
String |
objectName
Object name.
|
int |
stepValue
Stepping 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 IOException
reloadObject 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.
© © Mindus SARL, 2024. All rights reserved.