public class PhantomCPushButton extends PhantomControl
Modifier and Type | Field and Description |
---|---|
int |
actionKey
Action key for the push Button.
|
int |
bitmap
The bitmap values.
|
String |
connectedControlID
Connected control ID.
|
int |
connectedControlIndex
Connected control index in panel.
|
boolean |
doLockPanel
Flag for locking the panel when menu item is selected.
|
boolean |
doSkipEnableCheck
Flag to indicate that no check should be done to disable the menu
item for connected controls.
|
static int |
FLAG_ALWAYSUPDATE
Always update the text
|
static int |
FLAG_DISABLE
Disable from start.
|
static int |
FLAG_NODISABLE
Don't disable for host field.
|
static int |
FLAG_TEXTIDSTRING
Text ID string
|
int |
flags
Flags for the push button.
|
int |
font
Font for the Push Button.
|
int |
foregroundColor
The foreground color.
|
boolean |
hasFunctionality
This flag indicates that the push button has no functional implementation,
because it has no ID, object, host field name, send string, send key and
no next panel.
|
PhantomHostField |
hostField
The host field (may be null if the panel doesn't have a screen name).
|
String |
hostFieldName
The host field name.
|
boolean |
isDefault
Default Flag.
|
boolean |
isDisabledFromStart
Flag for disabled from start.
|
boolean |
isStringTextID
Flag indicates that the send string is a text ID.
|
String |
nextPanel
Name of the next Panel
|
String |
objectName
Name of connected object
|
int |
sendKey
The send key to host.
|
String |
sendString
Send string for the menu item.
|
String |
text
Text of the push Button
|
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 |
---|
PhantomCPushButton(PhantomFile data)
Constructor for the Designer Control implementation.
|
PhantomCPushButton(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
PhantomCPushButton(PhantomPanelData panelData,
PhantomControlBase controlBase,
PhantomHostField hostField,
String text)
Creates an push button 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.
|
String |
getHostFieldID()
Gets the host field ID for this control.
|
protected String |
getNPObjectExtra()
Gets the "Extra" String for the NPObject.
|
String |
getSendString(VirtualRuntime runtime)
Get send string, eventually from text file.
|
boolean |
isDisabledFromStart()
Should the push button be disabled from start.
|
boolean |
isStateHostConnected()
Checks if the push button is state-connected to the host field.
|
boolean |
isTextPromptRefreshRequired()
Checks if the static text always needs updates.
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
static int |
remapActionKey(int vk)
Remaps the action keys F13-F24 to Shift+F1-F12 because
Java doesn't have F13-F24.
|
void |
resolveComponentReferences()
Resolves reference of this control to other panel component,
after the panel has been loaded.
|
void |
save(PhantomOutputFile file)
Saves the instance of the control class 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.
|
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, setIndex
public static final int FLAG_NODISABLE
public static final int FLAG_ALWAYSUPDATE
public static final int FLAG_DISABLE
public static final int FLAG_TEXTIDSTRING
public String hostFieldName
public PhantomHostField hostField
public String text
public String objectName
public String nextPanel
public String connectedControlID
public int connectedControlIndex
public String sendString
public int actionKey
public int sendKey
public int font
public boolean isDefault
public boolean doSkipEnableCheck
public boolean doLockPanel
public int bitmap
public int flags
public boolean isStringTextID
public boolean isDisabledFromStart
public boolean hasFunctionality
public int foregroundColor
public PhantomCPushButton(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + text BYTE[32] + id BYTE[9] + object BYTE[9] + nextPanel BYTE[9] + Skip updateFld BYTE + Skip HasSeparator BYTE + connectedControlID BYTE[9] + hostField BYTE[9] + sendString BYTE[32] + actionKey USHORT + sendKey USHORT + font USHORT + isDefault BYTE + foregroundColor BYTE + doSkipEnableCheck BYTE + doLockPanel BYTE + bitmap BYTE + Skip subMenuCount BYTE + flags BYTE + reserved BYTE[7]
IOException
- if an I/O error occurs.public PhantomCPushButton(PhantomFile data) throws IOException
IOException
public PhantomCPushButton(PhantomPanelData panelData, PhantomControlBase controlBase, PhantomHostField hostField, String text)
public void rebind()
rebind
in class PhantomControl
public void save(PhantomOutputFile file) throws IOException
Base: + text BYTE[32] + id BYTE[9] + object BYTE[9] + nextPanel BYTE[9] + Skip updateFld BYTE + Skip HasSeparator BYTE + connectedControlID BYTE[9] + hostField BYTE[9] + sendString BYTE[32] + actionKey USHORT + sendKey USHORT + font USHORT + isDefault BYTE + foregroundColor BYTE + doSkipEnableCheck BYTE + doLockPanel BYTE + bitmap BYTE + Skip subMenuCount BYTE + flags BYTE + reserved BYTE[7]
save
in class PhantomControl
file
- IOException
- if an I/O error occurs.public int getDataSize(PhantomOutputFile outputFile)
getDataSize
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 static int remapActionKey(int vk)
public boolean isTextPromptRefreshRequired()
public boolean isStateHostConnected()
public boolean isDisabledFromStart()
public void resolveComponentReferences()
The specified control ID is controling disable/enable of the push button. Example of control types are list box and entry fields.
resolveComponentReferences
in class PhantomControl
public String getSendString(VirtualRuntime runtime)
public String getHostFieldID()
getHostFieldID
in class PhantomControl
public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
public void updateReferences(ApplicationReferences refs)
updateReferences
in class PhantomControl
protected void addNPObjects(ENPObject obj)
addNPObjects
in class PhantomControl
protected String getNPObjectExtra()
getNPObjectExtra
in class PhantomControl
public String getControlObjectID()
object
instance if not resolved in this class instance.getControlObjectID
in class PhantomControl
protected boolean equalsControl(PhantomControl c)
equalsControl
in class PhantomControl
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.