|
||||||||||
| 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<File>
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 |
| Nested classes/interfaces inherited from interface edu.rice.cs.drjava.config.OptionConstants |
|---|
OptionConstants.AccessLevelChoices, OptionConstants.DefaultFont, OptionConstants.HeapSizeChoices, OptionConstants.LookAndFeels, OptionConstants.PlasticThemes, OptionConstants.VersionNotificationChoices |
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
FileOptionComponent(FileOption opt,
String text,
SwingFrame parent,
JFileChooser jfc)
|
|
FileOptionComponent(FileOption opt,
String text,
SwingFrame parent,
String description,
JFileChooser jfc)
Constructor that allows for a tooltip description. |
|
| Method Summary | |
|---|---|
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setFileFilter(FileFilter fileFilter)
Set the file filter for this file option component |
void |
setValue(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, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileOptionComponent(FileOption opt,
String text,
SwingFrame parent,
JFileChooser jfc)
public FileOptionComponent(FileOption opt,
String text,
SwingFrame parent,
String description,
JFileChooser jfc)
| Method Detail |
|---|
public void setDescription(String description)
setDescription in class OptionComponent<File>description - the tooltip textpublic boolean updateConfig()
updateConfig in class OptionComponent<File>public void setValue(File value)
setValue in class OptionComponent<File>public JComponent getComponent()
getComponent in class OptionComponent<File>public void setFileFilter(FileFilter fileFilter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||