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
Simple image tag properties form, use in editor mode only.
- Since:
- 8.0.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Ui binder interface.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmsPushButton
The reset copyright button.protected CmsPushButton
The reset alt/title button.protected CmsCheckBox
The insert copyright check-box.protected CmsCheckBox
The insert link to original check-box.protected CmsCheckBox
The insert subtitle check-box.protected CmsCheckBox
The insert spacing check-box.protected CmsTextBox
The alt/title input field.protected CmsTextBox
The copyright input field.protected CmsTextBox
The hSpace input field.protected CmsTextBox
The vSpace input field.protected com.google.gwt.user.client.ui.Label
The alignment select-box label.protected com.google.gwt.user.client.ui.Label
The alt/title field label.protected com.google.gwt.user.client.ui.Label
The copyright field label.protected com.google.gwt.user.client.ui.Label
The hSpace field label.protected com.google.gwt.user.client.ui.Label
The image spacing check-box label.protected com.google.gwt.user.client.ui.Label
The insert copyright check-box label.protected com.google.gwt.user.client.ui.Label
The insert link to original check-box label.protected com.google.gwt.user.client.ui.Label
The insert subtitles check-box label.protected com.google.gwt.user.client.ui.Label
The vSpace field label.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillContent
(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill) Displays the provided image information.getImageAttributes
(Map<String, 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 Details
-
m_buttonResetCopyright
The reset copyright button. -
m_buttonResetTitle
The reset alt/title button. -
m_checkboxInsertCopyright
The insert copyright check-box. -
m_checkboxInsertLinkOrig
The insert link to original check-box. -
m_checkboxInsertSubtitle
The insert subtitle check-box. -
m_checkboxSpacing
The insert spacing check-box. -
m_inputAltTitle
The alt/title input field. -
m_inputCopyright
The copyright input field. -
m_inputHSpace
The hSpace input field. -
m_inputVSpace
The vSpace input field. -
m_labelAlign
The alignment select-box label. -
m_labelAltTitle
The alt/title field label. -
m_labelCopyright
The copyright field label. -
m_labelHSpace
The hSpace field label. -
m_labelImageSpacing
The image spacing check-box label. -
m_labelInsertCopyright
The insert copyright check-box label. -
m_labelInsertLinkOrig
The insert link to original check-box label. -
m_labelInsertSubtitle
The insert subtitles check-box label. -
m_labelVSpace
The vSpace field label.
-
-
Constructor Details
-
CmsImageEditorForm
public CmsImageEditorForm()Constructor.
-
-
Method Details
-
getImageAttributes
Adds necessary attributes to the map.- Parameters:
attributes
- the attribute map- Returns:
- the attribute map
-
hideEnhancedOptions
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
Resets the value for the given attribute to it's initial value.- Parameters:
attribute
- the attribute to reset