|
||||||||||
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<String>
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 |
---|
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
---|
_entireColumn, _label, _labelText, _option, _parent |
Constructor Summary | |
---|---|
ForcedChoiceOptionComponent(ForcedChoiceOption option,
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,
String labelText,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
Method Summary | |
---|---|
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
resetToCurrent(String current)
Selects the radio button corresponding to the current config options. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(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, 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 ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, SwingFrame parent)
public ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, SwingFrame parent, String description)
Method Detail |
---|
public void setDescription(String description)
setDescription
in class OptionComponent<String>
description
- the tooltip textpublic void resetToCurrent(String current)
public JComponent getComponent()
getComponent
in class OptionComponent<String>
public boolean updateConfig()
updateConfig
in class OptionComponent<String>
public void setValue(String value)
setValue
in class OptionComponent<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |