se.entra.phantom.client
Class AEvent

java.lang.Object
  extended by se.entra.phantom.client.AEvent
All Implemented Interfaces:
Runnable, NetPhantomConstants

public class AEvent
extends Object
implements NetPhantomConstants, Runnable

The NetPhantom Action event class.


Field Summary
 int actionIndex
          Action index (Control index for ACTION_CONTROL).
 int actionSubValue
          Optional sub value (server event for ACTION_CONTROL).
 int actionType
          Main action type from NetPhantomConstants (ACTION_CONTROL,ACTION_HOSTKEY,..).
 Transaction addTrans
          Add transaction to event.
 boolean doLock
          Lock client until server updated.
 boolean doRunLater
          If the action should be ran later in the AWT event dispatch thread (default immediately).
 boolean doUpdateControls
          Update controls in panel (true) or just send the event (false).
 PPanel panel
          Reference to panel.
 PControl trigger
          Trigger control, should be updated last.
 
Fields inherited from interface se.entra.phantom.common.NetPhantomConstants
ACTION_CLOSEWINDOW, ACTION_CONTROL, ACTION_HOSTKEY, ACTION_MENU, ACTION_NONE, ACTION_NOTEBOOKPAGE, ACTION_POPUPMENU, CBT_ALWAYSDOWN, CBT_NONEDITABLE, CBT_NORMAL, CC_BACKGROUND, CC_BOTH, CC_FOREGROUND, CC_NONE, CLIPBOARD_GET, CLIPBOARD_SET, DATEF_DMY, DATEF_MDY, DATEF_SYSTEM, DATEF_YMD, DDE_ADVISE, DDE_EXECUTE, DDE_INITIATE, DDE_POKE, DDE_REQUEST, DDE_TERMINATE, DDE_UNADVISE, DDE_UPDATE, DDEVAR_DISABLE, DDEVAR_ENABLE, DDEVAR_REQUEST, DDEVAR_SET, DDEVAR_VALIDATE, EFT_AMOUNT, EFT_DATE, EFT_DATEAMOUNT, EFT_NORMAL, EFT_PASSWORD, EVENT_CHAR, EVENT_CHECK, EVENT_CLICK, EVENT_COMMAND, EVENT_DBLCLICK, EVENT_DDECONNECTION, EVENT_DDEDATA, EVENT_DDEERROR, EVENT_DDEEXECUTE, EVENT_DDEINVALIDATE, EVENT_DDEPOKE, EVENT_DDEREQUEST, EVENT_DEFOCUS, EVENT_FOCUS, EVENT_PAGEDOWN, EVENT_PAGEUP, EVENT_SELECT, EVENT_UNKNOWN, EVENT_USERCHANGE, EXTENDEDINFO_IDS_TO_CLIENT, fillerByte, FOCUSTYPE_CLIENTTARGET, FOCUSTYPE_CONTROL, FOCUSTYPE_NONE, ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_WARNING, J_AUTO, J_BOTTOM, J_BOTTOMLEFT, J_BOTTOMRIGHT, J_CENTER, J_LEFT, J_RIGHT, J_TOP, J_TOPLEFT, J_TOPRIGHT, MAX_PANELS_PER_SESSION, MAX_SESSIONS, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES, MS_MOVE, MS_NONE, MS_SIZE, NETPHANTOM_VERSION, OBJEVENT_CHECK, OBJEVENT_CLICK, OBJEVENT_DBLCLICK, OBJEVENT_DEFOCUS, OBJEVENT_FOCUS, OBJEVENT_SELECT, OBJEVENT_USERCHANGE, PANELCREATE_APPPANEL, PANELCREATE_DANGLINGPANEL, PANELCREATE_DLGFRAME, PANELCREATE_EXTENDEDINFO, PANELCREATE_ICON, PANELCREATE_INDIVIDUALSIZE, PANELCREATE_POPUP, REPLYTYPE_CLIENTEXECUTE, REPLYTYPE_CLIPBOARD, REPLYTYPE_DDE, REPLYTYPE_FFONTLIST, REPLYTYPE_MESSAGEBOX, REPLYTYPE_REPORT, REPLYTYPE_SAVEPROPS, REPLYTYPE_TERMMARK, RPRT_CANCELPRINTJOB, RPRT_CLOSEPRINTJOB, RPRT_CONTPRINTJOB, RPRT_OPENPRINTJOB, RPRT_PRINTJOBCANCLD, RPRT_PRINTJOBCLOSED, RPRT_PRINTJOBCONT, RPRT_PRINTJOBOPENED, RPRT_PRINTJOBSTARTED, RPRT_STARTPRINTJOB, SEGMENT_SIZE, SELMODE_NORMAL, SELMODE_NOTALLOWED, SELMODE_REQUIRED, SELTYPE_MULTIPLE, SELTYPE_SINGLE, SEPARATOR, SEPARATORCHAR, TRANS_APPLICATIONCHANGE, TRANS_CALLOBJECT, TRANS_CLEARLOCK, TRANS_CLIENTEXECUTE, TRANS_CLIENTJARS, TRANS_CLIENTTEXTTABLE, TRANS_CLIENTUPDATED, TRANS_CLIENTUPDATEDNOLOCK, TRANS_CLIPBOARD, TRANS_CLIPBOARDCOMPONENT, TRANS_CLOSETERMINALWINDOW, TRANS_CONNECTIONREFUSED, TRANS_COUNTRYINFO, TRANS_CREATEPANEL, TRANS_CREATESESSION, TRANS_DDE, TRANS_DDEEVENT, TRANS_DDEEVENTREPLY, TRANS_DDEVAREVENT, TRANS_DISPLAYHELP, TRANS_DISPLAYTERMINAL, TRANS_ENDCONVERSATION, TRANS_EXIT, TRANS_FONTSUBSTITUTION, TRANS_HOSTCOLORTABLE, TRANS_HOSTPRINT, TRANS_INACTIVESESSION, TRANS_INITIATE, TRANS_KEEPALIVE, TRANS_LOGEVENT, TRANS_MESSAGEBOX, TRANS_MESSAGEBOXWITHREPLY, TRANS_MODALREPLY, TRANS_PING, TRANS_PRINTCOMPONENT, TRANS_PRINTPANEL, TRANS_PRINTREPORT, TRANS_PRTWINKEY, TRANS_REDIRECTION, TRANS_REMOVEPANELATLEVEL, TRANS_REMOVETERMINAL, TRANS_RENEGOTIATESSL, TRANS_REQUESTHELP, TRANS_RESOURCEURL, TRANS_SELECTSESSION, TRANS_SESSIONACTIVE, TRANS_SESSIONSELECTED, TRANS_SETFOCUS, TRANS_SETLOCK, TRANS_SETPANELNESTLEVEL, TRANS_SETUNICODE, TRANS_SETUPPARAMS, TRANS_SHOWDOCUMENT, TRANS_SOUNDALARM, TRANS_STARTUPINFO, TRANS_STOPSESSION, TRANS_TERMINALDATA, TRANS_TERMINALUPDATE, TRANS_TERMINALWINDOW, TRANS_TERMWINTEXT, TRANS_UPDATEAPPLICATION, TRANS_UPDATEPANEL, TRANS_USEREXITPRTKEY, TRANSACTION_VERSION, VSIGN_MINUS, VSIGN_NONE, VSIGN_PLUSMINUS, YEARF_6DIG, YEARF_8DIG, YEARF_EXP8
 
