Class CmsImageGalleryField
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.ui.CmsGalleryField
org.opencms.ade.galleries.client.ui.CmsImageGalleryField
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasFocusHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasResizeHandlers,com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>,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,I_CmsHasInit,I_CmsFormWidget
A widget for selecting a resource from an ADE gallery dialog.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ade.galleries.client.ui.CmsGalleryField
CmsGalleryField.I_CmsGalleryFieldUiBinder, CmsGalleryField.OpenCloseHandlerNested 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.DebugIdImplEnabledNested classes/interfaces inherited from interface org.opencms.gwt.client.ui.input.I_CmsFormWidget
I_CmsFormWidget.FieldType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CmsTextAreaThe text area.protected CmsSelectBoxThe select box.Fields inherited from class org.opencms.ade.galleries.client.ui.CmsGalleryField
m_configuration, m_croppingParam, m_fader, m_fieldBox, m_imagePreview, m_main, m_opener, m_popup, m_resourceInfoPanel, m_rightBlock, m_specialUploadButton, m_textbox, m_uploadButton, m_uploadDropZone, WIDGET_TYPEFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCmsImageGalleryField(org.opencms.ade.galleries.shared.I_CmsGalleryConfiguration configuration, boolean allowUploads) Constructs a new gallery widget. -
Method Summary
Modifier and TypeMethodDescriptionGets the current value of the widget as a string.static voidInitializes this class.protected voidonFocusDescription(com.google.gwt.event.dom.client.FocusEvent event) Handles the focus event on the opener.protected voidonFocusSelect(com.google.gwt.event.dom.client.FocusEvent event) Handles the focus event on the opener.voidonSelectBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event) On select box value change.voidonTextAreaBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event) On textarea box value change.voidonTextAreaBoxResize(com.google.gwt.event.logical.shared.ResizeEvent event) On textarea box resize.voidSets the name of the input field.voidSets the widget value.protected voidsetValueFromGallery(String resourcePath, org.opencms.util.CmsUUID structureId, CmsCroppingParamBean croppingParameter) Sets the widget value.Methods inherited from class org.opencms.ade.galleries.client.ui.CmsGalleryField
addFieldStyleName, addFocusHandler, addResizeHandler, addToMain, addValueChangeHandler, fireChange, fireResize, getApparentValue, getCurrentElement, getFieldType, getFormValue, getGalleryService, getPopup, isDndEnabled, isEnabled, onFocusTextbox, openGalleryDialog, removeFromMain, reset, setAutoHideParent, setDropZoneElement, setEnabled, setErrorMessage, setFormValueAsString, setGalleryOpenerTitle, setHasImage, setImagePreview, updateUploadTargetMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Field Details
-
m_descriptionArea
The text area. -
m_formatSelection
The select box.
-
-
Constructor Details
-
Method Details
-
initClass
Initializes this class. -
getFormValueAsString
Description copied from interface:I_CmsFormWidgetGets the current value of the widget as a string.- Specified by:
getFormValueAsStringin interfaceI_CmsFormWidget- Overrides:
getFormValueAsStringin classCmsGalleryField- Returns:
- the current value of the widget
- See Also:
-
setName
Sets the name of the input field.- Overrides:
setNamein classCmsGalleryField- Parameters:
name- of the input field
-
setValue
Sets the widget value.- Overrides:
setValuein classCmsGalleryField- Parameters:
value- the value to setfireEvent- if the change event should be fired
-
onFocusDescription
@UiHandler("m_descriptionArea") protected void onFocusDescription(com.google.gwt.event.dom.client.FocusEvent event) Handles the focus event on the opener.- Parameters:
event- the focus event
-
onFocusSelect
@UiHandler("m_formatSelection") protected void onFocusSelect(com.google.gwt.event.dom.client.FocusEvent event) Handles the focus event on the opener.- Parameters:
event- the focus event
-
setValueFromGallery
protected void setValueFromGallery(String resourcePath, org.opencms.util.CmsUUID structureId, CmsCroppingParamBean croppingParameter) Description copied from class:CmsGalleryFieldSets the widget value. To be called from the gallery dialog.- Overrides:
setValueFromGalleryin classCmsGalleryField- Parameters:
resourcePath- the selected resource pathstructureId- the resource structure idcroppingParameter- the selected cropping- See Also:
-