|
||||||||||
| 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.lang.String,javax.swing.JComboBox>
edu.rice.cs.drjava.ui.config.ForcedChoiceOptionComponent
public class ForcedChoiceOptionComponent
This component displays all legal choices for a ForcedChoiceOption as a list of radio buttons. The radio buttons are placed within a framed panel titled with the OptionComponent's label.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
private javax.swing.JComboBox |
_comboBox
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _guiComponent, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
ForcedChoiceOptionComponent(ForcedChoiceOption option,
java.lang.String labelText,
SwingFrame parent)
Main constructor builds a panel containing a set of radio buttons for the legal values of the ForcedChoiceOption. |
|
ForcedChoiceOptionComponent(ForcedChoiceOption option,
java.lang.String labelText,
SwingFrame parent,
java.lang.String description)
Constructor that allows for a tooltip description. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCurrentComboBoxValue()
|
void |
resetToCurrent(java.lang.String current)
Selects the radio button corresponding to the current config options. |
void |
setDescription(java.lang.String description)
Sets the tooltip description text for this option. |
void |
setValue(java.lang.String 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 javax.swing.JComboBox _comboBox
| Constructor Detail |
|---|
public ForcedChoiceOptionComponent(ForcedChoiceOption option,
java.lang.String labelText,
SwingFrame parent)
public ForcedChoiceOptionComponent(ForcedChoiceOption option,
java.lang.String labelText,
SwingFrame parent,
java.lang.String description)
| Method Detail |
|---|
public void setDescription(java.lang.String description)
setDescription in class OptionComponent<java.lang.String,javax.swing.JComboBox>description - the tooltip textpublic void resetToCurrent(java.lang.String current)
public boolean updateConfig()
updateConfig in class OptionComponent<java.lang.String,javax.swing.JComboBox>public java.lang.String getCurrentComboBoxValue()
public void setValue(java.lang.String value)
setValue in class OptionComponent<java.lang.String,javax.swing.JComboBox>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||