| edu.rice.cs.drjava.ui.config.FontOptionComponent
FontOptionComponent | public class FontOptionComponent extends OptionComponent (Code) | | The Graphical form of a FontOption.
version: $Id: FontOptionComponent.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public void | chooseFont() Shows a custom font chooser dialog to pick a new font. | public JComponent | getComponent() Return's this OptionComponent's configurable component. | public void | setDescription(String description) Sets the tooltip description text for this option. | public void | setValue(Font value) Displays the given value. | public boolean | updateConfig() Updates the config object with the new setting. |
FontOptionComponent | public FontOptionComponent(FontOption opt, String text, Frame parent, String description)(Code) | | Constructor that allows for a tooltip description.
|
chooseFont | public void chooseFont()(Code) | | Shows a custom font chooser dialog to pick a new font.
|
getComponent | public JComponent getComponent()(Code) | | Return's this OptionComponent's configurable component.
|
setDescription | public void setDescription(String description)(Code) | | Sets the tooltip description text for this option.
Parameters: description - the tooltip text |
setValue | public void setValue(Font 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 |
|
|