public class PhantomControlBase extends Object implements PhantomControlType, PhantomControlFlags, Cloneable
| Modifier and Type | Field and Description |
|---|---|
int | cxWidth. |
int | cyHeight. |
int | dataLengthLength of control specific data. |
int | flagsControl flags. |
int | typeType. |
int | xPosition in X. |
int | yPosition in Y. |
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, namesCTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT| Constructor and Description |
|---|
PhantomControlBase(int x, int y, int cx, int cy, int type)Creates a Gui-on-the-fly control base. |
PhantomControlBase(PhantomFile file)Loads the control base definition from the Phantom Panel file. |
| Modifier and Type | Method and Description |
|---|---|
void | appendBaseTransaction(Transaction trans)Appends the basic control data to the create transaction to the client (flags, x, y, cx, cy). |
protected PhantomControlBase | clone()Makes a clone of a PhantomControlBase instance. |
boolean | equals(Object o)Checks if two control base's are equal. |
String | getTypeDescription()Gets the type description of this control in "English", such as "Notebook" or "Push Button". |
void | save(PhantomOutputFile file)Saves the control base definition to the Phantom Panel file. |
void | updateGuiOnTheFlyValue(CRC32 crc32)Updates the CRC32 value of a Gui-on-the-fly value with the control's base data. |
public int x
public int y
public int cx
public int cy
public int type
public int flags
public int dataLength
public PhantomControlBase(PhantomFile file) throws IOException
Base: + x SHORT + y SHORT + cx SHORT + cy SHORT + typeAndFlags BYTE + flags BYTE + dataLength USHORT + skip data pointer ULONG
IOException - if an I/O error occurs.public PhantomControlBase(int x,
int y,
int cx,
int cy,
int type)public void save(PhantomOutputFile file) throws IOException
Base: + x SHORT + y SHORT + cx SHORT + cy SHORT + typeAndFlags BYTE + flags BYTE + dataLength USHORT + skip data pointer ULONG
file - the open file to write to.IOException - if an I/O error occurs.public void updateGuiOnTheFlyValue(CRC32 crc32)
public void appendBaseTransaction(Transaction trans)
protected PhantomControlBase clone()
public String getTypeDescription()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.