class FeatureBehaviorFontFamily extends AbstractSelectionFeatureBehavior
FeatureBehavior
for RichTextFeature.FONT_FAMILY
.Constructor and Description |
---|
FeatureBehaviorFontFamily(RichTextToolbar richTextToolbar)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyFontSettings()
Updates the
RichTextArea according to the value from the widget for
the font-settings. |
protected void |
applyFontSettings(String value,
com.google.gwt.dom.client.Style style) |
protected List<String> |
createOptions() |
RichTextFeature |
getFeature() |
protected String |
getValue() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
applyFontSettings, getCombobox, getDataList, getFontSettingsLabel, getFontSettingsWidget, hasFontSettingsWidget, setFontSettingsPreviewElement, updateFontSettings
getToolbarWidget, isEnabled, setEnabled
createFontSettingsLabel, createId, getFormatter, getIconMarkup, getLocalizedLabel, getRichTextToolbar, isVisible, setVisible, updateToolbar
public FeatureBehaviorFontFamily(RichTextToolbar richTextToolbar)
richTextToolbar
- is the RichTextToolbar
owning this FeatureBehavior
.public RichTextFeature getFeature()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
protected List<String> createOptions()
createOptions
in class AbstractSelectionFeatureBehavior
List
of available options for the datalist
.public void applyFontSettings()
RichTextArea
according to the value from the widget for
the font-settings.applyFontSettings
in interface FeatureBehavior
applyFontSettings
in class AbstractSelectionFeatureBehavior
protected void applyFontSettings(String value, com.google.gwt.dom.client.Style style)
applyFontSettings
in class AbstractSelectionFeatureBehavior
value
- the value to set (e.g. font family).style
- the Style
to modify.protected String getValue()
getValue
in class AbstractSelectionFeatureBehavior
Copyright © 2001–2016 mmm-Team. All rights reserved.