public abstract class AbstractFileChooser extends TextWidget
label, textfield, value, WIDGET_ICON
name
Constructor and Description |
---|
AbstractFileChooser(java.lang.String name,
int mode,
java.lang.String chooserButtonText)
Creates a new instance of the abstract class file/directory
chooser widget.
|
AbstractFileChooser(java.lang.String name,
java.lang.String label,
java.lang.String value,
int mode,
java.lang.String chooserButtonText)
Creates a new instance of the abstract class file/directory
chooser widget.
|
Modifier and Type | Method and Description |
---|---|
void |
display(java.awt.Container dest,
CloseableWindow window)
Displays the current widget within the container 'dest'.
|
editWindow, getInstance, pcdOut, pcdOut, setValue
displayEdit, editImage, recursiveDraw
public AbstractFileChooser(java.lang.String name, int mode, java.lang.String chooserButtonText)
name
- the PCD variable name (this name can be referenced
in the command using the % symbol; for example,
if the name value was set to "A", the value of this
widget could be accessed by using %A% (lower or
upper-case) within the PCD menu command string.mode
- the file chooser mode (directories, files or both).chooserButtonText
- the text to display in the "Browse" button.public AbstractFileChooser(java.lang.String name, java.lang.String label, java.lang.String value, int mode, java.lang.String chooserButtonText)
name
- the PCD variable name (this name can be referenced
in the command using the % symbol; for example,
if the name value was set to "A", the value of this
widget could be accessed by using %A% (lower or
upper-case) within the PCD menu command string.label
- the label to display representing the parameter to be
manipulated by the number widget. This is the text the
user will see to the left of the widget in any
BioLegato menu windows.value
- the default value for the file chooser.mode
- the file chooser mode (directories, files or both).chooserButtonText
- the text to display in the "Browse" button.public void display(java.awt.Container dest, CloseableWindow window)
display
in interface Widget
display
in class TextWidget
dest
- the destination Container to display the widget. Note that
this will almost definitely be different from the window
parameter, and in most cases, should be a JPanel object.window
- the parent window to communicate with. The communication
involved is supposed to be limited to just using 'window'
to create modal dialog boxes when necessary (for example,
the AbstractFileChooser's "Browse" file choice dialog box).
Please note that this field may be null!! (e.g. displaying
the current state of the widget in the editor canvas)Copyright © 2008-2022 University of Manitoba.