public class AdminConfigFileManager extends VirtualComponentAdapter implements SelectionInterface
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 and Description |
---|
AdminConfigFileManager(VirtualPanel vp)
Creates the ports instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applySelection(String path,
VirtualControl control)
Method that lets the class implementing this interface handle the inserting of the new path,
instead of letting the AdminConfigSelectDirectory or the AdminConfigSelectFile class insert it
directly to the VirtualControl.
|
static void |
checkAccessRights(String fileOrDir)
Checks for access rights of a file or directory name.
|
void |
initialize(VirtualPanel vp)
Initializes the list box.
|
boolean |
isSelectionValid(String path,
VirtualControl control,
VirtualPanel vp)
Method that lets the class implementing this interface handle the validation of a new selected path.
|
boolean |
onPanelClosing(VirtualPanel vp)
Called when the close button of a panel is pressed,
but before any other processing has been done.
|
void |
onPanelDestroy(VirtualPanel panel)
Called to inform the listener that the panel is destroyed.
|
void |
onPropertyChange(VirtualPanel vp,
VirtualControl control,
String controlID,
String propertyName,
Object property)
A control notifies the listener using this event when custom properties
needs to be handled.
|
String |
retreiveSelection(VirtualControl control)
Method that lets the class implementing this interface manipulate the initial path before it is retreived by
the directory/file chooser.
|
void |
serverTreeSelection(VirtualPanel vp,
String text)
A tree selection has been done.
|
onAction, onAction, onAction, onCheckedChange, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onSelectionChanged
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelCreate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelCreate
public AdminConfigFileManager(VirtualPanel vp)
public static void checkAccessRights(String fileOrDir) throws IOException
IOException
- for failure.public void initialize(VirtualPanel vp)
public boolean onPanelClosing(VirtualPanel vp)
onPanelClose
is called.onPanelClosing
in interface VirtualPanelListener
onPanelClosing
in class VirtualPanelAdapter
vp
- The panel issuing the event.VirtualPanelListener.onPanelClose(se.entra.phantom.server.VirtualPanel)
public void onPanelDestroy(VirtualPanel panel)
Closes any currently opened file transfer.
onPanelDestroy
in interface VirtualPanelListener
onPanelDestroy
in class VirtualPanelAdapter
panel
- The panel issuing the event.public void serverTreeSelection(VirtualPanel vp, String text)
public void onPropertyChange(VirtualPanel vp, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependent of the property change event string.
onPropertyChange
in interface VirtualComponentListener
onPropertyChange
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.propertyName
- The property name.property
- Property value depending on the property name.public String retreiveSelection(VirtualControl control)
For example, if the path to be retrieved is relative, but not relative to the current directory, then this method could build up a path relative to the current directory, or an absolute path, before passing it along to the chooser.
retreiveSelection
in interface SelectionInterface
public boolean isSelectionValid(String path, VirtualControl control, VirtualPanel vp)
isSelectionValid
in interface SelectionInterface
path
- The new path to insert.control
- The VirtualControl to insert it into.vp
- The chooser dialogs virtual panel. This is passed along to enable the class
implementing this interface to create a dialog for a message, with the chooser
dialog as its parent.public boolean applySelection(String path, VirtualControl control)
This enables the implementing class to manipulate the path before it is inserted.
applySelection
in interface SelectionInterface
path
- The new path to insert.control
- The VirtualControl to insert it into.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.