abstract class AbstractFeatureBehavior extends Object implements FeatureBehavior
FeatureBehavior.| Modifier and Type | Field and Description |
|---|---|
private RichTextToolbar |
richTextToolbar |
private boolean |
visible |
| Constructor and Description |
|---|
AbstractFeatureBehavior(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 LabelWidget |
createFontSettingsLabel() |
protected String |
createId(String suffix) |
LabelWidget |
getFontSettingsLabel() |
com.google.gwt.user.client.ui.Widget |
getFontSettingsWidget() |
protected com.google.gwt.user.client.ui.RichTextArea.Formatter |
getFormatter() |
protected com.google.gwt.safehtml.shared.SafeHtml |
getIconMarkup() |
protected String |
getLocalizedLabel() |
protected RichTextToolbar |
getRichTextToolbar() |
protected boolean |
hasFontSettingsWidget() |
boolean |
isVisible()
This method determines if this object is
set to
visible. |
void |
setFontSettingsPreviewElement(com.google.gwt.dom.client.Element element)
Updates the
RichTextArea according to the value from the widget for
the font-settings. |
void |
setVisible(boolean visible)
This method shows or hides this object.
|
void |
updateFontSettings()
Updates the value of the widget for the font-settings according to the state of the
RichTextArea. |
void |
updateToolbar()
Updates the status of the
FeatureBehavior in the toolbar widget after
a change. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeature, getToolbarWidgetsetEnabledisEnabledprivate final RichTextToolbar richTextToolbar
getRichTextToolbar()private boolean visible
isVisible()public AbstractFeatureBehavior(RichTextToolbar richTextToolbar)
richTextToolbar - is the RichTextToolbar owning this FeatureBehavior.protected RichTextToolbar getRichTextToolbar()
protected com.google.gwt.user.client.ui.RichTextArea.Formatter getFormatter()
RichTextArea.Formatter of the RichTextArea of the
getRichTextToolbar().public boolean isVisible()
set to
visible.isVisible in interface AttributeReadVisibletrue if programmatically set visible, false if directly
programmatically hidden.AttributeReadVisibleRecursive.isVisibleRecursive()public final void setVisible(boolean visible)
setVisible in interface AttributeWriteVisiblevisible - is the new visibility status of this object. If true, the object will be
shown (and raised), if false the object will be hidden (iconified).AttributeReadVisible.isVisible()protected boolean hasFontSettingsWidget()
true if the font settings widget is available and
has already been created, false otherwise.public void updateToolbar()
FeatureBehavior in the toolbar widget after
a change. E.g. toggle buttons are updated to reflect the current state.updateToolbar in interface FeatureBehaviorpublic void updateFontSettings()
RichTextArea.updateFontSettings in interface FeatureBehaviorpublic void applyFontSettings()
RichTextArea according to the value from the widget for
the font-settings.applyFontSettings in interface FeatureBehaviorpublic void setFontSettingsPreviewElement(com.google.gwt.dom.client.Element element)
RichTextArea according to the value from the widget for
the font-settings.setFontSettingsPreviewElement in interface FeatureBehaviorelement - is the Element where to apply font settings whenever the value changed.protected String getLocalizedLabel()
feature.protected String createId(String suffix)
suffix - a suffix unique for the Widget to identify within the RichTextToolbar.protected com.google.gwt.safehtml.shared.SafeHtml getIconMarkup()
SafeHtml with the markup for the icon of the feature button in the toolbar.public com.google.gwt.user.client.ui.Widget getFontSettingsWidget()
getFontSettingsWidget in interface FeatureBehaviorWidget for the feature in the
RichTextToolbar.FontSettingsPopup.protected LabelWidget createFontSettingsLabel()
LabelWidget instance for getFontSettingsLabel().getFontSettingsLabel()public LabelWidget getFontSettingsLabel()
getFontSettingsLabel in interface FeatureBehaviorLabelWidget for the feature in the
RichTextToolbar.FontSettingsPopup or
null if not intended (e.g. toggle features use
a CheckBox as popup widget
and do not have a separate label).Copyright © 2001–2016 mmm-Team. All rights reserved.