|
||||||||||
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<Boolean>
edu.rice.cs.drjava.ui.config.ToolbarOptionComponent
public class ToolbarOptionComponent
The special option component for the toolbar text and toolbar icon options. Not a true OptionComponent, in that it actually represents and governs the configuration of two BooleanOptions (i.e. those corresponding to TOOLBAR_TEXT_ENABLED and TOOLBAR_ICONS_ENABLED) bypassing the the normal graphical representation with JRadioButtons, in order to comply with the special circumstances regarding their setting.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
---|
OptionComponent.ChangeListener |
Field Summary | |
---|---|
static String |
ICONS_ONLY
|
static String |
NONE
|
static String |
TEXT_AND_ICONS
|
static String |
TEXT_ONLY
|
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
---|
_entireColumn, _label, _labelText, _option, _parent |
Constructor Summary | |
---|---|
ToolbarOptionComponent(String title,
SwingFrame parent)
The constructor does not take an option since we have specific knowledge of the two options we'll need for this component. |
|
ToolbarOptionComponent(String title,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
Method Summary | |
---|---|
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
resetToCurrent()
Selects the radio button corresponding to the current config options. |
void |
resetToDefault()
Selects the radio button corresponding to the default values. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(Boolean 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, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NONE
public static final String TEXT_ONLY
public static final String ICONS_ONLY
public static final String TEXT_AND_ICONS
Constructor Detail |
---|
public ToolbarOptionComponent(String title, SwingFrame parent)
title
- the title for this panelparent
- the parent framepublic ToolbarOptionComponent(String title, SwingFrame parent, String description)
Method Detail |
---|
public void setDescription(String description)
setDescription
in class OptionComponent<Boolean>
description
- the tooltip textpublic void resetToCurrent()
resetToCurrent
in class OptionComponent<Boolean>
public void resetToDefault()
resetToDefault
in class OptionComponent<Boolean>
public JComponent getComponent()
getComponent
in class OptionComponent<Boolean>
public boolean updateConfig()
updateConfig
in class OptionComponent<Boolean>
public void setValue(Boolean value)
setValue
in class OptionComponent<Boolean>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |