|
||||||||||
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<Color>
edu.rice.cs.drjava.ui.config.ColorOptionComponent
public class ColorOptionComponent
Graphical form of a ColorOption.
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 | |
---|---|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent)
Main constructor for ColorOptionComponent. |
|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent,
boolean isBackgroundColor)
An alternate constructor, allowing the caller to specify whether this color is a background color. |
|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent,
boolean isBackgroundColor,
boolean isBoldText)
|
|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent,
String description,
boolean isBackgroundColor)
Constructor that allows for a tooltip description as well as whether or not this is a background color. |
|
ColorOptionComponent(ColorOption opt,
String text,
SwingFrame parent,
String description,
boolean isBackgroundColor,
boolean isBoldText)
Constructor that allows for a tooltip description as well as whether or not this is a background color. |
Method Summary | |
---|---|
void |
chooseColor()
Shows a color chooser dialog for picking a new color. |
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(Color 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 ColorOptionComponent(ColorOption opt, String text, SwingFrame parent)
opt
- The ColorOption to displaytext
- The text to display in the label of the componentparent
- The Frame displaying this componentpublic ColorOptionComponent(ColorOption opt, String text, SwingFrame parent, boolean isBackgroundColor)
public ColorOptionComponent(ColorOption opt, String text, SwingFrame parent, boolean isBackgroundColor, boolean isBoldText)
public ColorOptionComponent(ColorOption opt, String text, SwingFrame parent, String description)
public ColorOptionComponent(ColorOption opt, String text, SwingFrame parent, String description, boolean isBackgroundColor)
public ColorOptionComponent(ColorOption opt, String text, SwingFrame parent, String description, boolean isBackgroundColor, boolean isBoldText)
Method Detail |
---|
public void setDescription(String description)
setDescription
in class OptionComponent<Color>
description
- the tooltip textpublic boolean updateConfig()
updateConfig
in class OptionComponent<Color>
public void setValue(Color value)
setValue
in class OptionComponent<Color>
public JComponent getComponent()
getComponent
in class OptionComponent<Color>
public void chooseColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |