class FeatureBehaviorFontSize extends AbstractSelectionFeatureBehavior
FeatureBehavior
for RichTextFeature.FONT_FAMILY
.Modifier and Type | Field and Description |
---|---|
private static String |
FONT_SIZE_LARGE
The
option for RichTextArea.FontSize.LARGE . |
private static String |
FONT_SIZE_MEDIUM
The
option for RichTextArea.FontSize.MEDIUM . |
private static String |
FONT_SIZE_SMALL
The
option for RichTextArea.FontSize.SMALL . |
private static String |
FONT_SIZE_X_LARGE
The
option for RichTextArea.FontSize.X_LARGE . |
private static String |
FONT_SIZE_X_SMALL
The
option for RichTextArea.FontSize.X_SMALL . |
private static String |
FONT_SIZE_XX_LARGE
The
option for RichTextArea.FontSize.XX_LARGE . |
private static String |
FONT_SIZE_XX_SMALL
The
option for RichTextArea.FontSize.XX_SMALL . |
private Map<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> |
fontSizeMap |
Constructor and Description |
---|
FeatureBehaviorFontSize(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() |
Map<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> |
getFontSizeMap() |
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
private static final String FONT_SIZE_XX_SMALL
option
for RichTextArea.FontSize.XX_SMALL
.private static final String FONT_SIZE_X_SMALL
option
for RichTextArea.FontSize.X_SMALL
.private static final String FONT_SIZE_SMALL
option
for RichTextArea.FontSize.SMALL
.private static final String FONT_SIZE_MEDIUM
option
for RichTextArea.FontSize.MEDIUM
.private static final String FONT_SIZE_LARGE
option
for RichTextArea.FontSize.LARGE
.private static final String FONT_SIZE_X_LARGE
option
for RichTextArea.FontSize.X_LARGE
.private static final String FONT_SIZE_XX_LARGE
option
for RichTextArea.FontSize.XX_LARGE
.private Map<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> fontSizeMap
getFontSizeMap()
public FeatureBehaviorFontSize(RichTextToolbar richTextToolbar)
richTextToolbar
- is the RichTextToolbar
owning this FeatureBehavior
.public RichTextFeature getFeature()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
public Map<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> getFontSizeMap()
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.