public class CmsGalleryDialog
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer>, com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>, com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.logical.shared.HasResizeHandlers
限定符和类型 | 字段和说明 |
---|---|
static int |
DIALOG_HEIGHT
The initial dialog width.
|
static int |
DIALOG_WIDTH
The initial dialog width.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_parentPanel
The parent panel for the gallery dialog.
|
protected CmsTabbedPanel<A_CmsTab> |
m_tabbedPanel
The tabbed panel.
|
构造器和说明 |
---|
CmsGalleryDialog(I_CmsGalleryHandler galleryHandler)
The constructor.
|
CmsGalleryDialog(I_CmsGalleryHandler galleryHandler,
CmsTabbedPanel.CmsTabbedPanelStyle style)
The default constructor for the gallery dialog.
|
限定符和类型 | 方法和说明 |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler) |
void |
addTab(A_CmsTab tab,
java.lang.String name)
Adds a new tab to the gallery dialog.
|
void |
disableSearchTab()
Disables the search tab.
|
void |
enableSearchTab()
Enables the search tab.
|
protected void |
ensureNotifications()
Make sure a notification widget is installed.
|
void |
fillResultTab(CmsGallerySearchBean searchObj)
Displays the search result in the result tab.
|
void |
fillTabs(CmsGalleryController controller)
Fill the tabs with the content provided from the info bean.
|
CmsCategoriesTab |
getCategoriesTab()
Returns the categories tab widget.
|
CmsGalleryController |
getController()
Returns the gallery controller.
|
java.lang.String |
getDialogId()
Returns the HTML id of the dialog element.
|
CmsDNDHandler |
getDndHandler()
Returns the drag and drop handler.
|
CmsGalleriesTab |
getGalleriesTab()
Returns the galleries tab widget.
|
java.lang.String |
getImageFormatNames()
Returns the image format names.
|
java.lang.String |
getImageFormats()
Returns the image formats.
|
com.google.gwt.user.client.ui.FlowPanel |
getParentPanel()
Returns the parent panel of the dialog.
|
CmsResultsTab |
getResultsTab()
Returns the results tab widget.
|
CmsSearchTab |
getSearchTab()
Returns the searchTab.
|
CmsSitemapTab |
getSitemapTab()
Returns the sitemap tab.
|
A_CmsTab |
getTab(I_CmsGalleryProviderConstants.GalleryTabId tabId)
Gets the tab with a given tab id, or null if the dialog has no such tab.
|
protected com.google.gwt.user.client.ui.HasText |
getTabTextAccessor(int pos)
Creates a tab text accessor for a given text.
|
CmsTypesTab |
getTypesTab()
Returns the types tab widget.
|
CmsVfsTab |
getVfsTab()
Returns the VFS tab widget.
|
I_CmsGalleryWidgetHandler |
getWidgetHandler()
Returns the widget handler.
|
void |
hideShowPreviewButton(boolean hide)
Hides or shows the show-preview-button.
|
boolean |
isNativeWidget()
Returns if the gallery is used as a native widget.
|
boolean |
isUseFormats()
Returns the use formats flag.
|
protected void |
onAttach() |
void |
onBeforeSelection(com.google.gwt.event.logical.shared.BeforeSelectionEvent<java.lang.Integer> event) |
void |
onResize(com.google.gwt.event.logical.shared.ResizeEvent event) |
void |
onSelection(com.google.gwt.event.logical.shared.SelectionEvent<java.lang.Integer> event) |
void |
selectTab(I_CmsGalleryProviderConstants.GalleryTabId tabId,
boolean fireEvent)
Selects a tab by the given id.
|
void |
selectTab(int tabIndex,
boolean isInitial)
Selects a tab.
|
void |
setDialogSize(int width,
int height)
Sets the size of the gallery parent panel and triggers the event to the tab.
|
void |
setImageFormatNames(java.lang.String imageFormatNames)
Sets the image format names.
|
void |
setImageFormats(java.lang.String imageFormats)
Sets the image formats.
|
void |
setOnAttachCommand(com.google.gwt.user.client.Command onAttachCommand)
Sets the on attach command.
|
void |
setUseFormats(boolean useFormats)
Sets the use formats flag.
|
void |
setWidgetHandler(I_CmsGalleryWidgetHandler widgetHandler)
Sets the widget handler.
|
void |
updateSizes()
Updates variable ui-element dimensions, execute after dialog has been attached and it's content is displayed.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, 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
public static final int DIALOG_HEIGHT
public static final int DIALOG_WIDTH
protected com.google.gwt.user.client.ui.FlowPanel m_parentPanel
protected CmsTabbedPanel<A_CmsTab> m_tabbedPanel
public CmsGalleryDialog(I_CmsGalleryHandler galleryHandler)
galleryHandler
- the gallery handlerpublic CmsGalleryDialog(I_CmsGalleryHandler galleryHandler, CmsTabbedPanel.CmsTabbedPanelStyle style)
galleryHandler
- the gallery handlerstyle
- the style for the panelpublic com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
addResizeHandler
在接口中 com.google.gwt.event.logical.shared.HasResizeHandlers
HasResizeHandlers.addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler)
public void addTab(A_CmsTab tab, java.lang.String name)
tab
- the tab to addname
- the label for the tabpublic void disableSearchTab()
public void enableSearchTab()
public void fillResultTab(CmsGallerySearchBean searchObj)
searchObj
- the search objectpublic void fillTabs(CmsGalleryController controller)
controller
- the reference to the gallery controllerpublic CmsCategoriesTab getCategoriesTab()
public CmsGalleryController getController()
public java.lang.String getDialogId()
public CmsDNDHandler getDndHandler()
public CmsGalleriesTab getGalleriesTab()
public java.lang.String getImageFormatNames()
public java.lang.String getImageFormats()
public com.google.gwt.user.client.ui.FlowPanel getParentPanel()
public CmsResultsTab getResultsTab()
public CmsSearchTab getSearchTab()
public CmsSitemapTab getSitemapTab()
public A_CmsTab getTab(I_CmsGalleryProviderConstants.GalleryTabId tabId)
tabId
- the tab id to look forpublic CmsTypesTab getTypesTab()
public CmsVfsTab getVfsTab()
public I_CmsGalleryWidgetHandler getWidgetHandler()
public void hideShowPreviewButton(boolean hide)
hide
- true
to hide the buttonpublic boolean isNativeWidget()
true
if the gallery is used as a native widgetpublic boolean isUseFormats()
public void onBeforeSelection(com.google.gwt.event.logical.shared.BeforeSelectionEvent<java.lang.Integer> event)
onBeforeSelection
在接口中 com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer>
BeforeSelectionHandler.onBeforeSelection(com.google.gwt.event.logical.shared.BeforeSelectionEvent)
public void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
onResize
在接口中 com.google.gwt.event.logical.shared.ResizeHandler
ResizeHandler.onResize(com.google.gwt.event.logical.shared.ResizeEvent)
public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<java.lang.Integer> event)
onSelection
在接口中 com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>
SelectionHandler.onSelection(com.google.gwt.event.logical.shared.SelectionEvent)
public void selectTab(I_CmsGalleryProviderConstants.GalleryTabId tabId, boolean fireEvent)
tabId
- the tab idfireEvent
- true
to fire the tab eventpublic void selectTab(int tabIndex, boolean isInitial)
tabIndex
- the tab index to beselectedisInitial
- flag for initial searchpublic void setDialogSize(int width, int height)
width
- the new widthheight
- the new heightpublic void setImageFormatNames(java.lang.String imageFormatNames)
imageFormatNames
- the image format names to setpublic void setImageFormats(java.lang.String imageFormats)
imageFormats
- the image formats to setpublic void setOnAttachCommand(com.google.gwt.user.client.Command onAttachCommand)
onAttachCommand
- the on attach command to setpublic void setUseFormats(boolean useFormats)
useFormats
- the use formats flag to setpublic void setWidgetHandler(I_CmsGalleryWidgetHandler widgetHandler)
widgetHandler
- the widget handlerpublic void updateSizes()
protected void ensureNotifications()
protected com.google.gwt.user.client.ui.HasText getTabTextAccessor(int pos)
pos
- the index of the tabprotected void onAttach()
onAttach
在类中 com.google.gwt.user.client.ui.Composite
Composite.onAttach()