public class PhantomCStaticText extends PhantomControl
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_ALWAYSUPDATE
Always update text.
|
static int |
FLAG_CONNECTTONEXT
Flag: connect state to next control.
|
static int |
FLAG_MNEMONIC
Flag: use mnemonics.
|
int |
flags
The control flags.
|
int |
font
Font index.
|
boolean |
isMultiLine
Flag for multiple lines.
|
int |
justification
Justification (0x00=left, 0x01=horizontal center, 0x02=right)
together with the flags (0x00=top, 0x04=vertical center, 0x08=bottom).
|
String |
text
The text prompt.
|
controlBase, 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_UNKNOWN, CTRLTYPE_USER, namesCTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT| Constructor and Description |
|---|
PhantomCStaticText(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
PhantomCStaticText(PhantomPanelData panelData,
PhantomControlBase controlBase,
boolean isRightJustified,
String text)
Creates an static text control for Gui-on-the-fly.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSaveSize()
Get the size when saved to file.
|
boolean |
isConnectToNextControlPropertySet()
Checks if the option "Connect to next control" property is set.
|
boolean |
isTextPromptRefreshRequired()
Checks if the static text always needs updates.
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
void |
save(PhantomOutputFile data)
Saves the control to the indicated file.
|
void |
updateGuiOnTheFlyValue(CRC32 crc32)
Updates the CRC32 value of a Gui-on-the-fly value with the
control's base data.
|
addControlID, appendBaseTransaction, clone, create, getApplicationData, getBackgroundColor, getControlSize, getForegroundColor, getHostField, getHostFieldID, getID, getIndex, getObject, getObject, getPanelData, getReferencedFiles, isActionConnectedEnabled, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, resolveComponentReferences, saveBase, setBackgroundColor, setForegroundColor, setIndexpublic static final int FLAG_CONNECTTONEXT
public static final int FLAG_MNEMONIC
public static final int FLAG_ALWAYSUPDATE
public boolean isMultiLine
public int justification
public int font
public int flags
public String text
public PhantomCStaticText(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + isMultiLine BYTE + justification BYTE + font USHORT + foregroundColor BYTE + flags BYTE + backgroundColor BYTE + reserved BYTE + text ZTSTRING
IOException - if an I/O error occurs.public PhantomCStaticText(PhantomPanelData panelData, PhantomControlBase controlBase, boolean isRightJustified, String text)
public void save(PhantomOutputFile data) throws IOException
Base: + isMultiLine BYTE + justification BYTE + font USHORT + foregroundColor BYTE + flags BYTE + backgroundColor BYTE + reserved BYTE + text ZTSTRING
save in class PhantomControlfile - IOException - if an I/O error occurs.public void rebind()
rebind in class PhantomControlpublic void reloadObject()
reloadObject in class PhantomControlpublic int getSaveSize()
getSaveSize 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 boolean isTextPromptRefreshRequired()
public boolean isConnectToNextControlPropertySet()
Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.