public class GofHorLineIdentifier extends GofControlIdentifierAdapter implements PhantomControlType
templPanelCTRLTYPE_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, namesGOF_GUIUNITX, GOF_GUIUNITY, GOF_MARGINX, GOF_MARGINY, GOF_OFFSETX, GOF_OFFSETY, GOF_STEPX, GOF_STEPY| Constructor and Description |
|---|
GofHorLineIdentifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
getControlSettings(IniFile confFile,
String subsection)
Loads setting for the control from the server ini-file.
|
void |
identifyCtrls(GuiOnTheFlyRuntime gofRuntime,
GofHostAreaIdentifier areaIdentifier,
PhantomHostScreen phantomHostScreen,
HostScreen hostScreen,
PhantomPanelData templPanel,
PhantomPanelData newPanel,
int offsetX,
int offsetY)
Identifies all the horizontal line controls from the
GofHostFields. |
getVirtualSessionManager, identifyCtrlspublic void getControlSettings(IniFile confFile, String subsection)
The characters that are allowed to be converted into a horizontal line are specified in the server.ini file. The setting might look like the one below. In this example, the only valid character is a hyphen.
horlinechars=-
The minimum number of times that this character must be repeated, before it is considered a
horizontal line, is also specified in the server.ini file.
horlineminlength=10
getControlSettings in interface GofControlIdentifiergetControlSettings in class GofControlIdentifierAdapterconfFile - The server ini file.subsection - The name of the subsection used for the current Gui-on-the-Fly settings.public void identifyCtrls(GuiOnTheFlyRuntime gofRuntime, GofHostAreaIdentifier areaIdentifier, PhantomHostScreen phantomHostScreen, HostScreen hostScreen, PhantomPanelData templPanel, PhantomPanelData newPanel, int offsetX, int offsetY)
GofHostFields.
It will check for a GofHostField, that only consists of one, repeated character, and that character is one of the characters that has been specified as a valid character for the horizontal line. The number of times the character is repeated in the GofHostField must equal, or exceed, the minimum number specified in the server.ini.
The horizontal line will be created as a PhantomCRectangle, with a height of 1, and a depth of 1.
identifyCtrls in interface GofControlIdentifiergofRuntime - The GuiOnTheFlyRuntime instance.areaIdentifier - The areaIdentifier in which the entry fields should be identified..phantomHostScreen - The Phantom host screen corresponding to the host screen.hostScreen - The host screen that we are trying to build a GOF panel for.newPanel - The newly created Gui-on-the-fly runtime panel.offsetX - The offset in columns for popup window.offsetY - The offset in lines for popup window.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.