|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.beans.EnvironmentField
weka.gui.beans.FileEnvironmentField
public class FileEnvironmentField
Widget that displays a label, editable combo box for selecting environment variables and a button for brining up a file browser. The user can enter arbitrary text, select an environment variable or a combination of both. Any variables are resolved (if possible) and resolved values are displayed in a tip-text.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FileEnvironmentField()
Constructor |
|
FileEnvironmentField(Environment env)
Constructor |
|
FileEnvironmentField(String label,
Environment env)
|
|
FileEnvironmentField(String label,
Environment env,
int fileChooserType)
Constructor |
|
FileEnvironmentField(String label,
Environment env,
int fileChooserType,
boolean directoriesOnly)
Constructor |
|
FileEnvironmentField(String label,
int fileChooserType,
boolean directoriesOnly)
Constructor |
|
| Method Summary | |
|---|---|
void |
addFileFilter(FileFilter toSet)
Add a file filter to use |
void |
removeNotify()
|
void |
resetFileFilters()
Resets the list of choosable file filters. |
void |
setEnabled(boolean enabled)
Set the enabled status of the combo box and button |
| Methods inherited from class weka.gui.beans.EnvironmentField |
|---|
addPropertyChangeListener, getAsText, getCustomEditor, getCustomPanel, getJavaInitializationString, getTags, getText, getValue, isPaintable, main, paintValue, removePropertyChangeListener, setAsText, setEditable, setEnvironment, setLabel, setText, setValue, supportsCustomEditor |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileEnvironmentField()
public FileEnvironmentField(Environment env)
env - an Environment object to use
public FileEnvironmentField(String label,
Environment env)
public FileEnvironmentField(String label,
Environment env,
int fileChooserType)
label - a label to display alongside the field.env - an Environment object to use.fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG
or JFileChooser.SAVE_DIALOG)
public FileEnvironmentField(String label,
Environment env,
int fileChooserType,
boolean directoriesOnly)
label - a label to display alongside the field.env - an Environment object to use.fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG
or JFileChooser.SAVE_DIALOG)directoriesOnly - true if file chooser should allow only directories to be selected -
public FileEnvironmentField(String label,
int fileChooserType,
boolean directoriesOnly)
label - a label to display alongside the field.fileChooserType - the type of file chooser to use (either JFileChooser.OPEN_DIALOG
or JFileChooser.SAVE_DIALOG)| Method Detail |
|---|
public void addFileFilter(FileFilter toSet)
toSet - the file filter to usepublic void resetFileFilters()
public void removeNotify()
removeNotify in class JComponentpublic void setEnabled(boolean enabled)
setEnabled in class EnvironmentFieldenabled - true if the combo box and button are to be enabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||