public class GofCheckBoxIdentifier extends GofControlIdentifierAdapter implements PhantomControlType
templPanel
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
GOF_GUIUNITX, GOF_GUIUNITY, GOF_MARGINX, GOF_MARGINY, GOF_OFFSETX, GOF_OFFSETY, GOF_STEPX, GOF_STEPY
Constructor and Description |
---|
GofCheckBoxIdentifier() |
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 combination box controls from the
GofHostFields . |
getVirtualSessionManager, identifyCtrls
public void getControlSettings(IniFile confFile, String subsection)
For the identification of check boxes, the following settings are used:
checkstart The start indicator for a list of alternatives. checkend The end indicator for a list of alternatives. checksep The separator between the alternatives in the list.
There are also several possibilities of where the check box can be placed relative to the entry field that will be replaced by the check box. The check box can either be in the preceding lead text or in the lead text following.
The setting checksearch
will tell this class where to look for
the check box indicator, and in what order to search if multiple places are to be searched.
Valid values are:
pre Search the preceding leadtext. post Search the trailing leadtext.
There is also a setting that specifies if there is a filler character to use, and what character this should be. This setting as called checkFieldFiller, and if the filler character is the underscore character, it would look like this:
checkFieldFiller=_To make it possible for the GofCheckBoxIdentifier to know which of the two text strings in the indicator is the select string, and which is the unselect string, there are two settings where all the valid select strings and unselect strings can be listed. These two settings look like this:
checkselect=J Y checkunselect=NThis means that if there are check boxes where there are presumptive checkboxes, where some have Yes as checked, and other have No as checked, check boxes can only be used for one of these cases.
It is also possible to either let the lead text where the check box indicator was found be created as a separate output text/static text, or to let it be moved to the check box's text.
Which alternative that should be used is specified in the checktextfromindicator setting. To move the text to the checkbox, set this setting to 1, otherwise to 0.
checktextfromindicator=1This class also uses a setting that affects the look of the check boxes. This is the checklayout setting. Valid values for this setting are:
checklayout=DEFAULT checklayout=FONT checklayout=COLOR checklayout=FONTANDCOLORDEFAULT means that no settings are taken from the template panel; default values will be used instead.
FONT means that the font is taken from template panel, from an check box with the id=CHK. If this control cannot be found, or if it is not an check box control, default values will be used.
COLOR means that the color is taken from template panel, from an check box with the id=CHK. If this control cannot be found, or if it is not an check box control, default values will be used.
FONTANDCOLOR means that the font and color are taken from template panel, from an check box with the id=CHK. If this control cannot be found, or if it is not an check box control, default values will be used.
Any other value will be treated as DEFAULT.
getControlSettings
in interface GofControlIdentifier
getControlSettings
in class GofControlIdentifierAdapter
confFile
- 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
.
The identification of combination boxes are done by searching for a lead text that indicates an entry field that could be replaced by a combination box. A lead text indicating a combination box should have a start indicator, an end indicator and two or more values separated by a separator. The start indicator is usually a start parenthesis, the end indicator is usually an end parenthesis, and the separator is usually a slash. But these are configurable in the configuration file.
After a lead text has been identified to hold a combination box indicator, it checks if the next or previous field is an entry field, and that it is on the same line. There is a configuration that determines if the lead text should be before the entry field, or after, or if both are accepted, and if so, in which order to search.
identifyCtrls
in interface GofControlIdentifier
gofRuntime
- The GuiOnTheFlyRuntime instance.areaIdentifier
- The areaIdentifier in which the controls 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
- Offset in columns used for popup windows.offsetY
- Offset in lines used for popup windows.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.