se.entra.phantom.server.rconsole
Class AdminConfigEventMessengers

java.lang.Object
  extended by se.entra.phantom.server.VirtualPanelAdapter
      extended by se.entra.phantom.server.VirtualComponentAdapter
          extended by se.entra.phantom.server.rconsole.AdminConfigEventMessengers
All Implemented Interfaces:
VirtualComponentListener, VirtualPanelListener

public class AdminConfigEventMessengers
extends VirtualComponentAdapter

Handles the administration of the different event messengers in the server. An event messenger must implement the interface EventMessengerInterface Since all EventMessengers provide a method returning the names of all their items, a check is done at startup (as well as when adding a new EventMessenger) that the items in the ini-file are consistent with the items provided by the EventMessenger.


Field Summary
 
Fields inherited from interface se.entra.phantom.server.VirtualPanelListener
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, 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
 
Constructor Summary
AdminConfigEventMessengers(ClientSessionManager csm, IniFile iniFile, VirtualPanel vp)
          Constructor
 
Method Summary
 void onAction(VirtualPanel panel, VirtualControl control, String controlID)
          Push buttons generates this event when selected.
 void onFocusGained(VirtualPanel panel, VirtualControl control, String controlID)
          Controls that can receive input focus generates this event when they lose focus.
 boolean onPanelClosing(VirtualPanel panel)
          called on panel closing
 void onSelectionChanged(VirtualPanel panel, VirtualCListBox list, String controlID, int line, int column)
          List boxes generates this message.
 
Methods inherited from class se.entra.phantom.server.VirtualComponentAdapter
onAction, onAction, onCheckedChange, onContentChanged, onContentChanged, onControlEvent, onFocusLost, onMenuAction, onPropertyChange
 
Methods inherited from class se.entra.phantom.server.VirtualPanelAdapter
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelCreate, onPanelDestroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface se.entra.phantom.server.VirtualPanelListener
onPageActivated, onPanelClose, onPanelCreate, onPanelDestroy
 

Constructor Detail

AdminConfigEventMessengers

public AdminConfigEventMessengers(ClientSessionManager csm,
                                  IniFile iniFile,
                                  VirtualPanel vp)
Constructor

Method Detail

onSelectionChanged

public void onSelectionChanged(VirtualPanel panel,
                               VirtualCListBox list,
                               String controlID,
                               int line,
                               int column)
List boxes generates this message. The line and column parameter are individually set to -1 if no line or column is selected respectively.

Specified by:
onSelectionChanged in interface VirtualComponentListener
Overrides:
onSelectionChanged in class VirtualComponentAdapter

onFocusGained

public void onFocusGained(VirtualPanel panel,
                          VirtualControl control,
                          String controlID)
Controls that can receive input focus generates this event when they lose focus.

Specified by:
onFocusGained in interface VirtualComponentListener
Overrides:
onFocusGained in class VirtualComponentAdapter

onPanelClosing

public boolean onPanelClosing(VirtualPanel panel)
called on panel closing

Specified by:
onPanelClosing in interface VirtualPanelListener
Overrides:
onPanelClosing in class VirtualPanelAdapter
Returns:
false to proceed with default processing.
See Also:
VirtualPanelAdapter.onPanelClose(se.entra.phantom.server.VirtualPanel)

onAction

public void onAction(VirtualPanel panel,
                     VirtualControl control,
                     String controlID)
Push buttons generates this event when selected. If a class doesn't implement this method, the onAction(panel,controlID) method is called.

Specified by:
onAction in interface VirtualComponentListener
Overrides:
onAction in class VirtualComponentAdapter


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