public abstract class GofControlIdentifierAdapter extends Object implements GofControlIdentifier
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 GofControlIdentifier classes. Default versions of these new methods can instead be implemented in this adapter class.
Modifier and Type | Field and Description |
---|---|
protected PhantomPanelData |
templPanel
The template panel.
|
GOF_GUIUNITX, GOF_GUIUNITY, GOF_MARGINX, GOF_MARGINY, GOF_OFFSETX, GOF_OFFSETY, GOF_STEPX, GOF_STEPY
Constructor and Description |
---|
GofControlIdentifierAdapter()
The constructor is a default constructor without any parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
getControlSettings(IniFile confFile,
String subsection)
This method should get all the settings from the configuration file needed for this class.
|
VirtualSessionManager |
getVirtualSessionManager(GuiOnTheFlyRuntime gofRuntime)
Gets a reference to the
VirtualSessionManager . |
void |
identifyCtrls(GuiOnTheFlyRuntime gofRuntime,
GofHostAreaIdentifier areaIdentifier,
PhantomHostScreen phantomHostScreen,
HostScreen hostScreen,
PhantomPanelData newPanel,
int offsetX,
int offsetY)
This method is where the class implementing this interface does all its work.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifyCtrls
protected PhantomPanelData templPanel
public GofControlIdentifierAdapter()
public void getControlSettings(IniFile confFile, String subsection)
Classes extending from this class that needs to read in their own settings from the configuration file, must implement this method, since this default implementation don't do anything.
getControlSettings
in interface GofControlIdentifier
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.public void identifyCtrls(GuiOnTheFlyRuntime gofRuntime, GofHostAreaIdentifier areaIdentifier, PhantomHostScreen phantomHostScreen, HostScreen hostScreen, PhantomPanelData newPanel, int offsetX, int offsetY)
The classes extending from this class should implement the following steps:
This adapter class only implements an empty method. Classes extending this class must extend this method.
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
- The offset in columns for popup window.offsetY
- The offset in lines for popup window.public VirtualSessionManager getVirtualSessionManager(GuiOnTheFlyRuntime gofRuntime)
VirtualSessionManager
.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.