| edu.rice.cs.drjava.ui.config.ToolbarOptionComponent
ToolbarOptionComponent | public class ToolbarOptionComponent extends OptionComponent (Code) | | 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.
version: $Id: ToolbarOptionComponent.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public JComponent | getComponent() Return's this OptionComponent's configurable component. | public void | resetToCurrent() Selects the radio button corresponding to the current config options. | public void | resetToDefault() Selects the radio button corresponding to the default values. | public void | setDescription(String description) Sets the tooltip description text for this option. | public void | setValue(Boolean value) Displays the given value. | public boolean | updateConfig() Updates the config object with the new setting. |
TEXT_AND_ICONS | final public static String TEXT_AND_ICONS(Code) | | |
ToolbarOptionComponent | public ToolbarOptionComponent(String title, Frame parent)(Code) | | The constructor does not take an option since we have specific knowledge of the
two options we'll need for this component. We simpy access them as needed, and use
OptionComponent's degenerate constructor.
Parameters: title - the title for this panel Parameters: parent - the parent frame |
ToolbarOptionComponent | public ToolbarOptionComponent(String title, Frame parent, String description)(Code) | | Constructor that allows for a tooltip description.
|
getComponent | public JComponent getComponent()(Code) | | Return's this OptionComponent's configurable component.
|
resetToCurrent | public void resetToCurrent()(Code) | | Selects the radio button corresponding to the current config options.
|
resetToDefault | public void resetToDefault()(Code) | | Selects the radio button corresponding to the default values.
|
setDescription | public void setDescription(String description)(Code) | | Sets the tooltip description text for this option.
Parameters: description - the tooltip text |
setValue | public void setValue(Boolean 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 |
|
|