|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object no.gar.glink.api.GlinkEvent
public class GlinkEvent
Identifies the type of events that a GlinkEventListener may receive. A GlinkEvent gets delivered whenever a Glink event has occured. The eventCode contains the event type and the source of the GlinkApi object that generated the event.
GlinkEventListener
Field Summary | |
---|---|
static int |
COMMAND_KEY_TYPED
A command key has been typed. |
static int |
CONNECTED
|
static int |
DATA_BLOCK
Notifies that a data block has been received. |
static int |
DISCONNECTED
|
static int |
ERROR_DETECTED
The getValue method returns the error code. |
static int |
INTERACTIVE_COM_PARAMS_REQUESTED
Notifies that the Glink communication module needs additional parameters. |
static int |
KEY_TYPED
A key has been typed. |
static int |
MESSAGE_MODE_DATA
In message mode operation, notifies that data received from host is available and may be picked up with the messageModeReceive method. |
static int |
PRINT_DATA
Notifies that print data is available. |
static int |
PRINT_STARTED
Notifies that print has started but not available yet. |
static int |
SCREEN_AREA_MATCH
The getValue method returns the GlinkScreenArea identity value. |
static int |
STARTED
|
static int |
STOPPED
|
static int |
STRING_RECEIVED
The getValue method returns the string identity value. |
static int |
TURN_LOST
Notifies that this side does not have the turn (permission) to send data and should instead expect to receive data from the other side (host). |
static int |
TURN_RECEIVED
Notifies that this side have the turn (permission) to send data. |
static int |
VE_CONFIG_ERROR
Error type: An error with the configuration is detected. |
static int |
VE_CONNECTION_ERROR
Error type: An error with the connection is detected. |
static int |
VE_DGA_SCR_NOT_LICENSED
Error type: DGA in screen mode has not been licensed. |
static int |
VE_EMULATION_ERROR
Error type: An error with the emulation is detected. |
static int |
VE_LOGON_FAILED
Error type: User name or user password is missing or wrong. |
static int |
VE_NO_API_LICENSE
Error type: License key allowing use of the API not found. |
static int |
VE_NO_CNX_LICENSE
Error type: License key allowing use of connector not found. |
static int |
VE_OUT_OF_MEMORY
Error type: The Java VM reported out of memory when loading Glink. |
static int |
VE_SESSIONS_ERROR
Error type: The GlinkApi.getAvailableSessions failed. |
static int |
VE_STARTUP_ERROR
Error type: Glink failed to start. |
static int |
VE_TOOMANY_INSTANCES
Error type: Too many simultaneous instances for Pro version. |
Constructor Summary | |
---|---|
GlinkEvent(int eventCode,
GlinkApi source)
|
|
GlinkEvent(int eventCode,
GlinkApi source,
int value)
|
|
GlinkEvent(int eventCode,
GlinkApi source,
int value,
java.lang.String valueText)
|
Method Summary | |
---|---|
int |
getEventCode()
The application should check the Glink event code to determine which Glink event did occur, for example that the Glink session was connected or disconnected. |
GlinkApi |
getSource()
The method returns the GlinkApi object that generated the event. |
int |
getValue()
Some Glink events have a value set that gives more information about the given event. |
java.lang.String |
getValueText()
Some Glink events have additional text information about the given event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMMAND_KEY_TYPED
GlinkApi.notifyCommandKey(int)
,
GlinkKey
,
getValue()
,
Constant Field Valuespublic static final int CONNECTED
public static final int DATA_BLOCK
GlinkApi.notifyDataBlocks(boolean)
,
TURN_RECEIVED
,
Constant Field Valuespublic static final int DISCONNECTED
public static final int ERROR_DETECTED
getValue()
,
Constant Field Valuespublic static final int INTERACTIVE_COM_PARAMS_REQUESTED
If the INTERACTIVE_COM_PARAMS_REQUESTED event is posted, then the GlinkApi application must at least do the following GlinkApi method calls:
glink.setInteractiveComParams(glink.getInteractiveComParams());for Glink to continue the connecting process.
GlinkApi.getInteractiveComParams()
,
GlinkApi.setInteractiveComParams(java.util.Vector)
,
Constant Field Valuespublic static final int KEY_TYPED
GlinkApi.notifyKey(int)
,
getValue()
,
Constant Field Valuespublic static final int MESSAGE_MODE_DATA
GlinkApi.messageModeReceive()
,
GlinkApi.notifyString(java.lang.String, boolean, int, boolean)
,
Constant Field Valuespublic static final int PRINT_DATA
GlinkConfiguration.setParameter(java.lang.String)
,
Constant Field Valuespublic static final int PRINT_STARTED
PRINT_DATA
,
Constant Field Valuespublic static final int SCREEN_AREA_MATCH
GlinkApi.notifyScreenArea
,
getValue()
,
Constant Field Valuespublic static final int STARTED
public static final int STOPPED
public static final int STRING_RECEIVED
getValue()
,
Constant Field Valuespublic static final int TURN_LOST
GlinkApi.isTurnKnown()
,
Constant Field Valuespublic static final int TURN_RECEIVED
GlinkApi.isTurnKnown()
,
Constant Field Valuespublic static final int VE_CONFIG_ERROR
The error is only reported if Glink is not visible, otherwise the session dialog box is displayed or a default config is loaded.
getValue()
,
GlinkApi.setVisible(boolean)
,
GlinkApi.sessionName
,
Constant Field Valuespublic static final int VE_CONNECTION_ERROR
public static final int VE_DGA_SCR_NOT_LICENSED
public static final int VE_EMULATION_ERROR
public static final int VE_LOGON_FAILED
The error is reported only if Glink is not visible, otherwise the logon dialog box is displayed.
getValue()
,
GlinkApi.setVisible(boolean)
,
Constant Field Valuespublic static final int VE_NO_API_LICENSE
public static final int VE_NO_CNX_LICENSE
public static final int VE_OUT_OF_MEMORY
public static final int VE_SESSIONS_ERROR
public static final int VE_STARTUP_ERROR
public static final int VE_TOOMANY_INSTANCES
Constructor Detail |
---|
public GlinkEvent(int eventCode, GlinkApi source)
public GlinkEvent(int eventCode, GlinkApi source, int value)
public GlinkEvent(int eventCode, GlinkApi source, int value, java.lang.String valueText)
Method Detail |
---|
public int getEventCode()
public GlinkApi getSource()
public int getValue()
public java.lang.String getValueText()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |