Class CmsGalleryPopup
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.google.gwt.user.client.ui.PopupPanel
-
- org.opencms.gwt.client.ui.CmsPopup
-
- org.opencms.ade.galleries.client.ui.CmsGalleryPopup
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.EventPreview
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasAnimation
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,com.google.gwt.user.client.ui.SourcesPopupEvents
,java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
,I_CmsGalleryHandler
,I_CmsAutoHider
public class CmsGalleryPopup extends CmsPopup implements I_CmsGalleryHandler
The gallery dialog popup.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsPopup
CmsPopup.HistoryHandler
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.client.ui.CmsPopup
DEFAULT_WIDTH, m_closeCommand, m_notificationWidgetInstalled, m_windowWidth, WIDE_WIDTH
-
-
Constructor Summary
Constructors Constructor Description CmsGalleryPopup(I_CmsGalleryWidgetHandler handler, org.opencms.ade.galleries.shared.I_CmsGalleryConfiguration conf)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filterDnd(org.opencms.ade.galleries.shared.CmsResultItemBean resultBean)
This method is used to disable drag-and-drop for specific results.com.google.gwt.user.client.ui.Widget
getAdditionalTypeTabControl()
Gets an additional widget to display in the type tab.I_CmsAutoHider
getAutoHideParent()
Gets the auto-hide parent.com.google.gwt.user.client.ui.Panel
getContainer()
Returns the popup content.CmsDNDHandler
getDndHandler()
Gets the drag-and-drop handler for the result list.void
processResultItem(CmsResultListItem item)
Processes a result list item.void
searchElement(java.lang.String path)
Searches for a specific element and opens it's preview if found.-
Methods inherited from class org.opencms.gwt.client.ui.CmsPopup
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, center, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, hide, hide, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, show, showArrow, wrapWithBorderPadding
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opencms.gwt.client.ui.I_CmsAutoHider
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
-
-
-
-
Constructor Detail
-
CmsGalleryPopup
public CmsGalleryPopup(I_CmsGalleryWidgetHandler handler, org.opencms.ade.galleries.shared.I_CmsGalleryConfiguration conf)
Constructor.- Parameters:
handler
- the widget handler, used to set the widgets valueconf
- the gallery configuration
-
-
Method Detail
-
filterDnd
public boolean filterDnd(org.opencms.ade.galleries.shared.CmsResultItemBean resultBean)
Description copied from interface:I_CmsGalleryHandler
This method is used to disable drag-and-drop for specific results.If this returns false, drag and drop should be disabled for the result (however, if true is returned, this does not automatically mean that drag and drop should be enabled.)
- Specified by:
filterDnd
in interfaceI_CmsGalleryHandler
- Parameters:
resultBean
- the result for which drag-and-drop feasibility should be checked- Returns:
- false if DnD should be prohibited for the element, else true
- See Also:
I_CmsGalleryHandler.filterDnd(org.opencms.ade.galleries.shared.CmsResultItemBean)
-
getAdditionalTypeTabControl
public com.google.gwt.user.client.ui.Widget getAdditionalTypeTabControl()
Description copied from interface:I_CmsGalleryHandler
Gets an additional widget to display in the type tab.- Specified by:
getAdditionalTypeTabControl
in interfaceI_CmsGalleryHandler
- Returns:
- the additional widget to display
- See Also:
I_CmsGalleryHandler.getAdditionalTypeTabControl()
-
getAutoHideParent
public I_CmsAutoHider getAutoHideParent()
Description copied from interface:I_CmsGalleryHandler
Gets the auto-hide parent.- Specified by:
getAutoHideParent
in interfaceI_CmsGalleryHandler
- Returns:
- the auto-hide parent
- See Also:
I_CmsGalleryHandler.getAutoHideParent()
-
getContainer
public com.google.gwt.user.client.ui.Panel getContainer()
Returns the popup content.- Returns:
- the popup content
-
getDndHandler
public CmsDNDHandler getDndHandler()
Description copied from interface:I_CmsGalleryHandler
Gets the drag-and-drop handler for the result list.- Specified by:
getDndHandler
in interfaceI_CmsGalleryHandler
- Returns:
- the drag-and-drop handler
- See Also:
I_CmsGalleryHandler.getDndHandler()
-
processResultItem
public void processResultItem(CmsResultListItem item)
Description copied from interface:I_CmsGalleryHandler
Processes a result list item.- Specified by:
processResultItem
in interfaceI_CmsGalleryHandler
- Parameters:
item
- the item to process- See Also:
I_CmsGalleryHandler.processResultItem(org.opencms.ade.galleries.client.ui.CmsResultListItem)
-
searchElement
public void searchElement(java.lang.String path)
Searches for a specific element and opens it's preview if found.- Parameters:
path
- the element path
-
-