public interface SelectionInterface
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.
|
boolean |
isSelectionValid(String path,
VirtualControl control,
VirtualPanel vp)
Method that lets the class implementing this interface handle the validation of a new selected path.
|
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.
|
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.
boolean isSelectionValid(String path, VirtualControl control, VirtualPanel vp)
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.boolean applySelection(String path, VirtualControl control)
This enables the implementing class to manipulate the path before it is inserted.
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.