|
||||||||||
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<Vector<T>>
edu.rice.cs.drjava.ui.config.VectorOptionComponent<File>
edu.rice.cs.drjava.ui.config.VectorFileOptionComponent
public class VectorFileOptionComponent
Graphical form of a VectorOption for the Extra Classpath/Sourcepath options. Uses a file chooser for each File element.
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 | |
---|---|
protected File |
_baseDir
|
protected boolean |
_moveButtonEnabled
|
Fields inherited from class edu.rice.cs.drjava.ui.config.VectorOptionComponent |
---|
_addButton, _buttonPanel, _list, _listModel, _listScrollPane, _moveDownButton, _moveUpButton, _panel, _removeButton, NUM_ROWS, PIXELS_PER_ROW |
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
---|
_entireColumn, _label, _labelText, _option, _parent |
Constructor Summary | |
---|---|
VectorFileOptionComponent(VectorOption<File> opt,
String text,
SwingFrame parent)
|
|
VectorFileOptionComponent(VectorOption<File> opt,
String text,
SwingFrame parent,
boolean moveButtonEnabled)
Constructor with flag for move buttons. |
|
VectorFileOptionComponent(VectorOption<File> opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
|
VectorFileOptionComponent(VectorOption<File> opt,
String text,
SwingFrame parent,
String description,
boolean moveButtonEnabled)
Constructor that allows for a tooltip description. |
Method Summary | |
---|---|
protected void |
_addButtons()
Adds buttons to _buttonPanel |
protected Action |
_getAddAction()
Gets an action that adds a component to the set of options. |
void |
chooseFile()
Shows a file chooser for adding a file to the element. |
void |
setBaseDir(File f)
Sets the directory where the chooser will start if no file is selected. |
void |
setFileFilter(FileFilter fileFilter)
Set the file filter for this vector option component. |
void |
setValue(ArrayList<File> files)
Displays the given value. |
Methods inherited from class edu.rice.cs.drjava.ui.config.VectorOptionComponent |
---|
getComponent, getValue, setDescription, setValue, updateConfig |
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 |
Field Detail |
---|
protected boolean _moveButtonEnabled
protected File _baseDir
Constructor Detail |
---|
public VectorFileOptionComponent(VectorOption<File> opt, String text, SwingFrame parent)
public VectorFileOptionComponent(VectorOption<File> opt, String text, SwingFrame parent, String description)
public VectorFileOptionComponent(VectorOption<File> opt, String text, SwingFrame parent, boolean moveButtonEnabled)
public VectorFileOptionComponent(VectorOption<File> opt, String text, SwingFrame parent, String description, boolean moveButtonEnabled)
Method Detail |
---|
protected void _addButtons()
_addButtons
in class VectorOptionComponent<File>
public void setValue(ArrayList<File> files)
public void setFileFilter(FileFilter fileFilter)
public void setBaseDir(File f)
public void chooseFile()
protected Action _getAddAction()
VectorOptionComponent
_getAddAction
in class VectorOptionComponent<File>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |