|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.config.OptionComponent<java.io.File,FileSelectorComponent>
edu.rice.cs.drjava.ui.config.FileOptionComponent
public class FileOptionComponent
Graphical form of a FileOption.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
private FileSelectorComponent |
_component
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _guiComponent, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
FileSelectorComponent fsc)
Constructor that allows for a user-supplied FileSelectorComponent. |
|
FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
javax.swing.JFileChooser jfc)
|
|
FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
FileSelectorComponent fsc)
Constructor that allows for a user-supplied FileSelectorComponent and a tooltip. |
|
FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
javax.swing.JFileChooser jfc)
Constructor that allows for a tooltip description. |
|
| Method Summary | |
|---|---|
void |
setDescription(java.lang.String description)
Sets the tooltip description text for this option. |
void |
setFileFilter(javax.swing.filechooser.FileFilter fileFilter)
Set the file filter for this file option component |
void |
setValue(java.io.File value)
Displays the given value. |
boolean |
updateConfig()
Updates the config object with the new setting. |
| Methods inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
addChangeListener, getComponent, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setComponent, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private volatile FileSelectorComponent _component
| Constructor Detail |
|---|
public FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
javax.swing.JFileChooser jfc)
public FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
javax.swing.JFileChooser jfc)
public FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
FileSelectorComponent fsc)
public FileOptionComponent(FileOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
FileSelectorComponent fsc)
| Method Detail |
|---|
public void setDescription(java.lang.String description)
setDescription in class OptionComponent<java.io.File,FileSelectorComponent>description - the tooltip textpublic boolean updateConfig()
updateConfig in class OptionComponent<java.io.File,FileSelectorComponent>public void setValue(java.io.File value)
setValue in class OptionComponent<java.io.File,FileSelectorComponent>public void setFileFilter(javax.swing.filechooser.FileFilter fileFilter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||