|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOption
org.jppf.ui.options.FileChooserOption
public class FileChooserOption
This option encapsulates a file chooser control. It is composed of three components: a label, a text field containing the file name, and a button used to pop up a file chooser dialog.
| Field Summary | |
|---|---|
static int |
OPEN
The file chooser is for opening files. |
static int |
SAVE
The file chooser is for saving files. |
| Fields inherited from class org.jppf.ui.options.AbstractOption |
|---|
listeners, persistent, value |
| Fields inherited from class org.jppf.ui.options.AbstractOptionElement |
|---|
parent, root |
| Fields inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent |
| Constructor Summary | |
|---|---|
FileChooserOption()
Default constructor. |
|
FileChooserOption(String name,
String label,
String tooltip,
String value,
int dialogType)
Initialize this combo box option with the specified parameters. |
|
| Method Summary | |
|---|---|
void |
createUI()
Create the UI components for this option. |
void |
doChooseFile()
Select a file using a chooser dialog and according to this option's specifications. |
int |
getDialogType()
Get the type of the file chooser dialog. |
String |
getExtensions()
Get the list of extensions for the files the user can select. |
void |
setDialogType(int dialogType)
Set the type of the file chooser dialog. |
void |
setEnabled(boolean enabled)
Enable or disable this option. |
void |
setExtensions(String extensions)
Set the list of extensions for the files the user can select. |
protected void |
setupValueChangeNotifications()
Define a selection listener that will forward changes to the chosen file name to all value change listeners that registered with this option. |
| Methods inherited from class org.jppf.ui.options.AbstractOption |
|---|
addValueChangeListener, fireValueChanged, getValue, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, setValue |
| Methods inherited from class org.jppf.ui.options.AbstractOptionElement |
|---|
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParent, toString |
| Methods inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setBordered, setComponentConstraints, setEditable, setEventsEnabled, setFinalizer, setIconPath, setInitializer, setLabel, setLayoutConstraints, setName, setScrollable, setToolTipText, setUIComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.options.OptionElement |
|---|
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPath |
| Methods inherited from interface org.jppf.ui.options.OptionProperties |
|---|
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setEventsEnabled, setLayoutConstraints |
| Field Detail |
|---|
public static final int OPEN
public static final int SAVE
| Constructor Detail |
|---|
public FileChooserOption()
public FileChooserOption(String name,
String label,
String tooltip,
String value,
int dialogType)
name - this component's name.label - the label displayed with the checkbox.tooltip - the tooltip associated with the combobox.value - the initially selected value of this component.dialogType - determines the type of file chooser dialog, either open or save.| Method Detail |
|---|
public void createUI()
createUI in class AbstractOptionPropertiesAbstractOptionProperties.createUI()protected void setupValueChangeNotifications()
setupValueChangeNotifications in class AbstractOptionAbstractOption.setupValueChangeNotifications()public void setEnabled(boolean enabled)
enabled - true to enable this option, false to disable it.OptionProperties.setEnabled(boolean)public void doChooseFile()
public int getDialogType()
public void setDialogType(int dialogType)
dialogType - the type as an int value.public String getExtensions()
setExtensions(java.lang.String)public void setExtensions(String extensions)
extensions - the extensions as a string with the format
ext1; desc1 | ... | extN; descN.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||