public interface GofHostAreaIdentifier
By splitting the host screen into different areas, it will be possible to use different rules for control identification for these areas, and in some areas only identify certain controls.
Examples of areas that might be identified are:
The GofHostAreaIdentifier classes will also get a reference to all the controls created in their area, and will be able to implement their own layout rules.
The class implementing this interface must have a default constructor, without any parameters, since it will be created dynamically from the class name.
Modifier and Type | Field and Description |
---|---|
static int |
FLOW_LAYOUT
Constant used to inform an area's layout method to layout the controls in a flow layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addControl(PhantomControl phantomControl)
Adds a new PhantomControl to the area.
|
void |
getAreaSettings(IniFile confFile,
String subsection)
This method should get all the settings from the configuration file needed for this class.
|
Vector<GofHostField> |
getAreasGofHostFields()
This method adds a new PhantomControl to this area.
|
Vector<GofHostField> |
identifyArea(Vector<GofHostField> gofHostFields,
int x,
int y,
int w,
int h)
This method must implement the code for identifying the area the class is supposed to identify.
|
void |
layout()
This method should layout the controls belonging to this area according to the layout rule
specified by the parameter.
|
static final int FLOW_LAYOUT
void getAreaSettings(IniFile confFile, String subsection)
confFile
- A reference to the IniFile instance that holds the current server configuration file's settings.subsection
- The name of the subsection used for the current Gui-on-the-Fly settings.Vector<GofHostField> identifyArea(Vector<GofHostField> gofHostFields, int x, int y, int w, int h)
gofHostFields
- A Vector
containing all the GofHostFields in the part of the
screen area to be analyzed.x
- The start column of the area to be analyzed.y
- The start line of the area to be analyzed.w
- The width of the area to be analyzed.h
- The height of the area to be analyzed.Vector
with all unused GofHostFields, that is the
GofHostFields from the first parameter, not belonging to this area.Vector<GofHostField> getAreasGofHostFields()
void addControl(PhantomControl phantomControl)
phantomControl
- The control to add to this area.void layout()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.