se.entra.phantom.server.rconsole
Class AdminConfigSelectFile

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

public class AdminConfigSelectFile
extends VirtualComponentAdapter

Handles a user definition.


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
AdminConfigSelectFile(VirtualSessionManager vsm, VirtualControl control, String[] filters)
          Creates a new file chooser dialog.
AdminConfigSelectFile(VirtualSessionManager vsm, VirtualControl control, String[] filters, SelectionInterface sif)
          Creates a new file chooser dialog.
 
Method Summary
 void onAction(VirtualPanel vp, String controlID)
          Push buttons and menu items generates this event when selected.
 void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text, int line)
          Combination boxes and spin buttons generates this message.
 boolean onPanelClosing(VirtualPanel vp)
          Called when the close button of a panel is pressed, but before any other processing has been done.
 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, onControlEvent, onFocusGained, 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

AdminConfigSelectFile

public AdminConfigSelectFile(VirtualSessionManager vsm,
                             VirtualControl control,
                             String[] filters)
Creates a new file chooser dialog.

Parameters:
vsm - The virtual session manager.
control - The virtual control.
filters - An array with all the filters that should be available. If this parameter is null, then the All files "*.*" filter will be available.

The filters can either be just the filter string, for example "*.txt", or the filter string followed by a explanation, for example "*.txt Text documents". The first space in the string will be the delimiter between the filter and the description.


AdminConfigSelectFile

public AdminConfigSelectFile(VirtualSessionManager vsm,
                             VirtualControl control,
                             String[] filters,
                             SelectionInterface sif)
Creates a new file chooser dialog.

Parameters:
vsm - The virtual session manager.
control - The virtual control.
filters - An array with all the filters that should be available. If this parameter is null, then the All files "*.*" filter will be available.

The filters can either be just the filter string, for example "*.txt", or the filter string followed by a explanation, for example "*.txt Text documents". The first space in the string will be the delimiter between the filter and the description.

sif - The SelectionInterface to register.

Registers a selection interface. The class implementing the SelectionInterface will have methods for validating selection and to apply selection.

Method Detail

onPanelClosing

public boolean onPanelClosing(VirtualPanel vp)
Called when the close button of a panel is pressed, but before any other processing has been done. If this function returns false, the application close object will be called (if defined), otherwise a faked keypress of the Escape key is performed. If these two actions failed (because there is no close object or no button or menu item is connected to the Escape key), then the function onPanelClose is called.

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

onAction

public void onAction(VirtualPanel vp,
                     String controlID)
Push buttons and menu items generates this event when selected.

Overrides:
onAction in class VirtualComponentAdapter
Parameters:
vp - The virtual panel.

onContentChanged

public void onContentChanged(VirtualPanel panel,
                             VirtualControl control,
                             String controlID,
                             String text,
                             int line)
Combination boxes and spin buttons generates this message.

Specified by:
onContentChanged in interface VirtualComponentListener
Overrides:
onContentChanged in class VirtualComponentAdapter
Parameters:
panel - The virtual panel.
control - The virtual control.
text - The text from the control.
line - The line that was selected in a combobox.

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


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