public class GofTitleAreaTitleIdentifier 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 |
---|
GofTitleAreaTitleIdentifier() |
Modifier and Type | Method and Description |
---|---|
void |
getControlSettings(IniFile confFile,
String subsection)
Loads setting for the controll from the server ini-file.
|
void |
identifyCtrls(GuiOnTheFlyRuntime gofRuntime,
GofHostAreaIdentifier areaIdentifier,
PhantomHostScreen phantomHostScreen,
HostScreen hostScreen,
PhantomPanelData templPanel,
PhantomPanelData newPanel,
int offsetX,
int offsetY)
Identifies the title from unused
GofHostFields . |
getVirtualSessionManager, identifyCtrls
public void getControlSettings(IniFile confFile, String subsection)
The setting for title identifier allows two different ways to specify the location of the title on the host screen. It can either be specified as combination of the line it starts on, the line it ends on, the first column that it can start on, the last column it can start on, a minimum length and a maximum length. Or it can be specified as a combination of the line it starts on, the line it ends on and a location on the line.
The location can either be left, center or right. Left means that host field must start at first column, center means that it must cross the center of the line and right means that it must end at the last column on the line.
The setting, that is named title_title consists of a comma separated list consisting of the start line, the end line, the first allowed start column, the last allowed start column, the minimum width, the maximum width, and the position on the line. Values not needed must be marked with a hyphen ('-').
An example of the first variant could be:
title_title=0,0,20,30,20,40,-In this example, the title must be on the first line, must start somewhere between column 20 and 30, and must have a width of between 20 and 40 characters.
And an example of the second variant could be:
title_title=0,0,-,-,-,-,CIn this example the title must cross the center of the first line.
Normally the title would just be on a single line, so the first two values would be he same.
getControlSettings
in interface GofControlIdentifier
getControlSettings
in class GofControlIdentifierAdapter
confFile
- The configuration file.subsection
- The name of the section to search in.public void identifyCtrls(GuiOnTheFlyRuntime gofRuntime, GofHostAreaIdentifier areaIdentifier, PhantomHostScreen phantomHostScreen, HostScreen hostScreen, PhantomPanelData templPanel, PhantomPanelData newPanel, int offsetX, int offsetY)
GofHostFields
.
The identification of the title is quite simple. The title is supposed to be on a specific location on the screen. The location is specified in the configuration file. If a protected host field is found at the specified location, it will be accepted as the screen's title.
identifyCtrls
in interface GofControlIdentifier
gofRuntime
- 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.