|
||||||||||
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<T>
public abstract class VectorOptionComponent<T>
Graphical form of a VectorOption for the Extra Classpath option. Uses a file chooser for each String element. TODO: define a static make method that adds buttons so that moveUp and moveDown button definitions can be moved to subclass
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 JButton |
_addButton
|
protected JPanel |
_buttonPanel
|
protected JList |
_list
|
protected DefaultListModel |
_listModel
|
protected JScrollPane |
_listScrollPane
|
protected JButton |
_moveDownButton
|
protected JButton |
_moveUpButton
|
protected JPanel |
_panel
|
protected JButton |
_removeButton
|
protected static int |
NUM_ROWS
|
protected static int |
PIXELS_PER_ROW
|
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
---|
_entireColumn, _label, _labelText, _option, _parent |
Constructor Summary | |
---|---|
VectorOptionComponent(VectorOption<T> opt,
String text,
SwingFrame parent)
Builds a new VectorOptionComponent. |
|
VectorOptionComponent(VectorOption<T> opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
Method Summary | |
---|---|
protected void |
_addButtons()
Adds buttons to _buttonPanel |
protected abstract Action |
_getAddAction()
Gets an action that adds a component to the set of options. |
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
Vector<T> |
getValue()
Accessor to the current contents of the list. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(Vector<T> 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 |
Field Detail |
---|
protected JScrollPane _listScrollPane
protected JPanel _panel
protected JList _list
protected JPanel _buttonPanel
protected JButton _addButton
protected JButton _removeButton
protected JButton _moveUpButton
protected JButton _moveDownButton
protected DefaultListModel _listModel
protected static final int NUM_ROWS
protected static final int PIXELS_PER_ROW
Constructor Detail |
---|
public VectorOptionComponent(VectorOption<T> opt, String text, SwingFrame parent)
opt
- the optiontext
- the label to displayparent
- the parent framepublic VectorOptionComponent(VectorOption<T> opt, String text, SwingFrame parent, String description)
Method Detail |
---|
protected void _addButtons()
public void setDescription(String description)
setDescription
in class OptionComponent<Vector<T>>
description
- the tooltip textpublic boolean updateConfig()
updateConfig
in class OptionComponent<Vector<T>>
public Vector<T> getValue()
public void setValue(Vector<T> value)
setValue
in class OptionComponent<Vector<T>>
public JComponent getComponent()
getComponent
in class OptionComponent<Vector<T>>
protected abstract Action _getAddAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |