| edu.rice.cs.drjava.ui.config.ForcedChoiceOptionComponent
ForcedChoiceOptionComponent | public class ForcedChoiceOptionComponent extends OptionComponent (Code) | | 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.
version: $Id: ForcedChoiceOptionComponent.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public JComponent | getComponent() Return's this OptionComponent's configurable component. | public void | resetToCurrent(String current) Selects the radio button corresponding to the current config options. | public void | setDescription(String description) Sets the tooltip description text for this option. | public void | setValue(String value) Displays the given value. | public boolean | updateConfig() Updates the config object with the new setting. |
ForcedChoiceOptionComponent | public ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, Frame parent)(Code) | | Main constructor builds a panel containing a set of radio buttons for the
legal values of the ForcedChoiceOption.
|
getComponent | public JComponent getComponent()(Code) | | Return's this OptionComponent's configurable component.
|
resetToCurrent | public void resetToCurrent(String current)(Code) | | Selects the radio button corresponding to the current config options.
|
setDescription | public void setDescription(String description)(Code) | | Sets the tooltip description text for this option.
Parameters: description - the tooltip text |
setValue | public void setValue(String value)(Code) | | Displays the given value.
|
updateConfig | public boolean updateConfig()(Code) | | Updates the config object with the new setting.
true if the new value is set successfully |
|
|