public abstract class GofHostFieldIdentifierAdapter extends Object implements GofHostFieldIdentifier
By extending from this class, instead of directly implementing the interface, makes it possible to extend the interface with new methods in the future, without forcing a recompilation of user written GofHostFieldIdentifier classes. Default versions of these new methods can instead be implemented in this adapter class.
Modifier and Type | Field and Description |
---|---|
protected Vector<GofHostField> |
gofHostFields
A vector holding all the identified GofHostFields.
|
FLOW_LAYOUT
Constructor and Description |
---|
GofHostFieldIdentifierAdapter()
The constructor is a default constructor without any parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
doIdentifyPartialFields(boolean flag)
This method must store a flag indicating what should be done with GofHostFields that are partially
inside, partially outside the area that should be identified.
|
Vector<GofHostField> |
getHostFields(int x,
int y,
int w,
int h)
This method is a method that returns all the GofHostFields on the screen.
|
Vector<GofHostField> |
getPopupWindowHostFields(int x,
int y,
int w,
int h)
This is the method to get the GofHostFields belonging to a popup-window.
|
void |
identifyHostFields(HostScreen screen)
This method must create the GofHostFields from the HostScreen's HostFields.
|
boolean |
isPartialFieldsIdentified()
This methods queries if partial fields are identified when GofHostFields that are partially
inside, partially outside the area that should be identified.
|
protected Vector<GofHostField> gofHostFields
public GofHostFieldIdentifierAdapter()
public void identifyHostFields(HostScreen screen)
This adapter class only implements an empty method. Classes extending this class must extend this method.
identifyHostFields
in interface GofHostFieldIdentifier
screen
- The host screen to process.public void doIdentifyPartialFields(boolean flag)
doIdentifyPartialFields
in interface GofHostFieldIdentifier
flag
- The value of the flag.public boolean isPartialFieldsIdentified()
isPartialFieldsIdentified
in interface GofHostFieldIdentifier
true
if partial fields are identified, false
otherwise.public Vector<GofHostField> getHostFields(int x, int y, int w, int h)
When analyzing if a GofHosField is inside the area, it will take into account the value of the flag
doIdentifyPartialFields
. If this flag is false
, only GofHostFields completely
inside the area will be included, otherwise GofHostFields partially inside the area will also be included.
getHostFields
in interface GofHostFieldIdentifier
x
- The start column.y
- The start row.w
- The width.h
- The height.public Vector<GofHostField> getPopupWindowHostFields(int x, int y, int w, int h)
getHostFields
method which retrieves the GofHostFields, and finally restores the doIdentifyPartialFields flag before returning
the Vector
with the included GofHostFields.getPopupWindowHostFields
in interface GofHostFieldIdentifier
x
- The start column.y
- The start row.w
- The width.h
- The height.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.