Class CmsImageEditorForm
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.opencms.ade.galleries.client.preview.ui.CmsImageEditorForm
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
public class CmsImageEditorForm extends com.google.gwt.user.client.ui.Composite
Simple image tag properties form, use in editor mode only.- Since:
- 8.0.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
CmsImageEditorForm.I_CmsImageEditorFormatsTabUiBinder
Ui binder interface.
-
Field Summary
Fields Modifier and Type Field Description protected CmsPushButton
m_buttonResetCopyright
The reset copyright button.protected CmsPushButton
m_buttonResetTitle
The reset alt/title button.protected CmsCheckBox
m_checkboxInsertCopyright
The insert copyright check-box.protected CmsCheckBox
m_checkboxInsertLinkOrig
The insert link to original check-box.protected CmsCheckBox
m_checkboxInsertSubtitle
The insert subtitle check-box.protected CmsCheckBox
m_checkboxSpacing
The insert spacing check-box.protected CmsTextBox
m_inputAltTitle
The alt/title input field.protected CmsTextBox
m_inputCopyright
The copyright input field.protected CmsTextBox
m_inputHSpace
The hSpace input field.protected CmsTextBox
m_inputVSpace
The vSpace input field.protected com.google.gwt.user.client.ui.Label
m_labelAlign
The alignment select-box label.protected com.google.gwt.user.client.ui.Label
m_labelAltTitle
The alt/title field label.protected com.google.gwt.user.client.ui.Label
m_labelCopyright
The copyright field label.protected com.google.gwt.user.client.ui.Label
m_labelHSpace
The hSpace field label.protected com.google.gwt.user.client.ui.Label
m_labelImageSpacing
The image spacing check-box label.protected com.google.gwt.user.client.ui.Label
m_labelInsertCopyright
The insert copyright check-box label.protected com.google.gwt.user.client.ui.Label
m_labelInsertLinkOrig
The insert link to original check-box label.protected com.google.gwt.user.client.ui.Label
m_labelInsertSubtitle
The insert subtitles check-box label.protected com.google.gwt.user.client.ui.Label
m_labelVSpace
The vSpace field label.
-
Constructor Summary
Constructors Constructor Description CmsImageEditorForm()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillContent(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill)
Displays the provided image information.java.util.Map<java.lang.String,java.lang.String>
getImageAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Adds necessary attributes to the map.void
hideEnhancedOptions(boolean hide)
Hides the enhanced image options in this form.protected void
onResetCopyrightClick(com.google.gwt.event.dom.client.ClickEvent event)
Handles the click on 'reset copyright' button.protected void
onResetTitleClick(com.google.gwt.event.dom.client.ClickEvent event)
Handles the click on 'reset title' button.protected void
resetValue(CmsImagePreviewHandler.Attribute attribute)
Resets the value for the given attribute to it's initial value.-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
m_buttonResetCopyright
@UiField protected CmsPushButton m_buttonResetCopyright
The reset copyright button.
-
m_buttonResetTitle
@UiField protected CmsPushButton m_buttonResetTitle
The reset alt/title button.
-
m_checkboxInsertCopyright
@UiField protected CmsCheckBox m_checkboxInsertCopyright
The insert copyright check-box.
-
m_checkboxInsertLinkOrig
@UiField protected CmsCheckBox m_checkboxInsertLinkOrig
The insert link to original check-box.
-
m_checkboxInsertSubtitle
@UiField protected CmsCheckBox m_checkboxInsertSubtitle
The insert subtitle check-box.
-
m_checkboxSpacing
@UiField protected CmsCheckBox m_checkboxSpacing
The insert spacing check-box.
-
m_inputAltTitle
@UiField protected CmsTextBox m_inputAltTitle
The alt/title input field.
-
m_inputCopyright
@UiField protected CmsTextBox m_inputCopyright
The copyright input field.
-
m_inputHSpace
@UiField protected CmsTextBox m_inputHSpace
The hSpace input field.
-
m_inputVSpace
@UiField protected CmsTextBox m_inputVSpace
The vSpace input field.
-
m_labelAlign
@UiField protected com.google.gwt.user.client.ui.Label m_labelAlign
The alignment select-box label.
-
m_labelAltTitle
@UiField protected com.google.gwt.user.client.ui.Label m_labelAltTitle
The alt/title field label.
-
m_labelCopyright
@UiField protected com.google.gwt.user.client.ui.Label m_labelCopyright
The copyright field label.
-
m_labelHSpace
@UiField protected com.google.gwt.user.client.ui.Label m_labelHSpace
The hSpace field label.
-
m_labelImageSpacing
@UiField protected com.google.gwt.user.client.ui.Label m_labelImageSpacing
The image spacing check-box label.
-
m_labelInsertCopyright
@UiField protected com.google.gwt.user.client.ui.Label m_labelInsertCopyright
The insert copyright check-box label.
-
m_labelInsertLinkOrig
@UiField protected com.google.gwt.user.client.ui.Label m_labelInsertLinkOrig
The insert link to original check-box label.
-
m_labelInsertSubtitle
@UiField protected com.google.gwt.user.client.ui.Label m_labelInsertSubtitle
The insert subtitles check-box label.
-
m_labelVSpace
@UiField protected com.google.gwt.user.client.ui.Label m_labelVSpace
The vSpace field label.
-
-
Constructor Detail
-
CmsImageEditorForm
public CmsImageEditorForm()
Constructor.
-
-
Method Detail
-
fillContent
public void fillContent(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill)
Displays the provided image information.- Parameters:
imageInfo
- the image informationimageAttributes
- the image attributesinitialFill
- flag to indicate that a new image has been selected
-
getImageAttributes
public java.util.Map<java.lang.String,java.lang.String> getImageAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Adds necessary attributes to the map.- Parameters:
attributes
- the attribute map- Returns:
- the attribute map
-
hideEnhancedOptions
public void hideEnhancedOptions(boolean hide)
Hides the enhanced image options in this form.- Parameters:
hide
- iftrue
the enhanced options will get hidden
-
onResetCopyrightClick
@UiHandler("m_buttonResetCopyright") protected void onResetCopyrightClick(com.google.gwt.event.dom.client.ClickEvent event)
Handles the click on 'reset copyright' button.- Parameters:
event
- the click event
-
onResetTitleClick
@UiHandler("m_buttonResetTitle") protected void onResetTitleClick(com.google.gwt.event.dom.client.ClickEvent event)
Handles the click on 'reset title' button.- Parameters:
event
- the click event
-
resetValue
protected void resetValue(CmsImagePreviewHandler.Attribute attribute)
Resets the value for the given attribute to it's initial value.- Parameters:
attribute
- the attribute to reset
-
-