|
||||||||||
| 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<Font>
edu.rice.cs.drjava.ui.config.FontOptionComponent
public class FontOptionComponent
The Graphical form of a FontOption.
| 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 | |
|---|---|
FontOptionComponent(FontOption opt,
String text,
SwingFrame parent)
|
|
FontOptionComponent(FontOption opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
|
| Method Summary | |
|---|---|
void |
chooseFont()
Shows a custom font chooser dialog to pick a new font. |
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(Font 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 FontOptionComponent(FontOption opt,
String text,
SwingFrame parent)
public FontOptionComponent(FontOption opt,
String text,
SwingFrame parent,
String description)
| Method Detail |
|---|
public void setDescription(String description)
setDescription in class OptionComponent<Font>description - the tooltip textpublic JComponent getComponent()
getComponent in class OptionComponent<Font>public void chooseFont()
public boolean updateConfig()
updateConfig in class OptionComponent<Font>public void setValue(Font value)
setValue in class OptionComponent<Font>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||