public class PhantomCUserWindow extends PhantomControl
Modifier and Type | Field and Description |
---|---|
PhantomCBar |
barData
The bar object data.
|
boolean |
doReturnErrorMessage
Flag indicating that error report is to be done for external images.
|
int |
font
Field font.
|
PhantomHostField |
hostField
The host field (may be null if the panel doesn't have a screen name).
|
String |
initialExternalImage
The initial text for the external image.
|
boolean |
isExternalImage
The flag indicating the user window is an external image.
|
String |
moduleName
The module name.
|
String |
originalModuleName
The original module name.
|
String |
originalProcedureName
The original procedure name.
|
String |
procedureName
The procedure name.
|
Class<?> |
serverUserWindow
Class that implements the VirtualServerUserWindowInterface interface.
|
int |
type
The user window type.
|
byte[] |
userWindowData
The user window data.
|
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 |
---|
PhantomCUserWindow(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
PhantomCUserWindow(PhantomRuntime runtime,
PhantomFile data)
Constructor for Designer control.
|
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.
|
int |
getDataSize(PhantomOutputFile outputFile)
Get the size when saved to file.
|
void |
getReferencedFiles(ArrayList<String> files)
Adds all files that are referenced by this control.
|
boolean |
isBar()
Check if it's a bar.
|
boolean |
isRemapped()
Checks if the cuserwin2 package is used on the client side rather than
cuserwin.
|
boolean |
isToolbar()
Checks if this is a toolbar control (Bar control but not a status bar).
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
void |
save(PhantomOutputFile file)
Saves the instance of the control to file.
|
void |
updateReferences(ApplicationReferences refs)
Updates the Applications References instance.
|
addControlID, addControlReference, addHostFieldReference, appendBaseTransaction, checkTextPromptReferences, checkTextPromptReferences, clone, create, createNPObject, equals, getApplicationData, getBackgroundColor, getControlObjectID, getDesignerControl, getForegroundColor, getHostField, getHostFieldID, getID, getIndex, getNPObjectExtra, getNPObjectID, getObject, getObject, getPanelData, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, isActionConnectedEnabled, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, resolveComponentReferences, saveBase, setBackgroundColor, setForegroundColor, setIndex, updateGuiOnTheFlyValue
public int type
public PhantomHostField hostField
public int font
public String moduleName
public String originalModuleName
public String procedureName
public String originalProcedureName
public PhantomCBar barData
public byte[] userWindowData
public boolean isExternalImage
public String initialExternalImage
public boolean doReturnErrorMessage
public Class<?> serverUserWindow
public PhantomCUserWindow(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + type BYTE + backgroundColor BYTE + font USHORT + foregroundColor BYTE + moduleName BYTE [9] + procedureName BYTE [33] + dataLen USHORT + (skip) pointer PVOID + (skip) testMode BYTE + id BYTE [9] . The following data is read by the user window if it's a bar or an external image. . + data - variable BYTE [dataLen]
IOException
- if an I/O error occurs.public PhantomCUserWindow(PhantomRuntime runtime, PhantomFile data) throws IOException
IOException
- if an I/O error occurs.public boolean isRemapped()
public void save(PhantomOutputFile file) throws IOException
Base: + type BYTE + backgroundColor BYTE + font USHORT + foregroundColor BYTE + moduleName BYTE [9] + procedureName BYTE [33] + dataLen USHORT + (skip) pointer PVOID + (skip) testMode BYTE + id BYTE [9] . The following data is read by the user window if it's a bar or an external image. . + data - variable BYTE [dataLen]
save
in class PhantomControl
file
- IOException
- if an I/O error occurs.public void rebind()
rebind
in class PhantomControl
public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
public int getDataSize(PhantomOutputFile outputFile)
getDataSize
in class PhantomControl
public boolean isBar()
public boolean isToolbar()
public void getReferencedFiles(ArrayList<String> files)
getReferencedFiles
in class PhantomControl
files
- The ArrayList of file names that are referenced will
be filled in.public void updateReferences(ApplicationReferences refs)
updateReferences
in class PhantomControl
protected void addNPObjects(ENPObject obj)
addNPObjects
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.