public class DirectoryChooser extends AbstractFileChooser
Modifier and Type | Field and Description |
---|---|
static javax.swing.Icon |
WIDGET_ICON
The icon for the widget
|
label, textfield, value
name
Constructor and Description |
---|
DirectoryChooser(java.lang.String name)
Creates a new instance of a directory chooser widget
(this specific constructor is used by the PCD editor ONLY!).
|
DirectoryChooser(java.lang.String name,
java.lang.String label,
java.lang.String value)
Creates a new instance of a file chooser widget.
|
Modifier and Type | Method and Description |
---|---|
void |
pcdOut(int scope,
java.lang.Appendable out)
Writes the BioPCD representation of the menu widget to a writer object
(see BioLegato's BioPCD editor for more details)
|
display
editWindow, getInstance, pcdOut, setValue
displayEdit, editImage, recursiveDraw
public DirectoryChooser(java.lang.String name)
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.public DirectoryChooser(java.lang.String name, java.lang.String label, java.lang.String value)
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 chooserpublic void pcdOut(int scope, java.lang.Appendable out) throws java.io.IOException
pcdOut
in interface Widget
pcdOut
in class TextWidget
scope
- the level of scope to write the menu widget. In the case
of PCD, the scope of each line is indicated by the number
of spaced preceding the line. Every 4 spaces count as
one level of scope (any number not divisible by 4 is
considered an error), thus if a line is preceded by 4
spaces, its scope level is considered to be 1out
- the Appendable object to output the BioPCD code.java.io.IOException
Copyright © 2008-2022 University of Manitoba.