public class CmsImageGalleryField extends CmsGalleryField
CmsGalleryField.I_CmsGalleryFieldUiBinder, CmsGalleryField.OpenCloseHandler
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
I_CmsFormWidget.FieldType
限定符和类型 | 字段和说明 |
---|---|
protected CmsTextArea |
m_descriptionArea
The text area.
|
protected CmsSelectBox |
m_formatSelection
The select box.
|
m_configuration, m_croppingParam, m_fader, m_fieldBox, m_imagePreview, m_main, m_opener, m_popup, m_resourceInfoPanel, m_textbox, m_uploadButton, m_uploadDropZone, WIDGET_TYPE
构造器和说明 |
---|
CmsImageGalleryField(I_CmsGalleryConfiguration configuration,
boolean allowUploads)
Constructs a new gallery widget.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getFormValueAsString()
Gets the current value of the widget as a string.
|
static void |
initClass()
Initializes this class.
|
protected void |
onFocusDescription(com.google.gwt.event.dom.client.FocusEvent event)
Handles the focus event on the opener.
|
protected void |
onFocusSelect(com.google.gwt.event.dom.client.FocusEvent event)
Handles the focus event on the opener.
|
void |
onSelectBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
On select box value change.
|
void |
onTextAreaBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
On textarea box value change.
|
void |
onTextAreaBoxResize(com.google.gwt.event.logical.shared.ResizeEvent event)
On textarea box resize.
|
void |
setName(java.lang.String name)
Sets the name of the input field.
|
void |
setValue(java.lang.String value,
boolean fireEvent)
Sets the widget value.
|
protected void |
setValueFromGallery(java.lang.String resourcePath,
CmsUUID structureId,
CmsCroppingParamBean croppingParameter)
Sets the widget value.
|
addFieldStyleName, addFocusHandler, addResizeHandler, addToMain, addValueChangeHandler, fireChange, fireResize, getApparentValue, getCurrentElement, getFieldType, getFormValue, getGalleryService, getPopup, isEnabled, onFocusTextbox, openGalleryDialog, removeFromMain, reset, setAutoHideParent, setDropZoneElement, setEnabled, setErrorMessage, setFormValueAsString, setGalleryOpenerTitle, setHasImage, setImagePreview, updateUploadTarget
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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, unsinkEvents
protected CmsTextArea m_descriptionArea
protected CmsSelectBox m_formatSelection
public CmsImageGalleryField(I_CmsGalleryConfiguration configuration, boolean allowUploads)
configuration
- the gallery configurationallowUploads
- states if the upload button should be enabled for this widgetpublic static void initClass()
public java.lang.String getFormValueAsString()
I_CmsFormWidget
getFormValueAsString
在接口中 I_CmsFormWidget
getFormValueAsString
在类中 CmsGalleryField
I_CmsFormWidget.getFormValueAsString()
@UiHandler(value="m_formatSelection") public void onSelectBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
event
- the event@UiHandler(value="m_descriptionArea") public void onTextAreaBoxChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
event
- the event@UiHandler(value="m_descriptionArea") public void onTextAreaBoxResize(com.google.gwt.event.logical.shared.ResizeEvent event)
event
- the eventpublic void setName(java.lang.String name)
setName
在类中 CmsGalleryField
name
- of the input fieldpublic void setValue(java.lang.String value, boolean fireEvent)
setValue
在类中 CmsGalleryField
value
- the value to setfireEvent
- if the change event should be fired@UiHandler(value="m_descriptionArea") protected void onFocusDescription(com.google.gwt.event.dom.client.FocusEvent event)
event
- @UiHandler(value="m_formatSelection") protected void onFocusSelect(com.google.gwt.event.dom.client.FocusEvent event)
event
- protected void setValueFromGallery(java.lang.String resourcePath, CmsUUID structureId, CmsCroppingParamBean croppingParameter)
CmsGalleryField
setValueFromGallery
在类中 CmsGalleryField
resourcePath
- the selected resource pathstructureId
- the resource structure idcroppingParameter
- the selected croppingCmsGalleryField.setValueFromGallery(java.lang.String, org.opencms.util.CmsUUID, org.opencms.ade.galleries.client.preview.CmsCroppingParamBean)