public interface ServiceGuiDef
Modifier and Type | Method and Description |
---|---|
void |
closeGui()
Shut the GUI down.
|
boolean |
getAutoHide()
Get value indicating if GUI should be auto-hidden.
|
java.lang.String |
getID()
Get the related service's unique id.
|
java.awt.Point |
getLastLocation()
Get the last recorded location for the GUI.
|
void |
initialiseAndOpen(java.lang.String serviceUuid,
java.lang.String serviceType,
java.lang.String servicePassword,
java.lang.String serviceAdminKey,
org.licas_xml.abs.Element serviceUrl,
java.lang.String serverPassword,
MainGuiDef theMainGui)
Initialise the GUI interface, open it and make it visible for use.
|
boolean |
isInside(int px,
int py)
Return true if the px-py coord is inside the GUI frame with relation to the whole screen.
|
void |
setAutoHide(boolean thisHide)
Set value indicating if auto-hide the GUI from view.
|
void |
showHide(int px,
int py)
Show or hide the GUI depending on conditions.
|
java.lang.String getID()
void initialiseAndOpen(java.lang.String serviceUuid, java.lang.String serviceType, java.lang.String servicePassword, java.lang.String serviceAdminKey, org.licas_xml.abs.Element serviceUrl, java.lang.String serverPassword, MainGuiDef theMainGui) throws java.lang.Exception
serviceUuid
- the uuid of the service the GUI relates to.serviceType
- the type of service the GUI relates to.servicePassword
- the password for calling the service.serviceAdminKey
- the service admin key.serviceUrl
- the full url path to the service that the GUI is for.
The server url is constructed from this.serverPassword
- the local server password.theMainGui
- a reference to the main gui.java.lang.Exception
- any error.void setAutoHide(boolean thisHide)
thisHide
- true if hide, false otherwise.boolean getAutoHide()
void showHide(int px, int py)
px
- the x-coord of the mouse.py
- the y-coord of the mouse.boolean isInside(int px, int py)
px
- the px-coord.py
- the py-coord.java.awt.Point getLastLocation()
void closeGui()