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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceUi 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
FieldsModifier and TypeFieldDescriptionprotected CmsPushButtonThe reset copyright button.protected CmsPushButtonThe reset alt/title button.protected CmsCheckBoxThe insert copyright check-box.protected CmsCheckBoxThe insert link to original check-box.protected CmsCheckBoxThe insert subtitle check-box.protected CmsCheckBoxThe insert spacing check-box.protected CmsTextBoxThe alt/title input field.protected CmsTextBoxThe copyright input field.protected CmsTextBoxThe hSpace input field.protected CmsTextBoxThe vSpace input field.protected com.google.gwt.user.client.ui.LabelThe alignment select-box label.protected com.google.gwt.user.client.ui.LabelThe alt/title field label.protected com.google.gwt.user.client.ui.LabelThe copyright field label.protected com.google.gwt.user.client.ui.LabelThe hSpace field label.protected com.google.gwt.user.client.ui.LabelThe image spacing check-box label.protected com.google.gwt.user.client.ui.LabelThe insert copyright check-box label.protected com.google.gwt.user.client.ui.LabelThe insert link to original check-box label.protected com.google.gwt.user.client.ui.LabelThe insert subtitles check-box label.protected com.google.gwt.user.client.ui.LabelThe vSpace field label.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillContent(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.voidhideEnhancedOptions(boolean hide) Hides the enhanced image options in this form.protected voidonResetCopyrightClick(com.google.gwt.event.dom.client.ClickEvent event) Handles the click on 'reset copyright' button.protected voidonResetTitleClick(com.google.gwt.event.dom.client.ClickEvent event) Handles the click on 'reset title' button.protected voidresetValue(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, setWidgetMethods 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, unsinkEventsMethods 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- iftruethe 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