Constructor Summary
AEvent(PPanel panel, int actionType, int actionIndex)
          General AEvent constructor for all events (except ACTION_CONTROL: use sendControlEvent).
 
Method Summary
static AEvent createControlEvent(PControl pc, int objEvent, int serverEvent)
          Create control event.
 boolean issueEvent()
          Issues the event to the panel.
 void run()
          The run method actually performs the action.
static boolean sendControlEvent(PControl pc, int objEvent, int serverEvent)
          Send control event.
static boolean sendControlOrMenuCommand(PPanel panel, int compIndex)
          Send control or menu COMMAND event.
static boolean sendControlOrMenuCommand(PPanel panel, int compIndex, boolean doRunLater)
          Send control or menu COMMAND event.
static boolean sendUserWindowEvent(CUserWindow uw, int serverEvent, boolean doLock, boolean doUpdateControls, Transaction addTrans)
          Send user window control event, no validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionType

public int actionType
Main action type from NetPhantomConstants (ACTION_CONTROL,ACTION_HOSTKEY,..).


actionIndex

public int actionIndex
Action index (Control index for ACTION_CONTROL).


actionSubValue

public int actionSubValue
Optional sub value (server event for ACTION_CONTROL).


addTrans

public Transaction addTrans
Add transaction to event.


trigger

public PControl trigger
Trigger control, should be updated last.


doLock

public boolean doLock
Lock client until server updated.


doUpdateControls

public boolean doUpdateControls
Update controls in panel (true) or just send the event (false).


panel

public PPanel panel
Reference to panel.


doRunLater

public boolean doRunLater
If the action should be ran later in the AWT event dispatch thread (default immediately).

Constructor Detail

AEvent

public AEvent(PPanel panel,
              int actionType,
              int actionIndex)
General AEvent constructor for all events (except ACTION_CONTROL: use sendControlEvent).

Method Detail

issueEvent

public boolean issueEvent()
Issues the event to the panel. If the event is run later, the return code is always true.


run

public void run()
The run method actually performs the action.

Specified by:
run in interface Runnable

sendControlOrMenuCommand

public static boolean sendControlOrMenuCommand(PPanel panel,
                                               int compIndex)
Send control or menu COMMAND event. This event does not need to be checked for object event.


sendControlOrMenuCommand

public static boolean sendControlOrMenuCommand(PPanel panel,
                                               int compIndex,
                                               boolean doRunLater)
Send control or menu COMMAND event. This event does not need to be checked for object event.


sendControlEvent

public static boolean sendControlEvent(PControl pc,
                                       int objEvent,
                                       int serverEvent)
Send control event.


createControlEvent

public static AEvent createControlEvent(PControl pc,
                                        int objEvent,
                                        int serverEvent)
Create control event.


sendUserWindowEvent

public static boolean sendUserWindowEvent(CUserWindow uw,
                                          int serverEvent,
                                          boolean doLock,
                                          boolean doUpdateControls,
                                          Transaction addTrans)
Send user window control event, no validation.



Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.