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, 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 |
---|
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, 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, saveBase, setBackgroundColor, setForegroundColor, setIndex
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColor, getFileListContent, getForegroundColor, getLists, isSorted, processColorConversion
public 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 PhantomListCapableControl
protected int getBaseDataSize()
getBaseDataSize
in class PhantomListCapableControl
public void rebind()
rebind
in class PhantomControl
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 resolveComponentReferences()
resolveComponentReferences
in class PhantomControl
public String getHostFieldID()
getHostFieldID
in class PhantomControl
public boolean isActionConnectedEnabled()
isActionConnectedEnabled
in class PhantomControl
public 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 PhantomControl
file
- IOException
- if an I/O error occurs.public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
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 isCaseSensitive()
isCaseSensitive
in interface IListCapableControl
public boolean hasValueRange()
hasValueRange
in interface IListCapableControl
public boolean isNeverDisabled()
isNeverDisabled
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.